Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Fatal error: Allowed memory size  (Read 3501 times)

0 Members and 1 Guest are viewing this topic.

Saraci

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Fatal error: Allowed memory size
« on: August 27, 2007, 09:32:38 am »

Hi everybody,

I have a big problem with cpg1.4. It seems that coppermine does not accept big images - I mean that I am not able to add them to the Albums. On the other hand I am sure that the problem does not depend on my webserver because I can link the same image on a simple HTML page and the webserver handles it perfectly.

Here we go:

Image settings:
3072 x 2304 Pixels
42,667 x 32,000 Inches  (or 108,375 x 81,283 cm)

Coppermine settings:
Max size for uploaded files (KB): 3000
Max width or height for uploaded pictures/videos (pixels): 4000

Error:
Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 12288 bytes) in /web/htdocs/www.mysite.com/home/include/picmgmt.inc.php on line 262

picmgmt.inc.php's line 262:
$src_img = imagecreatefromjpeg($src_file);

Any idea oh how can I sort this out?
Thanks in advance
« Last Edit: August 27, 2007, 11:26:30 am by GauGau »
Logged

Nibbler

  • Guest
Re: Fatal error: Allowed memory size
« Reply #1 on: August 27, 2007, 09:34:38 am »

Your memory limit is too small and your explanation of why your server can handle large files makes no sense. Moving to the upload support board - please review existing threads.
Logged

Saraci

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Fatal error: Allowed memory size
« Reply #2 on: August 27, 2007, 09:43:40 am »

Your memory limit is too small and your explanation of why your server can handle large files makes no sense. Moving to the upload support board - please review existing threads.
Thank you for the answer. I will try to explain better why my webserver handles big size files.
I created a html page, in which i put as well my big image, obviously via html standard language (<IMG SRC="normal_100_0128.jpg" BORDER="0" WIDTH="" HEIGHT="" ALIGN="bottom" ALT="">) Then I uploaded the folder that contains the html file and the image.
Then I tried to visit the page via browser, and the image is displayed correctly. It is the same image that give me the error that I described.

Thanks again
Logged

Nibbler

  • Guest
Re: Fatal error: Allowed memory size
« Reply #3 on: August 27, 2007, 09:46:00 am »

You can't compare the two. That's like comparing reading a book out loud with memorising it  - one needs a lot more memory than the other.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

Saraci

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Fatal error: Allowed memory size
« Reply #5 on: August 27, 2007, 11:07:47 am »

Thank you very much.  ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.