@navana5624: I think you should ask Hostgator how you can disable their default 503 error page.
After that you’ll see the maintenance mode page displayed by WP Maintenance Mode. 🙂
Hi George
Thanks for your suggestion.
I contacted Hostgator they were not sure how to disable the Error 503 default page but have escalated the issue to frontline support system administrators.
The site works 100% when the WP Maintenance Mode plugin is deactivated.
The Error 503 only appears when I activate the WP Maintenance Mode plugin.
The version is the updated version 2.1.2
It is a bit odd was working fine last week.
Cheers
@navana5624: maybe Hostgator updated their systems recently.
Hi George,
Have you heard of this “Error 503 Service Unavailable” occurring with any other users with Hostgator as their host or for that matter any other Hosts whilst the WP Maintenance mode is in active mode.
Cheers
@navana5624: this usually happens when the hosting provider is replacing the 503 error page with a default one. It has nothing to do with the plugin.
Later edit: try to add the next line inside .htaccess or maybe you have some settings about custom errors pages inside cPanel.
ErrorDocument 503 /index.php
-
This reply was modified 8 years, 4 months ago by
George J.
DWE
(@jgbaugh20)
@navana5624 I was having this same issue and I am also on Hostgator. My fix is probably not recommended as it isn’t a permanent fix, but it will work for me.
I’ll share what I did, BUT proceed at your own risk!
I edited the PHP code on lines 491 and 492 of file /wp-content/plugins/wp-maintenance-mode/classes/wp-maintenance-mode.php. I changed the 503 to a 200.
This solution will break when the plugin is updated again. The 200 is the HTTP error code and it may not be the best to set it at 200 for other use cases.
@jgbaugh20: if you use the plugin for maintenance… is not recommended to use a 200 status code.
DWE
(@jgbaugh20)
Agreed!
We were in a position where we needed a quick fix while I figure out a better solution.
We are using the plugin more as a pre-launch splash screen to collect leads during social media hype campaign. So we needed the page to be live and not a 503 error page from the host.
This worked. Though I stated it was probably not recommended, I shared it just in case others were in this position.
Cheers
Hi
Error 503 fix has been applied.
I contacted Hostgator support and they said Error 503 was related to service configuration settings pertaining to the default 503 error page, which is overriding your maintenance plugin as George made comment above.
They therefore applied a fix to their server I guess and now the default Maintenance page is displayed as before.
Cheers