The more photos I add the more errors I get. I now have 1000's of photos and even with Thumbnail creation off and Thumbnail pagination on I getting errors such as
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 36742437 bytes)
and maximum execution time 30s exceeded.
The admin images section has also been getting slower and slower the more images I add.
My Memory limit is already at 128M which is pretty high and now the component is pretty much unusable.
Do you have any suggestions as to how I can get this to work with a lot of images?
Lots of Photos - Lots of Errors
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Lots of Photos - Lots of Errors
Hi, I don't have, I got information that there is no problem with e.g. 5000 images.
The script will load only 20 results from the database...
Only 20 images (files) will be checked (on the server... if they have thumbnail or not)
and in every case only 3 thumbnails per script will be done (after making thumbnails for one image (it means 3 thumbnails) it comes to http redirect so new script will begin)
In most cases the problem can be caused by one large image with large resolution
I by myself have tested over 3000 images on my Suse (PHP5,12MB,Apache2,MySQL5) without any problems
There can be some other problem too...categories, because all categories are loaded into the one select box... for some users with 700 categories there was a problem, then we have optimized the loading categories items from database and it worked OK for him then... (this optimizing was done in some 1.8 version I think, so since this version it should work ok)
so no idea where can be the problem
Jan
If there is set the pagination thumbnail creation (e.g. 20 images per page) then it means:Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 36742437 bytes)
The script will load only 20 results from the database...
Only 20 images (files) will be checked (on the server... if they have thumbnail or not)
and in every case only 3 thumbnails per script will be done (after making thumbnails for one image (it means 3 thumbnails) it comes to http redirect so new script will begin)
In most cases the problem can be caused by one large image with large resolution
I by myself have tested over 3000 images on my Suse (PHP5,12MB,Apache2,MySQL5) without any problems
There can be some other problem too...categories, because all categories are loaded into the one select box... for some users with 700 categories there was a problem, then we have optimized the loading categories items from database and it worked OK for him then... (this optimizing was done in some 1.8 version I think, so since this version it should work ok)
so no idea where can be the problem
Jan
If you find Phoca extensions useful, please support the project
-
marcus178
- Phoca Member

- Posts: 24
- Joined: 26 Jan 2009, 21:23
Re: Lots of Photos - Lots of Errors
I have over 12000 images which is considerably more than you have tested with. I didn't have any problems when I only had 5000 images. I've only just started to get these errors.
Oddly enough though the errors seem to go away after a while and then come back when I add more images but it's usually right at the end of when it's created the thumbnails.
All of my images are less than 500kb so there shouldn't be any problem there.
Oddly enough though the errors seem to go away after a while and then come back when I add more images but it's usually right at the end of when it's created the thumbnails.
All of my images are less than 500kb so there shouldn't be any problem there.
-
freddred
- Phoca Newbie

- Posts: 2
- Joined: 27 Jan 2011, 23:17
Re: Lots of Photos - Lots of Errors
I had the same problem and I switched on Thumbnail Pagination and it solved it!