Question:
Fatal error Memory problem, Wordpress?
2011-09-21 02:26:23 UTC
Im working with PHP and wordpress and i get this error

Fatal error: Allowed memory size of 42991616 bytes exhausted (tried to allocate 30720 bytes) in /public_html/ads/wp-includes/class-simplepie.php on line 3095

I know i have a memory problem, and i know why too. I just cant really decipher the error message
so its telling me i have Allowed memory size of 42991616 which is 41M which i know too (got this info from my host) But the part i dont understand is this "(tried to allocate 30720 bytes)" So it tried to allocate .029 M and it failed? does that mean i went over by that much (from my allowed 41M) ??


Im not really sure.
Four answers:
Saadi
2011-09-21 03:27:50 UTC
hp.ini



This is the recommended approach if you have access to the server's php.ini. This will not be possible in some shared hosting environments, though your host may be able to adjust it for you. Note that this change will affect all websites and PHP scripts on the server.



Locate the php.ini file used by your web server. Locate the Configuration File (php.ini).

Edit the memory_limit parameter in the php.ini file (usually in a section called Resource Limits)

memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)



Restart Apache.
?
2011-09-21 17:45:09 UTC
When this happens, it's usually because some plugin or widget has failed and has soaked up all available RAM on a shared server - and left you, in this case, with less than 30k.



Your first step should be to undo the most recent change you made to your configuration and try again. There are a couple of plugins which will estimate your current memory usage and display it on the Dashboard.
frake
2016-10-01 06:57:25 UTC
this is your situation: you're out of area. until eventually you in straightforward terms right that, the errors will shop happening. in case you have ftp get entry to, ftp into your internet site and seem for unneeded records and delete them. seem for center records (they're going to say center) besides. in case you notice those, delete them and improve your version of wordpress.
Kestas M
2011-09-21 04:33:28 UTC
the best way to solve this, you need to find the part, which is not working correctly. also you can set bigger memory limit. just put this line to your wp-config.php file:

ini_set( 'memory_limit', '128M' );

if it will give the same error, just make it more, like 256M or 1024M


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...