Page 1 of 1
Allowed memory size
Posted: Sat Sep 22, 2007 11:11 pm
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
Posted: Sun Sep 23, 2007 4:21 am
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.
Re: Allowed memory size
Posted: Sun Sep 23, 2007 12:06 pm
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
Posted: Sun Sep 23, 2007 1:50 pm
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

Allowed memory size
Posted: Wed Sep 26, 2007 1:17 pm
by reinhardl
Add
php_value memory_limit "16M"
to your .htaccess file
Re: Allowed memory size
Posted: Thu Sep 27, 2007 12:13 am
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.
Re: Allowed memory size
Posted: Thu Sep 27, 2007 2:13 pm
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
Posted: Thu Sep 27, 2007 9:16 pm
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.
Posted: Fri Sep 28, 2007 4:41 pm
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.
Posted: Sun Apr 13, 2008 8:53 am
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.
Posted: Thu May 08, 2008 8:19 pm
by Florian Fiegel
Thanks, the .htaccess mod fixed it. Had the same problem.
Shit it didn't really, now there happens nothing, than loading. recreated .htaccess but nothing happens any longer ... argh!
Posted: Thu May 08, 2008 9:22 pm
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.