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:



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

| improve this answer | |
  • 1
    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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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