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

Missing mbstring extension unable to be reported during web installation

XMLWordPrintable

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-74493-master
    • Hide

      Install the mbstring extension and you'll be able to proceed.

      Show
      Install the mbstring extension and you'll be able to proceed.
    • Hide

      This test should be conducted on a linux install where mbstring is not precompiled into php's default install.

      1. Clone a fresh Moodle but don't install
      2. Confirm mbstring isn't enabled (php -m)
      3. Start the web install
      4. Confirm you see a message at some point that reads:

         Moodle requires the mbstring PHP extension. Please install or enable the mbstring extension.

      5. Confirm that you don't at any point see an error like the one below:
      6. Install the extension (varies per system but for debian/ondrej it's "sudo apt-get install php7.x-mbstring")
      7. Restart your web server
      8. Reload the web install page and confirm you can continue with the install.
      Show
      This test should be conducted on a linux install where mbstring is not precompiled into php's default install. Clone a fresh Moodle but don't install Confirm mbstring isn't enabled (php -m) Start the web install Confirm you see a message at some point that reads: Moodle requires the mbstring PHP extension. Please install or enable the mbstring extension. Confirm that you don't at any point see an error like the one below: Install the extension (varies per system but for debian/ondrej it's "sudo apt-get install php7.x-mbstring") Restart your web server Reload the web install page and confirm you can continue with the install.
    • 1

      1. Create a new site which isn't yet installed.
      2. Make sure that mbstring extension is NOT installed (e.g. php7.4-mbstring not installed - check with php -m).
      3. Run the web installer.
      4. Before we even get to the "Server checks" page, we'll see an error because we're calling mb_list_encodings() before we've had a chance to check the mbstring extension is present:

      Probably a regression from MDL-53544, where that function was used. This is NOT the case on 3.11, where we report this as required on the server checks page. E.g:

        1. mbstring_311.png
          68 kB
          Jake Dallimore
        2. mbstring_4.0rc2.png
          128 kB
          Sara Arjona (@sarjona)
        3. mbstring_error.png
          9 kB
          Jake Dallimore
        4. step_4.png
          57 kB
          Huong Nguyen
        5. step_9_install_sucess.png
          218 kB
          Huong Nguyen
        6. step_9.png
          931 kB
          Huong Nguyen

            jaked Jake Dallimore
            jaked Jake Dallimore
            Adrian Greeve Adrian Greeve
            Jun Pataleta Jun Pataleta
            Huong Nguyen Huong Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 11 minutes
                3h 11m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.