PHP Error Undefined variable: img in .../album_notification.php #711

Open
opened 2026-10-05 00:13:05 +02:00 by adam · 2 comments
Owner

A user of mine triggered the error below while sending a notification. I can't reproduce it, though.

192.168.x.x:49924] AH01071: Got error 'PHP message: PHP Notice: Undefined variable: img in .../album_notification.php on line 92\nPHP message: PHP Stack trace:\nPHP message: PHP 1. {main}() .../admin.php:0\nPHP message: PHP 2. include() .../admin.php:309\nPHP message: PHP 3. include() .../album.php:88\n', referer: .../admin.php?page=album-43-notification

erreurpiwigo

A user of mine triggered the error below while sending a notification. I can't reproduce it, though. 192.168.x.x:49924] AH01071: Got error 'PHP message: PHP Notice: Undefined variable: img in .../album_notification.php on line 92\nPHP message: PHP Stack trace:\nPHP message: PHP 1. {main}() .../admin.php:0\nPHP message: PHP 2. include() .../admin.php:309\nPHP message: PHP 3. include() .../album.php:88\n', referer: .../admin.php?page=album-43-notification ![erreurpiwigo](https://user-images.githubusercontent.com/19536902/30739045-59786496-9f8c-11e7-998d-595171fc9964.png) <!-- github-sync-id:259762217 -->
Author
Owner

Hello BydesignParis,

I have fixed this issue and improve a little bit the notification system with an error message if album is empty. Your friend have this issue because his album is empty. In this case variable $img was not set ! 👍

  • Maxime
Hello BydesignParis, I have fixed this issue and improve a little bit the notification system with an error message if album is empty. Your friend have this issue because his album is empty. In this case variable $img was not set ! 👍 - Maxime <!-- github-comment-id:334442405 -->
Author
Owner
Thanks for the fix and the info.
  
  Regards
  Bruno
  
  Le 05/10/2017 à 13:54, MaximeBOURMAUD a écrit :


  
  Hello BydesignParis,
  I have fixed this issue and improve a little bit the
    notification system with an error message if album is empty.
    Your friend have this issue because is album is empty. In this
    case variable $img was not set ! 👍
  
    Maxime
  
  —
    You are receiving this because you authored the thread.
    Reply to this email directly, view it on GitHub, or mute the thread.
Thanks for the fix and the info. Regards Bruno Le 05/10/2017 à 13:54, MaximeBOURMAUD a écrit : Hello BydesignParis, I have fixed this issue and improve a little bit the notification system with an error message if album is empty. Your friend have this issue because is album is empty. In this case variable $img was not set ! 👍 Maxime — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread. <!-- github-comment-id:334444097 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#711