First, Clear your website cache and create a backup using a plugin such as BlogVault.
Then, delete the .maintenance file from your site’s server, using your cPanel or FTP client.
- Log into your cPanel account.
- Navigate to Files > File Manager.
- Inside public_html, search .maintenance file.
- Right-click on it and choose Delete.
After that check your WordPress dashboard, and you’ll see that the error “An Automated WordPress Update Has Failed to Complete” has been resolved.
If you can’t find the .maintenance file then, go to File Manager > Settings and select Show Hidden Files from the window that pops up.
- Check for conflicts: Theme or plugin conflicts can cause WordPress updates to fail. You can deactivate plugins one by one and check which plugin is the cause.
- Check for database or server issues: Issues with the site’s database or server can cause WordPress updates to fail.
- Check for maintenance mode: Maintenance mode can cause WordPress updates to fail.
- Check the permission: Permission errors can cause WordPress updates to fail.
- Check for other causes: Other causes of WordPress update failures may be problems with the WordPress REST API.
- Manually update – using WordPress dashboard
- Log into your WordPress dashboard. Navigate to the Updates link. If there’s an update, click on the corresponding link.
- Inspect your wp-admin dashboard; if a database update is required, a pop up will appear. Click on it to finalize the update.
2. Manually update – using cPanel
Here are the steps to update WordPress manually:
1. Download the latest WordPress version to your computer.
2. Log in to cPanel and access File Manager.
3. Go to the root directory of your site (public_html).
4. Delete the wp-content and wp-admin directories.
5. Click on the “Upload” to upload the zipped WordPress file to your site server.
6. Extract the zipped file.
7. Move the wp-admin and wp-includes folders to the root directory, along with any loose files. Only the wp-content folder should remain.
8. Compare the two wp-content folders and only move files and folders that don’t already exist on your site to avoid unintentional deletion of plugins, themes, and media.
9. In File Manager, locate the version.php file in the wp-includes folder and note the value for $wp_db.
10. Close File Manager, open phpMyAdmin from cPanel, find your site’s database and open the wp_options table. Check the value for db_version and ensure it matches the version number from the version.php file. Update if necessary.
11. Log in to wp-admin, check the dashboard for messages, and follow any instructions to update the database.
After completing these steps, add “/wp-admin/about.php” to your site URL to verify if the WordPress version updated correctly.