Happened to me as well:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2356995 bytes) in /home2/mcdragon/public_html/blog/wp-includes/http.php on line 1331
The fix you suggested did not solve the problem π
Is there anywhere in particular this has to be entered in wp_config.php
Right solved!
When you open the wp_config.php file put the following string
define('WP_MEMORY_LIMIT', '64M');
at the very beginning of the file, but just after the <?php tag, OK.
I put it at the end (and yes, it was within the <?php ?> tags at first and that didn’t work.
Thanks. It worked for me.
define(‘WP_MEMORY_LIMIT’, ’64M’);
Hello,
I have this same issue, but I can’t seem to find the wp_config.php file. I have looked in every folder in my CPanel (BlueHost) and have been unable to locate. Can someone supply the proper path to finding it? Thanks.
@phillauterjung the “wp_config.php” file will be in the root directory of your WordPress install. It is in the folder that contains such folders as “wp-content” and “wp-includes”. It may be a problem with cPanel not allowing you to access these locations.
sacredpath
(@sacredpath)
Automattic Happiness Engineer
You have to love it when you do a search in a forum and the hit at the top of the list cures your problem.
Big thanks.
It’s great to see there’s a solution to this little problem but I am curious as to ‘why’ it’s happening. It’s a little scary when my WP doesn’t want to update like it should.
Moderator
James Huff
(@macmanx)
Volunteer Moderator
1. If you have access to your PHP.ini file, change the line in PHP.ini
If your line shows 32M try 64M:
memory_limit = 64M ;
Maximum amount of memory a script may consume (64MB)
2. If you don’t have access to PHP.ini try adding this to an .htaccess file:
php_value memory_limit 64M
3. Talk to your host.
None of these worked, just tried upgrading to 3.0 and what a goat rope. Server says it’s WP coding error, need assistance please.
Per nacin:
We’re in the process of pushing out a plugin for this: http://wordpress.org/extend/plugins/memory-bump/
In the meantime, you can also add this to your wp-config.php file:
define('WP_MEMORY_LIMIT', '256M' );
The issue is that WP *may* need more than the default 32 MB to upgrade to 3.0, due to the increased package size over 2.9. This is a “known issue”.
3.0 handles this by always bumping you to a very high memory limit in the admin area, so you won’t see this once you’ve hit 3.0.
I had the same problem and it worked for me – thanks for the help much appreciated – Mick
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2965231 bytes) in /home/devil/public_html/wp-includes/class-http.php on line 1402
I am getting like above while upgrading to wordpress3.0 help needed..