Skip to content

Using Maintenance Mode

Switching the lock on and off

  1. In the admin area, open the Extensions list and edit MaintenanceLock.
  2. Set Enable Maintenance Lock to Yes and save. The lock applies from the next request.
  3. To reopen the store, set it back to No and save.

There is no timer and no schedule. The lock stays on until you switch it off.

What is locked

The extension checks every request that runs through Paymenter's web middleware group. While the lock is on, such a request is redirected to /maintenance unless one of the exceptions below applies. In Paymenter this covers the client-facing pages, among them:

  • the home page, product and category pages, cart and checkout
  • /login, /register and the password reset pages
  • /dashboard, services, invoices, tickets and account pages
  • /paymenter/update, the address Paymenter's Livewire components send their updates to

Being logged in to a customer or admin account does not unlock anything. Only the password does.

What stays open

Path When
/admin and everything below it Always
/maintenance Always
/ (home page), /dashboard and everything below /dashboard/ Only if Lock Dashboard (/dashboard) is No
Every locked path For a browser session that has entered the password

Routes that are not in the web middleware group are not checked by the extension. This includes Paymenter's API under /api and the webhook routes of the bundled Stripe, PayPal and Mollie gateways, so payment notifications still arrive while the lock is on.

What a visitor sees

A visitor who opens a locked page is redirected to /maintenance. That page is a standalone dark page that does not use your Paymenter theme. It shows:

  • the heading "We're doing some work"
  • your Maintenance Message, or "The site is temporarily locked. Enter the password to continue." if you left it empty
  • an Access password field and a Continue button
  • your Custom HTML (optional) block below the form, if set

After the correct password, the visitor is redirected to the home page, or to the page Paymenter remembered as the intended destination if there is one. After a wrong password, the page reloads with the message "Invalid password."

The redirect is a normal redirect and the password page answers with status 200. The extension does not send a 503 status.

How long an unlock lasts

A correct password sets a flag in the visitor's Paymenter session. The unlock therefore:

  • applies to that browser only, not to the user account or the IP address
  • lasts as long as the session. Paymenter's session lifetime is 120 minutes without activity by default (SESSION_LIFETIME in .env), and each request renews it
  • survives logging in and logging out in the client area
  • ends when the session is discarded, for example when the session cookie is deleted or when Paymenter's session validation setting ends the session after an IP address or browser change

There is no button to lock a session again and no way to revoke unlocks that were already given, other than waiting for those sessions to expire. Changing the password affects new visitors only.

Working in the admin area while the lock is on

Pages under /admin open without the password, but two things the admin area needs are outside /admin and are locked:

  • Login. Paymenter's login page is /login. If you are not logged in, you are sent to /maintenance first.
  • Saving and other actions. The admin area sends its form submissions, table actions and searches to /paymenter/update.

So enter the maintenance password once in the browser you use for admin work: open /maintenance, type the password and click Continue. After that the admin area works as usual for that session.

Warning

Keep the password at hand before you switch the lock on. Without an unlocked session you can open the extension's settings page under /admin, but the save that would switch the lock off is sent to /paymenter/update and is redirected. The password page at /maintenance always stays reachable.

Automatic behaviour

None. The extension has no scheduled task, no events and no e-mails, and it does not notify customers when the lock is switched on or off.