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

Tiny MCE pollutes error log with debugging messages (Moodle 4.2)

XMLWordPrintable

    • MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
    • MOODLE_401_STABLE, MOODLE_402_STABLE
    • MDL-78005-401
    • MDL-78005-master
    • Hide

      Setup

      1. Ensure you are using a compatible version of PHP for Moodle 4.1, 4.2 and Stable (PHP 8.1 recommended)
      2. Add/edit this line to your config.php 

        $CFG->debug = (E_ALL | E_STRICT);

      3. Monitor your server error log.

      MacOS users can use:

      tail -f /opt/homebrew/var/log/httpd/error_log

      Linux users can use:

      tail -f /var/log/apache2/error_log

       

      Testing

      1. Click on your user icon (top-right) and choose Profile
      2. Click on Edit profile
      3. As the page loads, pay attention to your server error log.
      4. CONFIRM that no errors or warnings are being logged for: 

      Undefined property: editor_tiny\\loader::$component 

      Perform the test for Moodle 4.1, 4.2 and Stable

      Show
      Setup Ensure you are using a compatible version of PHP for Moodle 4.1, 4.2 and Stable (PHP 8.1 recommended) Add/edit this line to your config.php  $CFG->debug = (E_ALL | E_STRICT); Monitor your server error log. MacOS users can use: tail -f /opt/homebrew/var/log/httpd/error_log Linux users can use: tail -f /var/log/apache2/error_log   Testing Click on your user icon (top-right) and choose Profile Click on Edit profile As the page loads, pay attention to your server error log. CONFIRM that no errors or warnings are being logged for:  Undefined property: editor_tiny\\loader::$component  Perform the test for Moodle 4.1, 4.2 and Stable
    • 1
    • Team Hedgehog 2023 Sprint 2.0, Team Hedgehog 2023 Sprint 2.1
    • Small

      I have this endless trace of debugging messages in error log. I can see that this will be addressed in MD-77340 but it is not an improvement, it is an actual bug, maybe we can do it faster?

      [Sun Apr 23 18:52:31.789543 2023] [php:notice] [pid 3373687] [client ::1:56322] PHP Warning:  Undefined property: editor_tiny\\loader::$component in /home/www/moodle/lib/editor/tiny/loader.php on line 139, referer: http://.../course/edit.php?category=1&returnto=catmanage
      [Sun Apr 23 18:52:31.789569 2023] [php:notice] [pid 3373687] [client ::1:56322] PHP Stack trace:, referer: http://.../course/edit.php?category=1&returnto=catmanage
      [Sun Apr 23 18:52:31.789577 2023] [php:notice] [pid 3373687] [client ::1:56322] PHP   1. {main}() /home/www/moodle/lib/editor/tiny/loader.php:0, referer: http://.../course/edit.php?category=1&returnto=catmanage
      [Sun Apr 23 18:52:31.789583 2023] [php:notice] [pid 3373687] [client ::1:56322] PHP   2. editor_tiny\\loader->__construct() /home/www/moodle/lib/editor/tiny/loader.php:331, referer: http://.../course/edit.php?category=1&returnto=catmanage
      [Sun Apr 23 18:52:31.789588 2023] [php:notice] [pid 3373687] [client ::1:56322] PHP   3. editor_tiny\\loader->serve_file() /home/www/moodle/lib/editor/tiny/loader.php:57, referer: http://.../course/edit.php?category=1&returnto=catmanage
      [Sun Apr 23 18:52:31.789592 2023] [php:notice] [pid 3373687] [client ::1:56322] PHP   4. editor_tiny\\loader->store_filepath_file() /home/www/moodle/lib/editor/tiny/loader.php:121, referer: http://.../course/edit.php?category=1&returnto=catmanage
      [Sun Apr 23 18:52:31.789597 2023] [php:notice] [pid 3373687] [client ::1:56322] PHP   5. editor_tiny\\loader->load_content_from_dirroot() /home/www/moodle/lib/editor/tiny/loader.php:226, referer: http://.../course/edit.php?category=1&returnto=catmanage
      [Sun Apr 23 18:52:31.789614 2023] [php:notice] [pid 3373687] [client ::1:56322] PHP   6. editor_tiny\\loader->get_filepath_from_dirroot() /home/www/moodle/lib/editor/tiny/loader.php:159, referer: http://.../course/edit.php?category=1&returnto=catmanage
      

        1. Screen Recording 2023-05-04 at 10.52.32 AM.mov
          22.12 MB
          Stevani Andolo
        2. PHP 8.2.png
          259 kB
          Stevani Andolo
        3. PHP 8.1.mov
          23.59 MB
          Stevani Andolo
        4. PHP 8.2.mov
          33.33 MB
          Stevani Andolo
        5. errors_in_401.png
          488 kB
          David Woloszyn
        6. (I) Passed -- (401)MDL-78005.png
          183 kB
          Kim Jared Lucas
        7. (I) Passed -- (402)MDL-78005.png
          227 kB
          Kim Jared Lucas
        8. (I) Passed -- (Master)MDL-78005.png
          222 kB
          Kim Jared Lucas

            david.woloszyn@moodle.com David Woloszyn
            marina Marina Glancy
            Safat Shahin Safat Shahin
            Huong Nguyen Huong Nguyen
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 34 minutes
                4h 34m

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