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

The "Tidy" text filter doesn't advertise the fact it requires an extension

XMLWordPrintable

    • MOODLE_401_STABLE
    • MOODLE_403_STABLE, MOODLE_404_STABLE
    • MDL-82444-403
    • MDL-82444-404
    • Hide
      1. Ensure the tidy extension is not installed
      2. Log in as admin
      3. Navigate to Server > Environment in site administration
      4. Confirm you see the following under Server checks
        php_extension tidy should be installed and enabled for best results In order to use this filter, the 'tidy' PHP extension must be installed Text filter / HTML tidy Check
      5. Install the PHP extension, e.g. on Ubuntu (where X.X refers to your current version):

        $ sudo apt-get install phpX.X-tidy
        $ sudo service apache2 restart
        

      6. Navigate to Server > Environment in site administration
      7. Confirm you see the following under Server checks
        php_extension tidy should be installed and enabled for best results Text filter / HTML tidy OK
      Show
      Ensure the tidy extension is not installed Log in as admin Navigate to Server > Environment in site administration Confirm you see the following under Server checks php_extension tidy should be installed and enabled for best results In order to use this filter, the 'tidy' PHP extension must be installed Text filter / HTML tidy Check Install the PHP extension, e.g. on Ubuntu (where X.X refers to your current version): $ sudo apt-get install phpX.X-tidy $ sudo service apache2 restart Navigate to Server > Environment in site administration Confirm you see the following under Server checks php_extension tidy should be installed and enabled for best results Text filter / HTML tidy OK

      The HTML Tidy filter silently does absolutely nothing if the required extension method is missing:

      https://github.com/moodle/moodle/blob/7d7a871eddf81cdc1e6f5ea9dda67cf9058dd032/filter/tidy/filter.php#L61-L66

      The required extension is 'tidy' - https://www.php.net/manual/en/book.tidy.php

      Found while reviewing MDL-82427

            pholden Paul Holden
            pholden Paul Holden
            Andrew Lyons Andrew Lyons
            Ilya Tregubov Ilya Tregubov
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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