WordPress Stuck In Maintenance Mode & Not Working! Read How To Fix It? – Best of 2021

It’s a happy feeling when your WordPress website is going smoothly. You have the maximum reach, hitting goals, getting conversions. But surrounding changes gives you many reasons to stop and think. No doubt, WordPress serves it’s best but like other tools, it also needs to keep in WordPress maintenance mode.

Being a successful online entrepreneur, it is necessary to keep your site in WordPress maintenance mode. Because without frequent care, your site does not run smoothly and may affect your business.

That’s why put your site in WordPress maintenance mode because it is a process display a notice “site is under maintenance” to your users instead of broken site.

When you put your WordPress site on maintenance mode, it is temporarily inaccessible and this unexpected change can down your site ranking in search engine.

Search engine spiders also known as web crawlers are type of “bot” that visits websites on the internet. These bots “crawl” across the web to help search engines like Google index and rank the billions of pages on the internet. These search engine spiders love semantic web pages. It helps those crawlers to understand the page in a better way.

You can gain an advantage against the pages which don’t validate in the search engine results pages SERP listings. It shows that you have care and concern about your website. Validation of your web page means that you have made a good effort for a structured web page. That’s a huge plus for search engines and it may boost your rankings up.

search result generates the traffic on the site as well as increases the brand’s position and works as a key to business assets. But to run the latest version of plugins, themes, and WordPress core; we need to update. Therefore, it’s necessary to put your WordPress website offline during maintenance.

Now you need to know when to plan the WordPress maintenance with viewer’s respect and how to get out of it. If you are aware of WordPress files and codes then the task is quite easy. But if you are not aware, then don’t hesitate to outsource WordPress Support help.

Now get an entire overview of the WordPress maintenance mode;

What is WordPress maintenance mode?

WordPress maintenance mode stuck is a process that can apply to your WordPress site to keep maintain and run smoothly. It takes care of some administrative tasks that can harm your site performance.

For example, your WordPress setup is made up of various parts including WordPress software itself, WordPress hosting, WordPress plugins, and themes. Where plugins adds new functionality to your WordPress site or extends existing functionality on your site and theme is a group of stylesheets and templates that are used to describe the appearance and display of a WordPress site.

A WordPress theme changes the layout & design of your site. You can change, manage, and add a theme, by going to Appearance>>Themes in your WordPress admin panel. There are a lot of themes available in WordPress.org theme directory. Each & every theme comes with various features, design, and layout. The user can choose one that suits their requirements.

You need to put these site’s parts in maintenance mode to keep the best working of your site.

Hence, it’s best to set WordPress maintenance mode. Make sure that your site should be offline during the maintenance mode because some changes may lose your site ranking. And create a “site is under maintenance” landing page so that users can understand the site is under construction.

When to plan WordPress maintenance mode?

WordPress maintenance is a time taking process and until the maintenance mode is on, the visitors are not able to see your site. So try to put your website in maintenance mode in the duration in which your site is getting minimum traffic.

When you decided to put your site in maintenance, create a beautiful landing page showing “site is under construction” or site is under maintenance mode or “website is temporarily disabled” etc. Due to this, the users will understand that the site is temporarily out of service and it will be live soon.

But the question is – when and why you should use WordPress maintenance mode process;

Why you use WordPress maintenance mode?

Without putting your site in maintenance mode, you can also customize your WordPress site for minor changes, but sometimes for major changes, you may require to work on your site for a longer time, for ex, when you manually configuring a new plugin or setting up a new theme. At the same time, you need to put your site in maintenance mode so that your site does not show a broken page to your visitors.

Fast forward, in case your site has numerous traffic, so a single site owner doesn’t want their visitor see a broken page because it creates a bad impression on your brand.

And applying WordPress maintenance mode allows you such solutions – alternative links to visit, a user-friendly notification, and give a time frame once the maintenance will be done. It creates a good impression and user satisfaction between your visitors.

Use can use the same strategy for the new site to put WordPress maintenance mode.

Over to this, let’s see how to fix WordPress maintenance mode stuck;

How to put a WordPress site in maintenance mode with and without plugins?

There are mainly four methods to set WordPress maintenance mode

  1. Use the WordPress maintenance inbuilt features
  2. By using a .htaccess file
  3. Display a maintenance page via custom coding
  4. WordPress maintenance mode plugins

Let’s get cracking!

Enable WordPress maintenance mode without plugin (manually)

Method 1: By using the WordPress maintenance function

The WordPress maintenance function is an inbuilt feature apply automatically during the updation of WordPress themes, plugins, and WordPress core. But it is a very simple process. During the updation process, it shows a message that represents the site is in under construction. After completed the updation, maintenance mode is deactivated auto.

WordPress Maintenance Mode
WordPress Maintenance Mode

However, the updating process doesn’t take a long time to update but still, at the same time, your site will replace by this splash page:

WordPress Maintenance Splash Page

A temporary file .maintenance file” creates this page. You will see this file only in your WordPress file directory during the WordPress updates. Note that this method does not cover all things, it only covers when you update things via a WordPress core update mechanism.

Method 2: By using .htaccess

This technique is only for Apache server user. As we all know that .htaccess file belongs to Apache server. Actually, this is the server configuration file that communicates with the server to respond to your WordPress Website. By using you can get control access to the directories within the server and send a response code of the server status.

Here, you can use a 503 status code.  It is also a universal message that occurs while you are trying to access a site but the server cannot be reached. This code will show that the “server is temporarily unavailable”. Before you edit .htaccess, it’s necessary to create a new file in .html or .php format and add a message in the file like:

maintenance page view
WordPress Maintenance Mode

Now edit your .htaccess file in your server and add the following code lines:

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^123\.456\.789\.000
RewriteCond %{REQUEST_URI} !/maintenance.html$ [NC]
RewriteCond %{REQUEST_URI} !\.(jpe?g?|png|gif) [NC]
RewriteRule .* /maintenance.html [R=503,L]

The mentioned above code redirect all web requests (coming to site homepage) to maintenance.html file. But note that, very first you will have to create this maintenance.html file because you will be using this as a temporary homepage replacement.

Now bending towards the points –

To add this code login to your website and click on Appearance➤Editor. Thereafter, find out function.php at the left and add the code in the bottom of the function.php file.

Method 3: Display a maintenance page using custom coding

You can also display a maintenance page by using custom coding. We are going to mention a code, just you have to add this code to your function.php file.

// Activate WordPress Maintenance Mode
function wp_maintenance_mode() {
if (!current_user_can(‘edit_themes’) || !is_user_logged_in()) {
wp_die(‘<h1>Under Maintenance</h1><br />Something ain’t right, but we’re working on it! Check back later.’);
add_action(‘get_header’, ‘wp_maintenance_mode’);

This process apply maintenance mode on your site and shows a message “Under Maintenance” (that you want to show) with H1 tag. See the below screenshot;

Manual WordPress Maintenance Mode

Now logout or disable WordPress site and see your site is in action.

Method 4:  Put your WordPress site in maintenance mode with plugins

There are a lot of WordPress maintenance mode plugins to put your site in maintenance mode. Each & every come with its own distinct features and work also in case of WordPress maintenance mode not working manually (via discussed above method).  Here, we will discuss some most popular plugin which let you turn on WordPress maintenance mode.

1. WP Maintenance mode plugin

wp maintenance page plugin
WordPress Maintenance Mode

With 5-star rating, it is a most popular, powerful, and free maintenance mode plugin that is designed by Designmodo. WP maintenance mode plugin allows you to add a page which shows that your site is down for maintenance. You can also add the date and countdown timer to show the time after you will connect with your user again. It has a structured theme that you can customize as per your choice like a different background, colors, and content.

Additionally, with the help of this plugin, you can add things such as email forums, social media links, contact forms, and use a date with a countdown timer. It also works with WordPress multisite installs.

The features of WP maintenance mode plugin are as follows:

  • Customizable color, text, and background;
  • Subscription form;
  • Coming soon page;
  • Contact Form;
  • Landing page;
  • WordPress Multisite;
  • Responsive design;
  • Social media icons;
  • Works with any WordPress theme;
  • SEO options;
  • Exclude URLs from maintenance;
  • The Bot functionality allows collecting emails in a friendly and efficient way.
  • GDPR(General Data Protection Regulation) Ready.

Now the question is how to setup maintenance mode using this WP maintenance mode plugin, let’s see;

Setting up maintenance mode via WP maintenance mode plugin

The very first install and activate the plugin. For more info: How to install a WordPress plugin.

After the activation process, go to the Setting>>WP Maintenance Mode to configure the plugin settings.

wp maintenance mode
WordPress Maintenance Mode

[Image source: www.wpbeginner.com]

Now you will see five tabs on your plugin screen. Under the first one General tab, there is a “status” option which is deactivated by default. You have to activate it if you want to keep your site in maintenance mode.

If you want to see your site to search engine during the maintenance mode, set the “Bypass for Search Bots” option (next to status) to Yes. We recommend setting this option to Yes if you have an established site.

Fast forward, during the maintenance mode, WP maintenance mode plugin allows users to have full access to your site. Means you can login to your WordPress dashboard and see the working website.

During this mode, you can define which user roles should have access to the front and backend of the site. However, it is set to Administrator role by default.

Rest all options on the plugin page are self-explanatory. After all the entire settings, press the save settings button to save your changes.

Create your own splash page for maintenance mode

Create a beautiful maintenance mode landing page with this plugin to show your site is in maintenance mode. For the same, click the Design tab on the plugin setting page.

maintenance page
WordPress Maintenance Mode

The very first, mention the Title, Heading, and content accordingly to show your maintenance page. For example, if you want to show “coming soon” or “site is under construction” page on your site so you can change the content as per your choice.

Thereafter, choose the text color and background type. You can select the background color, pre-defined image as per your liking. And the best is you can also upload your own background image.

After all the settings, press the Save Changes button to save your settings.


Add the newsletter signup and countdown timer on the maintenance page

If you want to let your user know when your site will come back, so you can add a countdown timer module that is included in this plugin.

To set it – Go to the Modules tab on the plugin’s settings page. Thereafter, choose the start date and mention the remaining time.

adding countdown timer
WordPress Maintenance Mode

Furthermore, as your site back online, so you can also subscribe and notify your users via the plugin. And users will not be subscribed to your email marketing list.

WordPress Maintenance Mode

Not only this but, you can also add social media profiles links in your maintenance mode or coming soon mode page. To do it, all you have to do is to enter your social media profile URL, thereafter the plugin will show the social buttons automatically.

add social buttons
WordPress Maintenance Mode

There is one more option – if you want to enable Google Analytics which is one of most powerful tools you can add to your toolbox for tracking your website activity. It is the most widely used tools. Enable your Google analytics by adding the tracking ID in the plugin settings. And press the Save Settings button to save your changes.

In addition, with this plugin, you can set up a pre-programmed live chat box in which an interactive conversational help box is included. The benefit of this feature is that you can ask your users if they want to subscribe.

WordPress Maintenance Mode

The maintenance mode will be hidden (that you had set in the General setting page) if you enable the bot. Now let’s see how chatbox will appear on your site.

chatbot preview
WordPress Maintenance Mode

Throughout the signup forms if you collect user data on your coming soon or maintenance mode page that you have made, then you want to make it GDPR compliant.

Fast forward, for this, go to the GDPR tab on the plugin settings page and enable the privacy module and choose your privacy policy page.

gdpr settings
WordPress Maintenance Mode

That’s All! Now you can see your site is in action.

maintenance mode preview
WordPress Maintenance Mode

Mentioned below are some more plugins to put your site in maintenance mode;

2. Coming soon page & Maintenance mode

Coming soon page & Maintenance mode is a free WordPress maintenance mode plugin. As the name states, this plugin allows you to add a simple coming soon mode and WordPress maintenance mode page. You can work on your site in private while the viewers will see “coming soon” and “maintenance page”. This plugin also comes with a pro version including advanced features.

Coming Soon Page & Maintenance Mode image
WordPress Maintenance Mode

The set of benefits and feature of this plugin are:

  • The plugin is compatible and responsive to all WordPress Themes
  • Properly Customize the Look and Feel
  • Allow adding Custom CSS and HTML
  • Uses HTML5 & CSS3
  • Translation Ready, i18n Support
  • Multisite Support
  • BuddyPress Support
  • Uses WordPress Best Practices

3. Under construction/maintenance mode from acurax

With a rating of 4.5 stars, this Under construction/maintenance mode from acurax is easy to use and coming soon landing page plugin.  It is fully featured and comes with a lot of customizable options. This plugin has 5 responsive landing page templates in which several features like social media icons, countdown timer, custom HTML blocks, and countdown timer to display the time and date are included.

under construction picture
WordPress Maintenance Mode

The highlighting features of this plugin are:

  • It provides 5 Mobile Friendly High Customizable Themes
  • Easy Customization of  Content, Colour, Background, etc.
  • Auto Launch Option Available
  • Subscribe Optin form to collect visitor emails
  • Social Media & Google Analytics Integrated
  • Countdown Timer Support
  • SEO Configuration.
  • GDPR and Privacy Policy Options.
  • Advanced Access/Restriction Settings.
  • Custom HTML Page Support

4. WordPress Auto maintenance mode

Like any other WordPress feature, WordPress maintenance also turns into automatic mode. Many of the new site developers want their site will show offline while they are not login to their website. This is because they are still developing the site and don’t want to lose the viewers.

In this situation, the Auto Maintenance Mode plugin will play the role. This is a lightweight powerful plugin and can easily installed. This plugin will automatically enable WordPress maintenance mode page when you are not doing anything on your site for a long duration.

Additionally, this plugin is best for development sites like test.example.com, staging.example.com, dev.example.com. Note that, don’t use this plugin for a production site. Finally,  it is easy to use plugin and automatically display a maintenance mode page even you log out a site.

It does not require any extra setup or configuration. Just activate it, the maintenance mode will be automatically enabled if you put your site in maintenance mode more than 60 minutes. The best thing is, it uses an HTML5 layout that also shows a maintenance mode page in a mobile device.

The feature serves by this plugin are:

  • Already well customize plugin.
  • Automatically Clean HTML and CSS layout.
  • Responsive maintenance mode page.
  • No customization required.
  • As the maintenance mode is activated automatically when you are away from your site. So it’s easy to maintain the site.

Some other plugins that help you to turn on/off WordPress maintenance mode:

  1. Elementor
  2. Minimal Coming Soon & Maintenance Mode
  3. Maintenance
  4. Fancy WP Maintenance Mode
  5. Ultimate Maintenance Mode
  6. Slim Maintenance Mode
  7. Site Offline or Coming Soon
  8. Easy Pie Maintenance Mode
  9. Site Maintenance
  10. Coming Soon Page

What to do when we stuck in WordPress maintenance mode?

Sometimes it happens your site get stuck in maintenance mode. In this situation what you will do. Don’t get panic.

There are mainly two reasons for the same, they are;

  1. After the updating process, the .maintenance file did not delete itself
  2. WordPress Maintenance mode plugin error

The .maintenance file  

What actually happens, when you update your WordPress, themes, and plugin the new file are unzipped and copied and the old files are deleted. This process is fast but when it goes wrong your site become dead and you are not able to access your site.

By default, the .maintenance file is known as “dot file” hidden in most file managers. To view it you have to enable a “Make hidden file viewable” feature. However, different file managers label this feature differently.

When we update WordPress, a .maintenance file is created in the root directory which is automatically deleted after the process. But if you’re stuck in WordPress maintenance mode, it means the .maintenance file is still in the root directory and you need to delete it manually. There are also some reasons that’s why .maintenance is not deleted;

  • When you suddenly close the browser during the auto update of the WordPress website.
  • A huge number of plugins and then updated at the same time.
  • The incompatible server also interrupts the update.

Coming towards the point, let’s see how to turn off WordPress maintenance mode:

By deleting the .maintenance file from the root directory can get you out from the maintenance mode. If you know all the access of your system files then it will be easy to delete .maintenance file.

Delete .maintenance file in cPanel:

WordPress files are stored in the file manager of cPanel. What you have to do is access your Cpanel open the file manager. Wait for file manager directory selection pop-up➡Web Root (public_html)➡ Show Hidden Files➡ Go. And you directly reach to .maintenance file. Delete the file and refresh your browser and check that the error is gone or not.

If the file manager directory selection pop-up does not appear and there is no file in the public_html directory then you need to reset all the interface settings. You will get this set in the bottom of Cpanel. Once it’s fixed, refresh the page and try it again. You may see the maintenance mode due to the cache stored in your browser also. So if you still get the error then clear the cache and refresh your site again.

Delete the .maintenance File Using FileZilla:

FileZilla is a cross FTP (file transfer protocol) application consists of Filezilla client and FileZilla server. FTP client will work as a file manager. Follow the step to connect with an FTP client.

However, FTP has done many plans to select one which is suitable for you. Then, configure your FTP client connection type as SFTP (not regular FTP), Address/URL/Hostname: Use your IPv4 Address, Username, Password, Port.

  • Most of the time all the information is located on your dashboard or an email. Run and install the program on the computer.
  • Open the file and select the site Manager, Click on new site’s. Ensure that the General tab is on.
  • Check out for the Wp-admin and Wp-content folder. Find Out .maintenance file and delete it. Refresh your site and check.
  • If you can’t find the WordPress .maintenance file then, click on server and force show hidden files. Now find the .maintenance file and delete it. Refresh your browser and check your site.

If you find any error in WordPress maintenance plugin

In case you are using a plugin to keep maintain your site and cannot remove the splash screen even after turning off the feature in settings, so you have to delete and deactivate the plugin. If the plugin does not work you will need to clear the cache of your site, that you can do in the two ways;

1. Via Cache plugins: WP Super Cache, WP Fastest Cache, W3 Total Cache, etc. All you have to do is to install one of these plugins and clear your site’s cache. This is similar to clearing cache on your browser, computer, or phone.

2. Via your host’s control panel: Some hosts (especially managed WordPress hosts) have the option in the control panel that lets you clear the cache of your site within a single click of button. If you use a managed WordPress host, you will need to use this option anyway, because some of them do not lets you install caching plugins on your server. That’s because they are already handling caching on your behalf.

Prevention is always better than cure. So, taking care of these things you can get WordPress out of maintenance mode.

How to prevent WordPress from stuck in maintenance mode?

Compatibility of WordPress with plugin and theme

Note that, you will need to keep your WordPress version up to date. Fast forward, before you upgrade WordPress themes and plugin, make sure that the upgraded version must be compatible with WordPress version.

However, In the latest WordPress version, there is the best feature that tells users – the WordPress plugin is compatible with your WordPress version or not. You can check the compatibility on your WordPress dashboard.

If any theme or plugin is not 100% compatible with your WordPress version, so don’t update it. However, you should also check your updates in a controlled environment.

There are some ways to test your updates i.e. site staging and transferring your site to a local server.

If your hosting plan contains site staging, so you can clone your site from one location to another on your server, and test the updates there. If not, buy a cheap shared hosting plan, use a staging service to use as a test server, alternatively, you can also create your own server on your desktop with a program such as MAMP.

Avoid Bulk update

The very first, take your WordPress site backup before update. However, you can use WordPress plugins to create WordPress backup.

Never update all the plugins and theme at the same time. Technically it’s good to update plugins and theme when you have the updated version. But due to work we ignore the update at that time and go for bulk update of all plugins.

Preventing plugin’s error

There is not any single method to prevents plugin issues. But at least you can research on the plugin that you want to use and install the plugin that comes with a great reputation and provides the clean and well-functioning code. It is beneficial for you and prevents your site from getting stuck in maintenance mode.


WordPress Maintenance is something which acts as a guard and extends the life of your website. Go for it. It takes your time but a lot of features are waiting to add in your site. As a WordPress user, we can say a well-maintained website runs a long way in the digital market.  If you still not confident hire a WordPress developer.

Hope this article helped you with WordPress maintenance mode. Like and share the information with others also and you can share your query in the comment section.

Leave a Reply

Call Us