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).
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
Subscribe to:
Post Comments (Atom)
DepositFiles
Blog Archive
-
►
2020
(3)
- ► 11/29 - 12/06 (3)
-
►
2019
(4)
- ► 09/08 - 09/15 (1)
- ► 09/01 - 09/08 (2)
- ► 01/13 - 01/20 (1)
-
►
2017
(1)
- ► 01/22 - 01/29 (1)
-
►
2016
(3)
- ► 08/28 - 09/04 (3)
-
►
2015
(2)
- ► 01/18 - 01/25 (2)
-
►
2014
(1)
- ► 08/17 - 08/24 (1)
-
►
2012
(2)
- ► 02/19 - 02/26 (1)
- ► 02/05 - 02/12 (1)
-
►
2011
(9)
- ► 08/07 - 08/14 (1)
- ► 06/19 - 06/26 (2)
- ► 05/15 - 05/22 (2)
- ► 05/08 - 05/15 (1)
- ► 02/27 - 03/06 (1)
- ► 02/20 - 02/27 (1)
- ► 01/02 - 01/09 (1)
-
►
2010
(9)
- ► 12/19 - 12/26 (1)
- ► 03/21 - 03/28 (1)
- ► 02/14 - 02/21 (1)
- ► 01/24 - 01/31 (4)
- ► 01/10 - 01/17 (1)
- ► 01/03 - 01/10 (1)
-
►
2009
(5)
- ► 04/19 - 04/26 (1)
- ► 03/22 - 03/29 (1)
- ► 02/01 - 02/08 (1)
- ► 01/18 - 01/25 (2)
-
►
2008
(59)
- ► 11/30 - 12/07 (2)
- ► 11/09 - 11/16 (2)
- ► 08/24 - 08/31 (1)
- ► 07/20 - 07/27 (1)
- ► 05/11 - 05/18 (1)
- ► 03/16 - 03/23 (1)
- ► 02/24 - 03/02 (10)
- ► 02/17 - 02/24 (4)
- ► 02/10 - 02/17 (23)
- ► 02/03 - 02/10 (3)
- ► 01/27 - 02/03 (6)
- ► 01/20 - 01/27 (4)
- ► 01/13 - 01/20 (1)
-
▼
2007
(27)
- ► 12/30 - 01/06 (1)
- ► 12/23 - 12/30 (3)
- ► 12/16 - 12/23 (1)
- ► 12/02 - 12/09 (9)
- ► 11/25 - 12/02 (1)
- ► 11/11 - 11/18 (2)
- ► 09/30 - 10/07 (4)
- ► 01/28 - 02/04 (4)
-
►
2005
(1)
- ► 07/31 - 08/07 (1)
www.easyhits4u.com
EasyHits4U.com - Your Free Traffic Exchange - 1:1 Exchange Ratio, 5-Tier Referral Program. FREE Advertising!
No comments:
Post a Comment