Bug Prelod Plugin #624

Open
opened 2026-10-05 00:07:55 +02:00 by adam · 3 comments
Owner

Bug when installing on version 2.9.0 of piwigo.

Notice: Undefined variable: thisSize in /home/u843758261/public_html/plugins/Preload/main.inc.php on line 197

Fatal error: Uncaught TypeError: Argument 2 passed to DerivativeImage::__construct() must be an instance of SrcImage, string given, called in /home/u843758261/public_html/plugins/Preload/main.inc.php on line 197 and defined in /home/u843758261/public_html/include/derivative.inc.php:194 Stack trace: #0 /home/u843758261/public_html/plugins/Preload/main.inc.php(197): DerivativeImage->_construct(NULL, 'medium') #1 /home/u843758261/public_html/include/functions_plugins.inc.php(279): Preload_populate_images() #2 /home/u843758261/public_html/include/page_header.php(29): trigger_notify('loc_begin_page...') #3 /home/u843758261/public_html/picture.php(1035): include('/home/u84375826...') #4 {main} thrown in /home/u843758261/public_html/include/derivative.inc.php on line 194

Bug when installing on version 2.9.0 of piwigo. Notice: Undefined variable: thisSize in /home/u843758261/public_html/plugins/Preload/main.inc.php on line 197 Fatal error: Uncaught TypeError: Argument 2 passed to DerivativeImage::__construct() must be an instance of SrcImage, string given, called in /home/u843758261/public_html/plugins/Preload/main.inc.php on line 197 and defined in /home/u843758261/public_html/include/derivative.inc.php:194 Stack trace: #0 /home/u843758261/public_html/plugins/Preload/main.inc.php(197): DerivativeImage->__construct(NULL, 'medium') #1 /home/u843758261/public_html/include/functions_plugins.inc.php(279): Preload_populate_images() #2 /home/u843758261/public_html/include/page_header.php(29): trigger_notify('loc_begin_page_...') #3 /home/u843758261/public_html/picture.php(1035): include('/home/u84375826...') #4 {main} thrown in /home/u843758261/public_html/include/derivative.inc.php on line 194 <!-- github-sync-id:226889529 -->
Author
Owner

No comments, let alone a resolution, yet??

No comments, let alone a resolution, yet?? <!-- github-comment-id:312722335 -->
Author
Owner

I had the same problem. I'm not sure if this is a fix or a workaround :), but install the Automatic Size plugin. The error goes away.

I had the same problem. I'm not sure if this is a fix or a workaround :), but install the Automatic Size plugin. The error goes away. <!-- github-comment-id:312897394 -->
Author
Owner

Thanks for the tip, jambrosino. I worked around the issue by getting rid of the Preload Module.

Thanks for the tip, jambrosino. I worked around the issue by getting rid of the Preload Module. <!-- github-comment-id:312915615 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#624