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

Maintenance mode does not make site unavailable

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.3.9, 2.4.6, 2.5.2
    • BACKEND
    • Installation
    • MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • 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

    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

              Unassigned Unassigned
              marina Marina Glancy
              Matteo Scaramuccia, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              5 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated: