Business

Get Out of WordPress Maintenance Mode

Published

on

WordPress users know that the platform gets into maintenance mode each time an update is applied. It’s business as usual as visitors to your website will see a pop-up saying that work on the site is underway. Then disaster strikes. The update is complete, but you still see WordPress stuck in maintenance mode. Don’t panic; this happens. Here’s how you can get out of this dilemma.

Why WordPress Gets Stuck in Maintenance Mode

The world’s most popular CMS features a built-in maintenance mode. WordPress activates it every time you update your software, plugins, and themes. The platform creates a file called .maintenance in a root folder to trigger it into maintenance mode.

This is the same root folder that holds the following files:

  • wp-admin folder
  • wp-config.php

This file then activates the said pop-up window. Once the update is done, WordPress deletes this file. The pop-up disappears, and the site works as it usually does. 

Insert maintenance mode2

Image Source: WordPress.org

However, like every CMS, you can expect a little snag here and there with WordPress. It gets stuck in maintenance mode, which can be harrowing, especially for first-time WordPress users. Here are a few of the potential causes of this:

  • Accidental closure of the browser tab while the automatic update is ongoing
  • Automatically updating numerous plugins and themes
  • A glitch that happens because of a compatibility issue

How to Fix WordPress Stuck in Maintenance Mode

There are several ways to pull WordPress out of the maintenance mode. The most basic would be to simply delete the .maintenance file. After a successful update, WordPress automatically deletes this file. Nevertheless, things can sometimes go wrong.

Here are a few situations and what you should do to fix this:

Check the root folder

If you still see the .maintenance file in the root folder, remove it. You can do this by using an FTP client app such as WinSCP or FileZilla

  1. Download your chosen FTP client app or use the file manager given by your hosting provider (e.g., cPanel File Manager)
  2. Connect to the FTP server and find the WordPress root folder. This is usually the public_html folder that contains all the subfolders related to your site. The root folder is where you’ll find the wp_admin folder
  3. Search for the .maintenance and delete it using the FTP client app
  4. Clear the browser cache and reboot your website

If you want to use the hosting site’s file manager, here’s what you should do:

  1. Go to the hosting site’s control panel
  2. Click on the File Manager option
  3. Search for the .maintenance file and delete it

Alternatively, you can use an SSH connection to get you out of the maintenance mode:

  1. Set up an SSH connection such as PuTTY or KiTTY
  2. Go to the WordPress root folder
  3. Type in rm .maintenance to remove the .maintenance file
  4. The file should be deleted, and your website will be unlocked

If the theme or plugin did not update properly

If a theme or plugin did not update correctly, it might result in your WordPress site getting stuck in maintenance mode. This is what you should do:

  1. Connect to your FTP server and look for the root folder
  2. Navigate to the wp-content folder and find the sub-folder containing the plugins sub-folder
  3. Rename this folder to plugins-old
  4. Refresh the website and check whether this solved the issue
  5. Repeat the steps for the themes sub-folder

If the themes and plugins are faulty 

When you find out that the culprits are faulty themes and plugins, here’s what you should do:

  1. Connect to the FTP server
  2. Rename each sub-folder back to “plugins” and “themes” to revert the previous changes you made
  3. Go to the WordPress admin page
  4. Find Appearance
  5. Select Plugins or Themes depending on which is faulty

For Themes

If the theme is what causes the problem, do this:

  1. Deactivate your current theme
  2. Choose a different theme
  3. The site will look chaotic, don’t panic; this means it’s working
  4. Reactivate your old theme or reinstall its latest version

For Plugins

  1. Activate the plugins one by one
  2. Refresh the page to identify the plugin causing the problem
  3. Delete the erroneous plugin 
  4. Reinstall it to see if the problem is fixed

If you still see WordPress stuck in maintenance mode, contact the developer of the theme or plugin. In the meantime, you have to stop using that plugin or find a substitute theme. Keep in mind that themes and plugins are updated regularly, so consider this when uploading them.

How to Avoid WordPress from Getting Stuck in Maintenance Mode

To reduce the chances of this happening again, take note of the following:

Plugin/Themes Compatibility

Before downloading or updating themes and plugins, make sure they’re compatible with the WordPress version you’re using. To check the compatibility of a theme or plugin, go to your WordPress dashboard.

Update Plugin/Themes One at a time

Updating the themes or plugins when updates become available is highly recommended. Do this instead of updating multiple plugins at once. This will prevent the problem from recurring as you can quickly identify which plugin causes the issue. 

Additional Tips

After updating each of the plugins you use, make sure to test your website. This will ensure that the plugin is compatible and will not cause WordPress to get stuck in maintenance mode.

Another good tip is to stage your site and test the updates before using them on your live site. It would help if you always did regular updates to safeguard your website’s stability and functionality. Also, don’t forget to create backups that you can return to if, in the rare case that you aren’t able to fix the issue.

Conclusion

Getting WordPress to work smoothly and uninterrupted after an update is what every website owner should aim for. It’s a part of keeping your site in optimum working conditions. However, complications happen, and they are inevitable. Follow the steps listed above to get you out of the rut and lessen the chances of it repeating.

Leave a Reply

Your email address will not be published. Required fields are marked *

Trending

Exit mobile version