Allowed memory size

Found a bug? Tell us!!
Post Reply
Harald Weingaertner
Regular
Posts: 474
Joined: Mon Mar 27, 2006 12:32 am

Allowed memory size

Post by Harald Weingaertner »

Hello,

i'm unsure if this is a bug... When i try to add a plugin, i get the following:

Ereignis-Plugins

Versuche URL package_event_de.xml zu öffnen...
243334 bytes von obiger URL geladen. Speichere Inhalt als /var/www/html/templates_c/package_event_de.xml...
Daten erfolgreich geladen.



Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 5 bytes) in /var/www/html/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php on line 538


What could be the problem? s9y1.2
carpo
Posts: 4
Joined: Sat Sep 22, 2007 4:39 pm
Contact:

Post by carpo »

Hi Harald,

I was getting this same error message on first accessing my blog. It refered to PHP's memory_limit. My default was 8MB. I upped my memory_limit in my php.ini to 10M and then it worked.

I had a look at my local install of PHP to see why this didnt happen on my develop environment, and it seems that the default memory_limit on my windows installation of PHP is 128M!!!

Hope this helps :)
Cheers,
Chris.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Allowed memory size

Post by garvinhicking »

Hi Harald!

In your case, you could try to lower the required memory be removing some serendipity plugins from your installation.

regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Harald Weingaertner
Regular
Posts: 474
Joined: Mon Mar 27, 2006 12:32 am

Post by Harald Weingaertner »

Thank you, both helped.

Today i've also got this while posting a new entry:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 275170 bytes) in /var/www/html/plugins/serendipity_event_google_sitemap/serendipity_event_google_sitemap.php on line 333

So i should i really should remove some plugins :(
reinhardl
Regular
Posts: 258
Joined: Wed Jun 20, 2007 8:54 am
Location: Germany

Allowed memory size

Post by reinhardl »

Add
php_value memory_limit "16M"

to your .htaccess file
chickens
Regular
Posts: 192
Joined: Wed Dec 06, 2006 12:15 am
Location: Vegas
Contact:

Re: Allowed memory size

Post by chickens »

reinhardl wrote:Add
php_value memory_limit "16M"

to your .htaccess file
Depending on how PHP is setup this could kill the site. On some servers if it does not work correctly it will through an error while on others (like mine) the page will just be while and the error will be in error_log.

Quite a few servers are setup so that users can not change the php settings for security reasons.
reinhardl
Regular
Posts: 258
Joined: Wed Jun 20, 2007 8:54 am
Location: Germany

Re: Allowed memory size

Post by reinhardl »

chickens wrote:
reinhardl wrote:Add
php_value memory_limit "16M"

to your .htaccess file
Depending on how PHP is setup this could kill the site. On some servers if it does not work correctly it will through an error while on others (like mine) the page will just be while and the error will be in error_log.

Quite a few servers are setup so that users can not change the php settings for security reasons.

It does`t work on every machine but it`s a chance and you can try it.
If you install an update you should backup your database so it is no problem to restore
All times I had this problem I could fix it with the .htaccess
chickens
Regular
Posts: 192
Joined: Wed Dec 06, 2006 12:15 am
Location: Vegas
Contact:

Post by chickens »

Wow, I didnt explain how to fix it if the site does die. If you enter the line in the .htaccess and the site no longer works, remove the line and it will be back up and running.

Apache loves to error out when it gets a bad configuration.
Harald Weingaertner
Regular
Posts: 474
Joined: Mon Mar 27, 2006 12:32 am

Post by Harald Weingaertner »

My server also died with the .htaccess statement.

I had to uninstall the spartacus plugin to get my site running again... Strange but true. Some other things still don't run, but i can live with that.
bf
Regular
Posts: 8
Joined: Sat Apr 12, 2008 9:14 pm

Post by bf »

After installing Serendipity for the first time and trying to upload an image I received the message "Fatal error: Allowed memory size of ...".

The easiest fix for me was to enable 'Use ImageMagick' in administration -> configuration.
Florian Fiegel
Regular
Posts: 21
Joined: Fri Feb 15, 2008 12:38 pm
Location: Germany/Bochum
Contact:

Post by Florian Fiegel »

Thanks, the .htaccess mod fixed it. Had the same problem. :D


Shit it didn't really, now there happens nothing, than loading. recreated .htaccess but nothing happens any longer ... argh!
Image
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

My host sometimes has that behavior when the .htaccess permissions are too loose. Try 644.

You'd really rather change the memory limit in the php.ini, if you can.
Judebert
---
Website | Wishlist | PayPal
Post Reply