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

Enabling maintenance mode via CLI doesn't filter site fullname

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Configure multilang site full name

      1. Log in as admin
      2. Navigate to Site administration > Front page > Front page settings in Site administration
      3. Set Full site name to the following:

        <span class="multilang" lang="en">Moodle (EN)</span><span class="multilang" lang="de">Moodle (DE)</span>
        

      4. Navigate to Plugins > Filters > Manage filters in Site administration
      5. Set Multi-Language Content to On & Apply to to Content and headings
      6. Perform sanity check by visiting Site home and confirming the site heading shows "Moodle (EN)" and not "Moodle (DE)"
      7. Log out

      Enable maintenance mode via CLI

      1. Run the following command:

        $ php admin/cli/maintenance.php --enable
        

      2. Confirm you receive the message "Your site is currently in CLI maintenance mode, no web access is allowed."
      3. Access your site in a browser
      4. Confirm that the page title and heading inform of the following (and multilang tags have been filtered out):

        Moodle (EN) under maintenance
        

      Show
      Configure multilang site full name Log in as admin Navigate to Site administration > Front page > Front page settings in Site administration Set Full site name to the following: <span class="multilang" lang="en">Moodle (EN)</span><span class="multilang" lang="de">Moodle (DE)</span> Navigate to Plugins > Filters > Manage filters in Site administration Set Multi-Language Content to On & Apply to to Content and headings Perform sanity check by visiting Site home and confirming the site heading shows "Moodle (EN)" and not "Moodle (DE)" Log out Enable maintenance mode via CLI Run the following command: $ php admin/cli/maintenance.php --enable Confirm you receive the message " Your site is currently in CLI maintenance mode, no web access is allowed. " Access your site in a browser Confirm that the page title and heading inform of the following (and multilang tags have been filtered out): Moodle (EN) under maintenance
    • Affected Branches:
      MOODLE_310_STABLE
    • Fixed Branches:
      MOODLE_310_STABLE, MOODLE_311_STABLE
    • Pull 3.10 Branch:
      MDL-71626-310
    • Pull 3.11 Branch:
      MDL-71626-311
    • Pull Master Branch:

      Description

      Using the admin/cli/maintenance.php script to enable maintenance mode can create garbled output when user views the page

        Attachments

          Activity

            People

            Assignee:
            pholden Paul Holden
            Reporter:
            pholden Paul Holden
            Peer reviewer:
            Luca Bösch Luca Bösch
            Integrator:
            Andrew Lyons Andrew Lyons
            Tester:
            Gladys Basiana Gladys Basiana
            Participants:
            Component watchers:
            Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              12/Jul/21

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 20 minutes
                1h 20m