WP 3.0 – Fatal error: Allowed memory size of 33554432 bytes exhausted . . .
Today WordPress.org released the new version of the WP – WP 3.0. The new version is a very impressive update of the cms. But soon after upgrading from my 2.9.x to 3.0 version of wordpress, i tried to make a post in the admin panel and upon publishing it i got this error on wordpress 3.0:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 491520 bytes) in /home/mukhbirc/public_html/addon/nabtron/technab/wp-content/themes/thesis_17/lib/classes/options_site.php on line 851
Well this error is nothing new for many of us. To fix this error, simply follow this:
1. Goto your wordpress root directory
Either login via ftp or use the filemanager if your web host provides you with this feature (to get a cpanel based hosting click here).
2. Edit the config file

In your wordpress 3.0 installation root folder, find the file named:
config.php
Open the file to be edited in your favorite editor
3. Add the code to file and save
Add this code to your config.php file ( type it manually if it don’t work on copy / paste )
define('WP_MEMORY_LIMIT', '64M');
after the lines :
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
Save the file and refresh your wordpress page and it should not give the error again.
If the error still appears then try changing 64M to 128M.
Let me know if error still persists.
Update: If you are still having the issue while updating your wordpress to 3.0, try deactivating all the plugins and try again (thanks to kazimir)
You might also like
- WordPress “No comments found” error [solved]
- What I use to stop SPAM comments on Nabtron
- WordPress 3.3.1 available to download
- WordPress 3.3 “Sonny” released
- Fatal error: Call to a member function get_var() on a non-object in – Solved
107 Responses to WP 3.0 – Fatal error: Allowed memory size of 33554432 bytes exhausted . . .
Leave a Reply
You must be logged in to post a comment.

Didn’t work for me… and deactivating the plugin caused more errors.. :(
fixed it… i think
ok great, how did you fix it?
oh, do you want me to have a look at it?
apparently, it is the wp-config.php file and add in the extra code from like this
define(‘WPLANG’, ”);
to like this and save it
define(‘WPLANG’, ”);
define(‘WP_MEMORY_LIMIT’, ’64M’);
thanks :) I said something similar too!
dr nabeel .. am no intention to grab the headline .. just trying to help .. btw I went to your website .. cool .. are you using the woo theme?… look familiar
no it’s thesis :)
I am having the same issue as they are describing below. I tried everything, even the directions you mentioned here and nothing has changed. I am getting the same error. I am depritely pleading for help ASAP.
Jae please let me know if you want me to look at this error for you
send me the logins and I’ll check
Thanks for this article. This wars really nice and helpfull..best wishes Norbert
Many thanks for posting this solution, it’s taken me over half an hour of searching to resolve this issue on a client’s website and your fix has solved it.
You posted this middle of last year and WP has evolved since, but it still works so glad I found you with an epic long-tail search!
Glad to know it fixed the error for you
can you tell me the keywords you used for search?
Just saw your reply 7 months later :-/ I’m sorry, I didn’t subscribe by e-mail.
I think it was just a copy and paste of the actual error, rather than just a ‘keyword or keyphrase’ :)
ook, btw, what bought you back here again after so long ?
Just checking through all of our website’s backlinks and saw this thread in the list and realised I had been rude and not replied. So I’m sorry for that.
don’t be sorry :) its fine!
Thank for this advise. My page runs again.
glad to know that it worked for you Ralf
Hi,
first thx for your solution, i follow your instructions, but id doesn’t work. I added also the 128 M, but not succesfully.
define(‘DB_CHARSET’, ‘utf8′);
define(‘DB_COLLATE’, ”);
define(‘WP_MEMORY_LIMIT’, ’128M’);
could you help me on?
.mag
it could be due to server settings, did you try talking to your server guys about it ?
Great, thanks. The fix in the wp-admin that is suggested all over did not work, but yours did. Perfect
Glad to know that it worked for you marcus to get your wordpress error fixed . . . and sorry about late response . . . very late infact :)