• Resolved EcstaticDesign

    (@ecstaticdesign)


    After attempting to update WordPress (it failed), we now get the following error when trying to get to the admin login:

    Fatal error: Call to undefined function is_customize_preview() in /home/content/21/9021721/html/wp-admin/includes/admin-filters.php on line 47

    I’m unable to get in through wp-login.php either. I have used ftp to check the admin-filters.php file and compare it to previous versions. Line 47 appears to be exactly the same as in previous versions.

    if ( ! is_customize_preview() ) {

    I’m at a loss of what to do. Unfortunately, I was just brought in on this project and I’m told there are no backups for the site. I also don’t know what the WP version was that they were trying to update when it failed.

    Luckily, the site is still live but I’m scared to try things that might actually cause it to go down. I’m hoping someone here can help!!

    Thanks so much.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator James Huff

    (@macmanx)

    Try downloading WordPress again, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, and delete then replace your copies of everything on the server except the wp-config.php file and the /wp-content/ directory with fresh copies from the download. This will effectively replace all of your core files without damaging your content and settings.

    Some uploaders tend to be unreliable when overwriting files, so don’t forget to delete the original files before replacing them.

    If reinstalling made no difference, 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 SFTP or FTP, or a file manager in your hosting account’s control panel, 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).

    Thread Starter EcstaticDesign

    (@ecstaticdesign)

    Thanks soooo much, James. Uploading the new files did the trick! I appreciate the help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t get to admin login after failed WP update’ is closed to new replies.