Notice: Undefined variable: thisSize in /usr/local/www/piwigo/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 /usr/local/www/piwigo/plugins/Preload/main.inc.php on line 197 and defined in /usr/local/www/piwigo/include/derivative.inc.php:193 Stack trace: #0 /usr/local/www/piwigo/plugins/Preload/main.inc.php(197): DerivativeImage->__construct(NULL, 'medium') #1 /usr/local/www/piwigo/include/functions_plugins.inc.php(279): Preload_populate_images() #2 /usr/local/www/piwigo/include/page_header.php(29): trigger_notify('loc_begin_page_...') #3 /usr/local/www/piwigo/picture.php(1042): include('/usr/local/www/...') #4 {main} thrown in /usr/local/www/piwigo/include/derivative.inc.php on line 193