Hey guys, I have a photo stitch that is rather large, and the thumbnail does not show up properly. It shows a triangle with ant exclamation point icon. Following another post I was able to trouble shoot and when I view the thumbnail image, it reports the following error.
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 62328 bytes)
IS there a way to raise the allowed size for a thumbnail?
I believe the medium size also doesnt show up properly. I have to click to see the HD version before I can see the picture.
Thanks for the help!
**Edit***
I dont think it is a server load issue, because I can restart the process just for singles and they keep failing out.
Last edited by fenster (2013-04-25 04:00:45)
Offline
Hello
so it's a lack of memeory for PHP (change the memory_limit option)
Offline
Thanks so much for your response.. I have 2 quick questions.
1) If this is on a shared server, is the webhost the only one that can make chat memory change?
2) What is a suggested memory limit that it should be changed to.
Thank you
You should ask to your hoster so
How much: I don't know, it should depend on the version of IM and of the picture size, but even with those info I couldn't tell
Offline
So the hoster says the limit is 128Mb. Most of the thumbnails were re-created and some were not. Even if I try to recreate one thumbnail it shows that error. It looks like the icon it is trying to create is only like 13kb. and it says the memory is exhausted...... is it possible that the PHP buffer fills up and then doesnt reset or takes a while to reset?
Basically what I did was adjust the thumbnails to make them crop so I guess piwigo tried to re-create all the thumbnails and thats when I hit the limit.
Any other suggestions?
?
All the resided pictures are made from the original one so if the original is too big for PHP no resized is created
Offline
Thanks. The largest image file is 10Mb.. These pictures had proper thumbnails until I enabled the crop feature and they were recreated. Then half of them were not able to have their thumbnails generated.
most important of the filesize is the resolution, because softwares work with uncompressed data
Offline
So the server says now it appears to be a php timeout issue and they are unwilling to adjust the php timeout because it is a shared server. Do I have any other options?
I dont understand why I didnt have any issues when the thumbnails were not set to crop, and then when I enabled crop, thats when I got the errors.
Also, Would I have all these issues if I just hosted on piwigo?
Do I risk a php time out or memory limit?
I have hit a snag every step of the way with my current webhost and it is driving me crazy.
Also, if I continue to have trouble, especially on large images, can I create my own icons and upload them to the server? If so, where do I put them and how do I name them so they will be used when browsing the gallery?
When a photo is added, a new row is created in the 'images' database table. The 'path' column in 'images' contains a value that look like this:
upload/2013/12/31/20131231162321-9ade1398.jpg
Staying with this example, the derivative, smaller sized versions (thumbnails) would be in the directory path _data/i/upload/2013/12/31/, like this:
_data/i/upload/2013/12/31/20131231162321-9ade1398-th.jpg
_data/i/upload/2013/12/31/20131231162321-9ade1398-me.jpg
_data/i/upload/2013/12/31/20131231162321-9ade1398-sq.jpg
The '20131231162321-9ade1398' part of the example image file name is a basically a date-timestamp plus hyphen plus random string that gets created upon using the add photo function of Piwigo, and isn't predictable before that point.
You may not be able to do much with this, but hope it helps explain things a bit.
Offline
On local just duplicate everything (database and files ) then generate the resize process in the batch manager and finally upload the data/i folder
Offline
Thanks for all the help guys. I was able to use the method of naming the file with the correct suffix (th,me) to create the files that do not get created properly.
I dont know why it is not an issue on piwigo's test servers but it is an issue on mine. Oh well, now I know I guess if I want thumbnails of panoramic pics I have to jump through more hoops.
I give up. Now other images, non panoramic error out when creating thumbnails. These files are like 3 and 4 Mb. It seems like for whatever reason, the crop feature for the thumbnails is causing the php memory limit to be exhausted :\
Hi :-)
@noah, have you test your photo on http://piwigo.com ?
You see if problem is your host or piwigo
Offline