My gallery was working fine with 2 folders of images uploaded to the albums directory.
Then, I ftp'ed a folder of 114 images to the albums directory. Now, on any page (admin or otherwise) that tries to process this album, I get an error in gps.php:
Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 914025265 bytes) in /hermes/web01/b2651/nwh.abqfol/photos/zp-core/exif/makers/gps.php on line 228
On the main album page, I get:
`Warning: fread() [function.fread]: Length parameter must be greater than 0 in /hermes/web01/b2651/nwh.abqfol/photos/zp-core/exif/makers/gps.php on line 228
Warning: fread() [function.fread]: Length parameter must be greater than 0 in /hermes/web01/b2651/nwh.abqfol/photos/zp-core/exif/makers/gps.php on line 228
Warning: fread() [function.fread]: Length parameter must be greater than 0 in /hermes/web01/b2651/nwh.abqfol/photos/zp-core/exif/makers/gps.php on line 228
Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 914025265 bytes) in /hermes/web01/b2651/nwh.abqfol/photos/zp-core/exif/makers/gps.php on line 228`
When I check the images table in the database, it looks like only 20 out of the 114 images have been entered. First hypothesis: one (at least) of the images has some bad EXIF gps information.
I removed all the photos that didn't get processed into the database. All of the albums display okay.
Then I tried adding files via ftp back into the folder in the albums directory. If I add one file at a time, the file is processed into the database and the album is fine. If I add more than one file, one of the files is processed and the others aren't and I get the same errors shown above.
The same thing happens if I use the web-based upload page. One file is processed; the others aren't and the error occurs.
Any ideas on what I can do? Adding one file at a time and making sure it is added to the database is tedious.
Thanks for your help.
Thanks for the reply.
If, by admin backend upload, you mean the uploading here: zp-core/admin-upload.php, then yes, I did try that. One file was fine, more than one caused the error.
The files are all 640 by about 480 (they've all been resized so that the longest size is 640 px).
The error occurs in the fread line in this block of code:
`
//4 byte number of elements
$count = bin2hex(substr($block,$place,4));$place+=4;
if($intel==1) $count = intel2Moto($count);
$bytesofdata = $size*hexdec($count);
//4 byte value or pointer to value if larger than 4 bytes
$value = substr($block,$place,4);$place+=4;
if($bytesofdata
Actually, the problem photos still have problems, even after they're put into the database; when I try to view them individually in the album, I get the same fread error.