If you are updating WordPress or a plugin and your website gets stuck in maintenance mode, it can be frustrating. Here are the steps to fix WordPress stuck in maintenance mode:
Step 1: Access your website files To access your website files, you can use an FTP client like FileZilla. Connect to your website using your FTP credentials and navigate to the root directory of your WordPress installation.
Step 2: Locate the .maintenance file In the root directory, you will find a file named .maintenance. Delete this file to remove the maintenance mode from your website. Alternatively, you can open the file and remove the contents inside.
Step 3: Check if the website is back online Once you have deleted the .maintenance file or removed its contents, refresh your website to see if it is back online. If it is still showing the maintenance mode message, try clearing your browser cache or accessing your website from a different browser.
That’s it! Your website should now be back online and accessible to visitors. To prevent this issue from happening again in the future, make sure to follow best practices for updating WordPress and plugins, and backup your site before making any changes.