forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: altenae on November 03, 2011, 06:04:00 pm

Title: Fatal error: Allowed memory size => gps.php
Post by: altenae on November 03, 2011, 06:04:00 pm
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
Title: Re: Fatal error: Allowed memory size => gps.php
Post by: altenae on November 03, 2011, 08:17:15 pm
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
Title: Re: Fatal error: Allowed memory size => gps.php
Post by: altenae on November 03, 2011, 08:24:24 pm
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
Title: Re: Fatal error: Allowed memory size => gps.php
Post by: altenae on November 03, 2011, 08:44:25 pm
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
Title: Re: Fatal error: Allowed memory size => gps.php
Post by: Αndré on November 04, 2011, 11:29:30 am
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.
Title: Re: Fatal error: Allowed memory size => gps.php
Post by: altenae on November 04, 2011, 12:44:13 pm
I would like to disable the gps feature
Title: Re: Fatal error: Allowed memory size => gps.php
Post by: Αndré on November 04, 2011, 12:46:56 pm
Open include/exif.php, find
Code: [Select]
parseGPS($data,$result,$formated_data,$seek,$globalOffset);and replace with
Code: [Select]
//parseGPS($data,$result,$formated_data,$seek,$globalOffset);
Title: Re: Fatal error: Allowed memory size => gps.php
Post by: altenae on November 04, 2011, 03:34:21 pm
Yes it works now.

Thanks