23374 Posts in 18175 Topics by 2866 members
|Go to End|
3 August 2009 at 1:04pm
I know there are heaps of comments on this subject already. I simply tried to add a redirect subpage to my site. So it was the 3rd page in the branch so to speak. Since then I've got this error
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4864 bytes) in /var/www/virtual/taupobaptist.org.nz/htdocs/sapphire/core/Object.php(123) : eval()'d code on line 1
And cannot access any of the subpages online, but I can still change them when signed in through the Admin area (except the inital redirect page). I've tired adding the line
to some fo the php files and no effect.......does anyone know the solution and put it easily for a non-computer person???
i tried juist deleting the extra page I added but again - still no effect.
3 November 2009 at 3:02pm
have you found where was a problem? I have the same problem too....
3 November 2009 at 3:52pm
It looks like the memory limit configuration you are hitting is from the php.ini setting. The current limit that you are bouncing off is 128MB, so while attempting to force the ini_set to 64M is valid, its still lower than the core configuration.
You can raise the memory setting in php.ini bu finding the following line;
memory_limit = 128M ; Maximum amount of memory a script may consume (128MB)
and changing it to
memory_limit = 196M ; Maximum amount of memory a script may consume (196MB)
You are only attempting to allocate another 4k of memory to the process, so you should not need to raise the limit too much.
Depending on the OS you are running, php.ini will be in /etc/php (RHEL) or /etc/php5 (Debian).
3 November 2009 at 10:09pm
Thanks for your answers. It seems that my server provider (heartinternet.co.uk) has special settings for php - this is line in .htaccess regarding memory limit:
Hope this info will be useful for somebody
Now it is working everything. I love this CMS!
|Go to Top|