Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-42058

Maintenance mode does not make site unavailable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.3.9, 2.4.6, 2.5.2
    • Fix Version/s: BACKEND
    • Component/s: Installation
    • Labels:
    • Workaround:
      Hide

      Set $CFG->forcelogin to true during maintenance.

      Another option is permanently set both $CFG->forcelogin and $CFG->autologinguests

      Show
      Set $CFG->forcelogin to true during maintenance. Another option is permanently set both $CFG->forcelogin and $CFG->autologinguests
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE

      Description

      Discovered while testing MDL-41398:

      When site is in maintenance mode all users are still able to log in. Guests or logged in users are able to see any pages except /index.php that don't call "require_login()", for example /course/index.php, calendar, frontpage resources (together with files), etc.

      Other pages display the maintenance message together with debugging message about missing $PAGE->set_url().

      Reproduced on all stable versions

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              marina Marina Glancy
              Participants:
              Component watchers:
              Matteo Scaramuccia, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              5 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated: