Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 2000 bytes) in /home/dames1/public_html/phpgallerie/lib/phpthumb/phpthumb.functions.php on line 255
what is the problem here?? I have enough space at my host.
the problem is that the mem size is set in the php.ini file which is set at 8MB, 8MB alloted to any php script. your host will have to change it or you will have to do less work per task at a time. Probably tried to resize a really large image.
This might be a dead-thread, but I need to bump it!
I think it would be a nice idea to warn / inform people about this issue. Almost no webhosts in Sweden allow more than 16M memory limit, with no possibility to change (minor, cheaper webhosts that is, but most popular)..
This would probably save alot of headache for people figureing out why their plogger gallery fail to work.
first - if i import more than 50-70 pictures at once it crashes server (500 internal server error). It would be nice to do importing in steps (number of pictures imported by stepconfigurable by admin)
second - i got some photos that are not big (e.g. 50kB) but importing them gives that "Allowed memory size of ... bytes exhausted..." error. Strange it continues with "tried to allocate 1296891939 bytes in /home/dealer/main/pkg/palik/macki/html/lib/exifer1_4/exif.php on line 685" .... i suspect that there is memory leak with exifer module because when i converted pictures to non exif version, the import went smooth...
It's all down to the internal process of working with images. A 1000 x 1000 pixel image is one million pixels and each pixel requires 24 bits of storage, i.e. 3 bytes. So you're looking at 3 million bytes required to work with that image, even if it only takes 50,000 bytes to store as a JPEG file. Therefore, it should be possible to work out the available memory to PHP and the maximum image size you can upload, or work with, from a developer's point of view.
If you can't change your PHP memory limit, you'll have to resample the images on your PC before uploading and bring them under the limit.
I installed plogger and moved about 10 folders to uploads directory. They all contained 800x600 size pictures, and exif information (from various camera's). For some reason i couldn't import pictures from one of folders (memory exhausted error) .
After i removed exif from pictures in that folder - import went ok.
Anyway - plogger seems to be great piece of soft :) is dev.plooger.org right place to post feature requests, not only bug reports?