• Resolved npiper

    (@npiper)


    Currently running WordPress 5.0.3 trying to update to 5.1.1. Everytime I try to update I get an error message: Fatal error: Call to undefined method WP_Error::has_errors() in C:\inetpub\wwwroot\wordpress\wp-admin\includes\file.php on line 1504. I’ve already deactivated every plugin I have installed to verify it was not a plug in causing the issue.

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 (consult your hosting provider’s documentation for specifics on these), 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.

    Thread Starter npiper

    (@npiper)

    This worked!Thank you for the quick response!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error when I try to update WordPress’ is closed to new replies.