Page 1 of 1

Better Error Handling?

Posted: 29 Jun 2008, 05:11
by Jaga
I'm having a problem with Multiple Add, and after reading up on every thread I can here, I can only believe it is a problem with an image (or more than one) I am trying to add.

I have pagination set to 50, and pagination thumbs turned on. I add over 200 images of different sizes and dimensions, and it ALWAYS stops at the same one when working on page 4. I can skip and have page five make all of it's thumbs, but going back to page 4 gets me the dreaded red "Stop Thumbnail Creation" in the upper right corner (in other words, it failed and stopped).

That tells me that the system is having a problem with one or more of the images, and making the thumbnail for it. If it were a "total # of images" problem, it wouldn't make those on page 5 at all.

I am trying to figure out which one(s) are the problem so I can remove them and finish adding the others, but it is a very time-consuming process. It would be nice to add some error-handling stuff into Phoca for problems like these, so that users wouldn't be confused and left with problems. I'm not sure what you could add to make it easier, or so it had better error control, but anything would be great.

Re: Better Error Handling?

Posted: 29 Jun 2008, 06:00
by Jaga
Update:

I know partially why Phoca stops working on thumbnails. Any image with a large resolution (and I do mean large, 2000xY or higher) will stop processing of thumbs entirely. Any "normal" resolution images get their thumbs made just fine.

Is this a limitation of Phoca, or of the server libraries?

Re: Better Error Handling?

Posted: 29 Jun 2008, 21:48
by Jan
Hi, there are no limitation from Phoca, Thumbnails are created by your server's GD library... So the speed, quality, errors depend on your system (GD, PHP, RAM)

In Phoca Gallery there is a error handling BUT if your server doesn't have enough memory, you get FATAL ERROR by your PHP.... There is no error handling for FATAL ERRORS ... Memory errors (fatal errors in PHP) cannot be handled anyway.

Jan

Re: Better Error Handling?

Posted: 29 Jun 2008, 23:10
by Jaga
So what is the solution if my server is an 8 processor box with tons of memory, but I have a shared hosting account? Tweak the php.ini? I've already tried to change the memory available to an app from 32mb to 64 that way, and it didn't seem to help.

Re: Better Error Handling?

Posted: 30 Jun 2008, 10:07
by Jan
No idea what can be the solution ???


I add my images (cca 3 - 5 MB) on my test servers:

winxp, 256 RAM, 8MB for php (Phoca Gallery try to increase it with ini_set)
suse linux, 256 RAM --||--
server - freebsd 512 RAM, 12 MB RAM (shared hosting account)

without problems :(
Jan

Re: Better Error Handling?

Posted: 30 Jun 2008, 19:00
by Jaga
I'll see if I can talk to the hosting company and find out why the backend isn't making thumbs of large images properly then. It really sucks to be limited to 1920x1200 for final image display, but if I have to then I do.

Thanks for the help Jan!

Re: Better Error Handling?

Posted: 30 Jun 2008, 20:34
by Jan
so please let me know if you solve this problem ...

Thank you, Jan