Fatal error: Allowed memory size => gps.php Fatal error: Allowed memory size => gps.php
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Fatal error: Allowed memory size => gps.php

Started by altenae, November 03, 2011, 06:04:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

altenae

Hi,

There are some pictures in my gallery which cannot be displayed with the following error:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 331732859 bytes) in /customers/aviationphotos.org/aviationphotos.org/httpd.www/gallery/include/makers/gps.php on line 241

I have tried some solutions I have found about "Allowed memory size" but they all fail.

This is what is on line 241 (gps.php)

$data = fread($seek, $bytesofdata);

Is there a solution ?
The picture involved seems oke when displaying info with an exif reader.


Edward

altenae

One of the image which has this problems....

When I upload this picture to my other gallery I have the same error.

Attached the image....
Seems nothing wrong with the image..

Edward

altenae

Could it be a problem with exposure time ?

I see this :Exposure Time: 1395864320/1073741824 sec

After that the Allowed memory message comes.
When displaying this image in an exif viewer I seer 1/3200...

I hope someone can help me.
I have over 7000 pictures online and some are not working, because of this error.

Edward

altenae

Oke one last info.

I have also uploaded this picture to:

coppermine 1.3 => No Problems
coppermine 1.4 => Fatal error Allowed memory size when displaying
coppermine 1.5 => Fatal error Allowed memory size when displaying

Well this is what I have found so far.

Edward

Αndré

Your server has a too small memory limit to perform that operation (read some data from the file). If your files don't have GPS information, we could remove/disable that feature for your gallery. Alternatively increase the PHP memory limit.

altenae


Αndré

Open include/exif.php, find
parseGPS($data,$result,$formated_data,$seek,$globalOffset);
and replace with
//parseGPS($data,$result,$formated_data,$seek,$globalOffset);

altenae