Advanced search  

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

Pages: [1]   Go Down

Author Topic: Fatal error: Allowed memory size => gps.php  (Read 3893 times)

0 Members and 1 Guest are viewing this topic.

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Fatal error: Allowed memory size => gps.php
« 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
Logged

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Re: Fatal error: Allowed memory size => gps.php
« Reply #1 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
Logged

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Re: Fatal error: Allowed memory size => gps.php
« Reply #2 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
Logged

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Re: Fatal error: Allowed memory size => gps.php
« Reply #3 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Fatal error: Allowed memory size => gps.php
« Reply #4 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.
Logged

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Re: Fatal error: Allowed memory size => gps.php
« Reply #5 on: November 04, 2011, 12:44:13 pm »

I would like to disable the gps feature
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Fatal error: Allowed memory size => gps.php
« Reply #6 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);
Logged

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Re: Fatal error: Allowed memory size => gps.php
« Reply #7 on: November 04, 2011, 03:34:21 pm »

Yes it works now.

Thanks
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.