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: olympus.php error  (Read 3440 times)

0 Members and 1 Guest are viewing this topic.

ryback

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
  • http://www.fotecka.net
    • Photogalery
olympus.php error
« on: March 23, 2010, 03:44:40 am »

Hi,

I saw forum http://forum.coppermine-gallery.net/index.php/topic,45445.0.html

but it doesn't work for me in version 1.4.26  :'(

There is error message>

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 151806465 bytes) in /var/www/include/makers/olympus.php on line 168

I changed line 168 from

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

to

            $data = 200;

and it works. But I have no idea what should be the correct value of $data  >:(


Does anybody know "correct" solution?

Image has size of 115 kB

Thanks
Logged
Casey
------------------------
http://www.fotecka.net
http://dino.saur.cz

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: olympus.php error
« Reply #1 on: March 23, 2010, 06:59:27 am »

Correct solution is to RTFM: http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#ErrorAllowedMemorySize
In other words: processing the file in question is consuming too much memory. Reduce the size of your images (resolution-wise) on your client before uploading. The file-size doesn't matter - the resolution matters.
If you think that http://forum.coppermine-gallery.net/index.php/topic,45445.0.html applies, you should have done as suggested there: you haven't provided the needed test image, nor did you upgrade your gallery: http://www.fotecka.net/ is outdated (cpg1.4.18 instead of cpg1.4.26). Upgrade!
Logged

ryback

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
  • http://www.fotecka.net
    • Photogalery
Re: olympus.php error
« Reply #2 on: March 23, 2010, 12:07:36 pm »

Hi,

image size is 119 kB, resolution 800x569.
I "RTFM" and there is: 800 x 600 - 1.37 MB

My PHP.ini
max_execution_time = 30 ;
max_input_time = 60 ;
memory_limit = 128M ;

Gallery I'm talking about is version 1.4.26 (http://www.hlavacovi.cz)

I've got Canon cameras only, so I have no problem on my gallery (www.fotecka.net). But thanks, I'm going to do upgrade.
Logged
Casey
------------------------
http://www.fotecka.net
http://dino.saur.cz
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 19 queries.