• I have updated to WordPress 4.0, and now when I try to go to /wp-admin to log in I get a blank page. I turned on debug mode and have been receiving this error message:
    Fatal error: Cannot redeclare image_constrain_size_for_editor() in blahblahblah/wp-admin/includes/media.php on line 36
    Line 36 is:
    function image_constrain_size_for_editor($width = '128', $height = '96', $size = 'medium', $context = null ) {
    I have tried downloading and manually updating the media.php file in case there was a bug, but to no avail. Anyone know what has happened and what to do about it?

    Edit: The site still looks fine to the public, and I can login at /wp-login.php, but this redirects to /wp-admin and the same blank page. Any page I go to that starts with /wp-admin/… shows the same error message.

Viewing 1 replies (of 1 total)
  • Moderator James Huff

    (@macmanx)

    Try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, access your server via FTP or SFTP, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue (theme functions can interfere like plugins).

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal Error after updating to 4.0’ is closed to new replies.