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

Call to undefined function Html2Text\mb_internal_encoding()

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Do the following on a PHP install with the mbstring extension:

      1. Run vendor/bin/phpunit lib/tests/html2text_test.php
      2. Verify there are no fails

      Do the following on a PHP install without the mbstring extension:

      1. Remove symfony's mbstring polyfil:
        1. Delete composer.lock from the moodle root directory
        2. Remove the behat-extension stuff from composer.json
        3. Install PHP unit using mdk or the init scripts
      2. Run vendor/bin/phpunit lib/tests/html2text_test.php
      3. Verify there are still no errors
      Show
      Do the following on a PHP install with the mbstring extension: Run vendor/bin/phpunit lib/tests/html2text_test.php Verify there are no fails Do the following on a PHP install without the mbstring extension: Remove symfony's mbstring polyfil: Delete composer.lock from the moodle root directory Remove the behat-extension stuff from composer.json Install PHP unit using mdk or the init scripts Run vendor/bin/phpunit lib/tests/html2text_test.php Verify there are still no errors
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-53896-master

      Description

      The error occurred testing Moodle Mobile Quiz using the latest Moodle master.

      The Webservice call was:
      http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json

      quizid=9&forcenew=0&moodlewssettingfilter=true&wsfunction=mod_quiz_start_attempt&wstoken=TOKEN

      Environment check only recommends to install mbstring but the error make me think that it has to be a required php extension.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  23/May/16