Page 1 of 1

Gallery, errors uploading images

Posted: Mon Oct 29, 2012 11:30 am
by pgingao
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

Re: Gallery, errors uploading images

Posted: Mon Oct 29, 2012 12:24 pm
by Jos
pgingao wrote:and that the issue appears to be with error handling in the script.
I can agree to that 8) but it wouldn't have helped you. It only would give you a message that "creation of thumbnails has failed" in stead of all the php warnings.

Is it possible that the error is related to the images? I've seen some issues when people try to use jpg-images with CMYK colors in stead of the usual RGB colors.

Re: Gallery, errors uploading images

Posted: Mon Oct 29, 2012 12:30 pm
by pgingao
"Is it possible that the error is related to the images? I've seen some issues when people try to use jpg-images with CMYK colors in stead of the usual RGB colors."

I don't think so, this was working fine two weeks before and I tried with gifs, jpgs, pngs...

Thanks

Re: Gallery, errors uploading images

Posted: Mon Oct 29, 2012 1:03 pm
by Jos
then I don't know why this happens so suddenly

Re: Gallery, errors uploading images

Posted: Mon Oct 29, 2012 5:12 pm
by pgingao
Can this be some compatibility problem with other modules?
On localhost hhen I upload images it says "All images received." but shows one red image with "0 Bytes" writen. Then there is no thumbnail, but the image is there and shows up nicelly on the front end.

Thanks

Re: Gallery, errors uploading images

Posted: Wed Oct 31, 2012 3:15 pm
by pgingao
After much trial and error I ended up re-installing everything.
At least now it's working.

Thanks

Paulo

Re: Gallery, errors uploading images

Posted: Thu Nov 01, 2012 4:10 pm
by uniqu3
@lexscripta you must be doing something totaly wrong, i rarely have any issues with module installation if any at all.
Wait till you upgrade WP with unsupported plugin or theme :)

But yes CMSMS isn't "click a website together" and you can switch any site from any cms to any cms without loosing rankings, just have to know how.

[solved] Re: Gallery, errors uploading images

Posted: Thu Nov 22, 2012 10:07 pm
by SimonJ
This is not quite the same but I can't see a better thread. I had the Gallery module working but now when I click add images button the page reloads and no way to add images.

I have to FTP the images into a directory and then finish the editing of names and descriptions.

I use Chrome and the upload box doesn't work at all.

Is it my setup, is because I upgraded?


OK Gallery uses flash to upload images and Flashblock needs to know this, sorry.