forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: donsenilo on April 19, 2008, 12:55:40 pm

Title: [Solved]: Fatal error: Allowed memory size of ...
Post by: donsenilo on April 19, 2008, 12:55:40 pm
Hello ... and YES, I have read the FAQ ...

BUT ...

I get this error:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 12288 bytes)

So, I have memory_limit = 32MB ... and this is not enough for uploading 1 picture ? The picture: 2068kb, 3072x2304
I don't understand it.
Can someone help please ?
Title: Re: Fatal error: Allowed memory size of ...
Post by: Joachim Müller on April 19, 2008, 01:04:01 pm
The FAQ don't explain this error. The docs (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#ErrorAllowedMemorySize) and the sticky thread (http://forum.coppermine-gallery.net/index.php/topic,24088.msg110690.html#msg110690) do.
(3072*2304*3)/1048576=20.25. Add the memory consumption of the script itself, so 32MB might indeed not be enough. This is related to server setup though.
Title: Re: Fatal error: Allowed memory size of ...
Post by: donsenilo on April 21, 2008, 10:17:58 am
Problem solved.

Added "php_value memory_limit 64M" in htaccess. Now it works with big pictures.
Title: Re: Fatal error: Allowed memory size of ...
Post by: GoTTi on May 08, 2008, 06:42:05 pm
Problem solved.

Added "php_value memory_limit 64M" in htaccess. Now it works with big pictures.

that worked. i added php_value memory_limit 64M to a new htaccess file in my /albums/ folder and its working now. thanks.
Title: Re: Fatal error: Allowed memory size of ...
Post by: ronronmx on May 23, 2008, 03:31:52 am
Problem solved.

Added "php_value memory_limit 64M" in htaccess. Now it works with big pictures.

Did you add the above "as is" in your htaccess? Like this:
Code: [Select]

RewriteEngine On

RewriteCond %{HTTP_HOST} !^www.stephanroncada.com$ [NC]
RewriteRule ^(.*)$ http://www.stephanroncada.com/$1 [L,R=301]

php_value memory_limit 64M

When i do that, all my pictures in the gallery disappear! Also, which folder did you put it in? The root of your gallery, or in the /Albums/ folder?
Thx
Stephane
Title: Re: Fatal error: Allowed memory size of ...
Post by: donsenilo on May 23, 2008, 09:07:20 am
Did you add the above "as is" in your htaccess? Like this:
Code: [Select]

RewriteEngine On

RewriteCond %{HTTP_HOST} !^www.stephanroncada.com$ [NC]
RewriteRule ^(.*)$ http://www.stephanroncada.com/$1 [L,R=301]

php_value memory_limit 64M

When i do that, all my pictures in the gallery disappear! Also, which folder did you put it in? The root of your gallery, or in the /Albums/ folder?
Thx
Stephane

hello

I put the "php_value memory_limit 64M" (without "") in the htaccess in the root of my website. And it's the first entry in the htaccess.