0

Magento 2.2.5 - Admin Panel has 503 Service Unavailable page under Content=>Pages. I updated this page but the changes are not reflected. Is Magento using this page or not?

enter image description here

  • Check your server logs, and Magento's logs (var/log), and add any relevant information from there to your question. – andyjv Jan 23 at 14:13
  • Also, when you say you "updated this page", what do you mean? What page did you update, and what changes did you make? – andyjv Jan 23 at 14:14
  • I did not see anything in Magento logs. Even before I edited the page, content in this page is not same as the 503 Page displayed when maintenance mode is enabled. Admin Panel 503 Page has the content "We're Offline... ...but only for just a bit. We're working to make the Magento Enterprise Demo a better place for you!" But the page displayed has the content "Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later." – Balram Jan 23 at 14:50
  • Looks like it is always fetching from pub/errors/default/503.phtml. Is there a setting to change to pick the page configured in Admin Panel. – Balram Jan 23 at 15:00
0

Magento's (admittedly lackluster) documentation suggests just intercepting the 503 at the server level and serving your own 503/maintenance page. https://devdocs.magento.com/guides/v2.2/comp-mgr/trouble/cman/maint-mode.html

I think common wisdom among Magento developers though, is to simply edit that file you already found: pub/errors/default/503.phml. When you enable maintenance mode, that is the file the Magento will load.

  • Thanks, I will try the steps in devdocs.magento.com/guides/v2.2/comp-mgr/trouble/cman/…. For customizing 404 page, I updated the Content=> Pages=> 404 not found page in the Admin and it worked fine. Similar way I wanted to update the existing 503 service unavailable page but it didn't work. Not sure why this page is listed in Admin if it is not configured to use. – Balram Jan 23 at 20:07
  • Unfortunately, Magento does a lot of things that don't make sense – andyjv Jan 24 at 14:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.