dorich Posted March 14, 2010 Posted March 14, 2010 I'm running Expression Engine for my site and I've just started getting the following error message when I attempt to show a page in the browser: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 203980 bytes) in /home/XXXXXXXXXXXXXXXXXXXX/core/core.template.php on line 699 Is this is a restriction set by the server and if so is it something I can adjust? Or is this likely to be a fault with Expression Engine? Thanks Quote
TCH-Thomas Posted March 14, 2010 Posted March 14, 2010 I googled this and found the following. This error message can spring up in a previously functional PHP script when the memory requirements exceed the default 8MB limit. Don’t fret, though, because this is an easy problem to overcome. To change the memory limit for one specific script by including a line such as this at the top of the script: ]ini_set("memory_limit","12M"); The 12M sets the limit to 12 megabytes (12582912 bytes). If this doesn’t work, keep increasing the memory limit until your script fits or your server squeals for mercy. You can also make this change permanently for all PHP scripts running on the server by adding a line like this to the server’s php.ini file: memory_limit = 12M[/quote Keep in mind that a huge memory limit is a poor substitute for good coding. A poorly written script may inefficiently squander memory which can cause severe problems for frequently executed scripts. However, some applications are run infrequently and require lots of memory like importing and processing a big data file. As I understand, this started to happen just recently, have you updated anything concerning Expression Engine lately? If so I would check with them. If you have not updated EE lately I would ask the techs here at TCH. Quote
dorich Posted March 15, 2010 Author Posted March 15, 2010 I googled this and found the following. Keep in mind that a huge memory limit is a poor substitute for good coding. A poorly written script may inefficiently squander memory which can cause severe problems for frequently executed scripts. However, some applications are run infrequently and require lots of memory like importing and processing a big data file. As I understand, this started to happen just recently, have you updated anything concerning Expression Engine lately? If so I would check with them. If you have not updated EE lately I would ask the techs here at TCH. Thanks for your response. And thanks for your suggestions on "good coding" practice. No recent changes to Expression Engine so I'll talk to technical support. Quote
edemars Posted August 19, 2010 Posted August 19, 2010 I did open a ticket, but just want TCH to know that ALL my sites but one had an exhausted memory error. Afraid my last site will also soon enough. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.