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

Enabling maintenance mode via CLI doesn't filter site fullname

    XMLWordPrintable

Details

    • MOODLE_310_STABLE
    • MOODLE_310_STABLE, MOODLE_311_STABLE
    • MDL-71626-311
    • 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

    Description

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

      Attachments

        Activity

          People

            pholden Paul Holden
            pholden Paul Holden
            Luca Bösch Luca Bösch
            Andrew Lyons Andrew Lyons
            Gladys Basiana Gladys Basiana
            Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              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