Fatal error: Allowed memory size Fatal error: Allowed memory size
 

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]

Main Menu

Fatal error: Allowed memory size

Started by Saraci, August 27, 2007, 09:32:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Saraci

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

Nibbler

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.

Saraci

Quote from: Nibbler 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.
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

Nibbler

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.

Joachim Müller


Saraci