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: [Solved]: Fatal error: Allowed memory size of ...  (Read 5554 times)

0 Members and 1 Guest are viewing this topic.

donsenilo

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 93
    • Bookmarks (Links), Grafik, Musik, Movies (Filme), DVD's, CD's, Amazon-Shop by Starmaker - Mark Tailor
[Solved]: Fatal error: Allowed memory size of ...
« 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 ?
« Last Edit: April 21, 2008, 11:35:49 am by Nibbler »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Fatal error: Allowed memory size of ...
« Reply #1 on: April 19, 2008, 01:04:01 pm »

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.
Logged

donsenilo

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 93
    • Bookmarks (Links), Grafik, Musik, Movies (Filme), DVD's, CD's, Amazon-Shop by Starmaker - Mark Tailor
Re: Fatal error: Allowed memory size of ...
« Reply #2 on: April 21, 2008, 10:17:58 am »

Problem solved.

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

GoTTi

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Re: Fatal error: Allowed memory size of ...
« Reply #3 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.
Logged

ronronmx

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
Re: Fatal error: Allowed memory size of ...
« Reply #4 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
Logged

donsenilo

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 93
    • Bookmarks (Links), Grafik, Musik, Movies (Filme), DVD's, CD's, Amazon-Shop by Starmaker - Mark Tailor
Re: Fatal error: Allowed memory size of ...
« Reply #5 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.034 seconds with 19 queries.