[Solved]: Fatal error: Allowed memory size of ... [Solved]: Fatal error: Allowed memory size of ...
 

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

Main Menu

[Solved]: Fatal error: Allowed memory size of ...

Started by donsenilo, April 19, 2008, 12:55:40 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

donsenilo

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 ?

Joachim Müller

The FAQ don't explain this error. The docs and the sticky thread 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.

donsenilo

Problem solved.

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

GoTTi

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

that worked. i added php_value memory_limit 64M to a new htaccess file in my /albums/ folder and its working now. thanks.

ronronmx

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

Did you add the above "as is" in your htaccess? Like this:


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

donsenilo

Quote from: ronronmx on May 23, 2008, 03:31:52 AM
Did you add the above "as is" in your htaccess? Like this:


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.