Fatal error: Maximum execution time of 30 seconds exceeded

Phoca Gallery - image gallery extension
mastix
Phoca Member
Phoca Member
Posts: 12
Joined: 16 Mar 2009, 17:31

Fatal error: Maximum execution time of 30 seconds exceeded

Post by mastix »

"Fatal error: Maximum execution time of 30 seconds exceeded". This is the error I get when I try to do a multiple add. My site alokia.com has now around 5000 images and I guess that this might be the reason why I am getting this error. I have tried to leave the pagination thumbnail creation to yes and no with no change of the error page a get.
Do you know a solution to this. Increase the php.ini execution time is not an option as I am on a hosting plan and not a dedicated server.

Thank you

Cristian

The exact error message I get is: Fatal error: Maximum execution time of 30 seconds exceeded in /home/mastix/public_html/administrator/components/com_phocagallery/models/phocagallerym.php on line 256

When I had few images and categories I had no problems of this kind and everytime more this message appears. I think that phoca might be great for a few hundred photos but when it comes to thousands and hundreds of categories it is still buggy or it's not optimized to run the autothumbnail quick enough so the server doesn't give this error. :x
mastix
Phoca Member
Phoca Member
Posts: 12
Joined: 16 Mar 2009, 17:31

UPDATEII(problem solved)

Post by mastix »

Ok now I see why it was always so slow. I was making really big mistakes:
When I was doing a multiple add in the DETAILS section I was leaving the Category untouched (select category by default) and where the Filename is I was marking the parent folder that comes up by default. with many categories I was running in the out of time error.

So that this dont happen: in the category you have to choose in which category you want your images in and in the "filename" choose the folder you want to run the automatic thumbnails creation.

Now I don't get the error and also it goes around 10 times faster as before where I was leaving the category folder without selecting wherer I wanted the category in and selecting the parent folder.

Buffffff this is great I really thought that Phoca was over for me as the server didn't want to change the time.

I hope this can help someone falling into the sames mistakes I made
Post Reply