There could be several reasons behind the “Under Maintenance” error message in WordPress. Usually, this occurs when a site is being updated or a plugin/theme is being installed. Here are some steps to fix this issue:
- Delete the .maintenance file:
When your WordPress site is updating, a temporary file called “.maintenance” is created in the root directory of your WordPress installation. If the update process is interrupted, this file might not be deleted automatically, causing the “Under Maintenance” error.
To delete this file, follow these steps:- Log in to your website’s cPanel or use an FTP client like FileZilla to access your website’s files.
- Locate the “.maintenance” file in the root directory of your WordPress installation. It’s usually located in the same folder as the wp-config.php file.
- Delete the “.maintenance” file from your server.
- Manually update your WordPress installation:
If deleting the .maintenance file doesn’t resolve the issue, you may need to manually update your WordPress installation. To do this, follow these steps:- Download the latest version of WordPress from the official WordPress website.
- Extract the downloaded WordPress zip file.
- Access your website’s files using an FTP client like FileZilla or via your cPanel’s File Manager.
- Go to the “wp-content” folder in your WordPress installation and rename the “plugins” folder to something like “plugins_old” to temporarily disable all plugins.
- Upload the new WordPress files (except the “wp-content” folder) to your server, overwriting the existing files. Make sure not to delete or overwrite your “wp-content” folder, as it contains your themes, plugins, and uploads.
- After the files have been uploaded, go to your WordPress admin dashboard and follow the prompts to update your WordPress database if needed.
- Once the update is complete, go back to the “wp-content” folder and rename the “plugins_old” folder back to “plugins” to re-enable your plugins.
- Check for plugin or theme conflicts:
If the issue persists even after updating WordPress, there might be a conflict with one of your plugins or your active theme. To check for plugin conflicts, follow these steps:- Access your website’s files and go to the “wp-content” folder.
- Rename the “plugins” folder to something like “plugins_old” to temporarily disable all plugins.
- Check your website to see if the error message is gone. If it is, there’s likely a conflict with one of your plugins.
- Rename the “plugins_old” folder back to “plugins” and enable your plugins one by one, checking your website each time to identify the conflicting plugin.
- To check for theme conflicts, follow these steps:
- Access your WordPress admin dashboard and go to Appearance > Themes.
- Activate one of the default WordPress themes, like Twenty Twenty-One or Twenty Twenty.
- Check your website to see if the error message is gone. If it is, there’s likely a conflict with your active theme.
- Contact your hosting provider:
If none of the above solutions work, reach out to your hosting provider for assistance. They can help you identify server-side issues that might be causing the “Under Maintenance” error message.
The “Under Maintenance” error message in WordPress can be caused by various factors, such as an incomplete update process, plugin/theme conflicts, or server-side issues. To resolve this error, try deleting the .maintenance file, manually updating WordPress, checking for plugin and theme conflicts, and contacting your hosting provider for assistance. By following these steps, you should be able to fix the error and get your WordPress site back up and running smoothly.