Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I migrated my WordPress blog to a new server, and everything seemed to be working fine until it started giving me the error when entering the admin area:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to
allocate 4864 bytes) in
on line 729

The line 729 has:

$protected = array( '_wp_attached_file', '_wp_attachment_metadata', '_wp_old_slug', '_wp_page_template' );

I had installed the maintenance-mode, and I have suspicions that this is what broke the forum.

If I remove the plugin it then gives another error:

Fatal error: Allowed memory size of
33554432 bytes exhausted (tried to
allocate 19456 bytes) in
on line 1158

And that line has:

$content .= '<p class="hide-if-no-js">' . esc_html__( 'Remove featured image' ) . '</p>';

I tried to restore the blog file-system from the old server and also to restore the database from the old server (2x), but still it gives me the same error.

The blog itself seems to be working fine:


share|improve this question
up vote 1 down vote accepted

Try taking a look at this: http://nabtron.com/wordpress-3-0-fatal-error-allowed-memory-size-of-33554432-bytes-exhausted/1924/

share|improve this answer
Just as a side note there is a stack exchange site specifically for Wordpress: wordpress.stackexchange.com – Adam Thompson Nov 10 '10 at 21:05
Oh interesting I didnt know that – Emerson Nov 10 '10 at 22:09
Just to add the full answer, you need to add this: define('WP_MEMORY_LIMIT', '64M'); After DB_COLLATE config. – Emerson Nov 10 '10 at 22:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.