Gallery, errors uploading images
Posted: Mon Oct 29, 2012 11:30 am
Hi all,
suddenly gallery module started to show errors on image upload. It was working fine before and nothing seems to be changed so far.
The errors are:
Warning: Division by zero in /home/pgingao/public_html/ajdp/modules/Gallery/lib/class.Gallery_utils.php on line 451 Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/pgingao/public_html/ajdp/modules/Gallery/lib/class.Gallery_utils.php on line 511 Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/pgingao/public_html/ajdp/modules/Gallery/lib/class.Gallery_utils.php on line 539 Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/pgingao/public_html/ajdp/modules/Gallery/lib/class.Gallery_utils.php on line 545 Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/pgingao/public_html/ajdp/modules/Gallery/lib/class.Gallery_utils.php on line 553 The files are both on /public_html/ajdp/uploads/images/GalleryThumbs and /public_html/ajdp/uploads/images/Gallery
Hostgator says everything is fine with permissions and that the issue appears to be with error handling in the script. The script is failing to get the appropriate dimensions for the image and is failing horribly. The issue is in the function cms_utils::get_module('Gallery').
Please note the images are there and are displayed correctly on the front-end, but on the Gallery admin area I can't see the thumbnails.
Any help is welcome.
Thanks
phpversion 5.3.6
Mysql 5.5.9
gd_version 2
Installed Modules:
CMSMailer 5.2.1
CMSPrinting 1.0.3
FileManager 1.4.1
MenuManager 1.8.4
MicroTiny 1.2.3
ModuleManager 1.5.5
News 2.12.9
Search 1.7.7
ThemeManager 1.1.7
CGExtensions 1.31.1
CGSmartImage 1.9.5
CGSimpleSmarty 1.5.2
CGGoogleMaps 2.4.3
FormBuilder 0.7.3
SiteMapMadeSimple 1.2.6
Gallery 1.6
CGJobMgr 1.2.10
NMS 2.6.4
MleCMS 1.11.3
CGCalendar 1.10.0.1
suddenly gallery module started to show errors on image upload. It was working fine before and nothing seems to be changed so far.
The errors are:
Warning: Division by zero in /home/pgingao/public_html/ajdp/modules/Gallery/lib/class.Gallery_utils.php on line 451 Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/pgingao/public_html/ajdp/modules/Gallery/lib/class.Gallery_utils.php on line 511 Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/pgingao/public_html/ajdp/modules/Gallery/lib/class.Gallery_utils.php on line 539 Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/pgingao/public_html/ajdp/modules/Gallery/lib/class.Gallery_utils.php on line 545 Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/pgingao/public_html/ajdp/modules/Gallery/lib/class.Gallery_utils.php on line 553 The files are both on /public_html/ajdp/uploads/images/GalleryThumbs and /public_html/ajdp/uploads/images/Gallery
Hostgator says everything is fine with permissions and that the issue appears to be with error handling in the script. The script is failing to get the appropriate dimensions for the image and is failing horribly. The issue is in the function cms_utils::get_module('Gallery').
Please note the images are there and are displayed correctly on the front-end, but on the Gallery admin area I can't see the thumbnails.
Any help is welcome.
Thanks
phpversion 5.3.6
Mysql 5.5.9
gd_version 2
Installed Modules:
CMSMailer 5.2.1
CMSPrinting 1.0.3
FileManager 1.4.1
MenuManager 1.8.4
MicroTiny 1.2.3
ModuleManager 1.5.5
News 2.12.9
Search 1.7.7
ThemeManager 1.1.7
CGExtensions 1.31.1
CGSmartImage 1.9.5
CGSimpleSmarty 1.5.2
CGGoogleMaps 2.4.3
FormBuilder 0.7.3
SiteMapMadeSimple 1.2.6
Gallery 1.6
CGJobMgr 1.2.10
NMS 2.6.4
MleCMS 1.11.3
CGCalendar 1.10.0.1