VPS for Traders





Search This Blog

Pages

Google

How to Solve Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 177652 bytes) in wp-includes/cache.php on line 48

Fatal error: Allowed memory size at Wordpress

< ? php

ini_set("memory_limit","12M");


source : http://wordpress.org/support/topic/137400?replies=6

Allowed memory size of ## bytes exhausted
(6 posts)

* Started 1 month ago by InsanityKills
* Latest reply from WPITn2shape
* RSS feed for this topic
* WordPress version: 2.0.11

Tags:

* allowed
* memory size
* exhausted
* wp-admin


1.

InsanityKills
Member

I'm so confused as to why this started showing up. It only shows up when I log into my wp-admin. It isn't anywhere on my website.

Dashboard:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 77824 bytes) in /home/insanity/public_html/wp-includes/class-snoopy.php on line 249

Page Management:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4955 bytes) in /home/insanity/public_html/wp-includes/plugin.php on line 54

Write Post:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 5208 bytes) in /home/insanity/public_html/wp-includes/plugin.php on line 158

Plugin Management:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 8192 bytes) in /home/insanity/public_html/wp-admin/admin-functions.php on line 1734

It shows up everywhere. I'm just trying to show you that it changes on each page.

I'm really not sure what's wrong. Can someone please help me out?
Posted 1 month ago #
2.

riteshTilve
Member

In all the failing php files : class-snoopy.php,plugin.php and admin-functions.php, add the following code at the top in line 2 just after "
ini_set("memory_limit","12M");

If even then it fails, try increasing the 12M to 20M.
After the upgrade runs successfully, you may remove that line or keep as it as you wish.

Also see :
http://wordpress.org/support/topic/137412?replies=3
Posted 1 month ago #
3.

basnek
Member

Hi riteshTilve,
I put the line of code but i follow with the error.

In my phpinfo I see this

memory_limit 8M 8M

It is rare that until a week ago this worked ok

May be a change in the configuration server?

I hope you can help me

Thx
Posted 1 month ago #
4.

MichaelH
Moderator

Did you try:

memory_limit 16M

or

memory_limit 206M
Posted 1 month ago #
5.

riteshTilve
Member

Yesterday, when i upgraded Wordpress from 2.3 to 2.3.1,
6. again i had this same memory exhausted error. Then i searched a lot and tried lots of things, which i am listing for your benefit. I don't know exactly which of them worked, but after i made the last change from the following list,things are fine now :
1. I tried going back to the older 2.3 wordpress version. But still the error did not go.. So came back to 2.3.1.
2. Added ini_set("memory_limit","20M"); to the plugin php file from which the error was coming.
But still the error did not go.
3. Commented the following line in cache.php.
$data = unserialize(serialize($data));
The above line was commented at all the 3 places in cache.php.
But still the error did not go.
4. In php.ini, increased the memory limit from 8M to 20M :
memory_limit = 20M ; Maximum amount of memory a script may consume (8MB)
But still the error did not go.
5. In .htaccess, added the following line and restarted the server.
php_value memory_limit 32M
But still the error did not go.
6. Deactivated all plugins by moving them from the plugins folder and also by running the following query in phpMyadmin :

update wp_options set option_value = '' where option_name = 'active_plugins'

The error was gone, but i can't work well without the plugins. So, only deactivated the plugin with the error and reactivated the rest. The error was gone.
7. But since i wanted that plugin also, i experimented further and added the line ini_set("memory_limit","12M"); to the main root file of the plugin.The plugin had lots of files in subfolders and the error file was inside the folder.
Adding the line in the root php file which was the starting point of the plugin solved the problem.

Now, everything is working fine.
Just see if one of the above solutions work for you.
Also, check whether you have latest versions of all plugins & themes or try moving some themes or plugins temporarily to check whether that is the cause of problem
Posted 2 weeks ago #
7.

WPITn2shape
Member

Putting it in /wp-includes/cache.php is what worked for me (NOT snoopy).

No comments:

LifesDream - earn money each month





Verifield - Innovative Wealth Management

Verifield - your proven partners on stock markets Hasilkan uang dari Internet? Why Not? AVAZZY.com - Real business and real incomes

Alert Pay.. Get paid for subscribe...

DbClix Join 4Shared Now!

Liberty Reserve - Online Investment


Head Tail Game Liberty Reserve LR

Flip N Win

DepositFiles

Google

Get Paid to sign Up.

Internet Pay to Click

YOU can make $THOUSANDS of dollars per month...Starting from $0.00!

LinkGrand.com


Baca iklan .. dibayar loh...!

www.easyhits4u.com

EasyHits4U.com - Your Free Traffic Exchange - 1:1 Exchange Ratio, 5-Tier Referral Program. FREE Advertising! DonkeyMails.com: No Minimum Payout

Yahoo! Movies News & Gossip

Alexa

Alexa review on mInvestment