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

recentsessionlocks debugging clashes with readonly sessions debugging

XMLWordPrintable

    • MOODLE_311_STABLE
    • MOODLE_311_STABLE
    • MDL-73245-master
    • Hide
      1. Enable readonly sessions debugging and session lock debugging in config.php:

        $CFG->enable_read_only_sessions_debug = true;
        $CFG->debugsessionlock = 100;
        

      2. Tail the error logs in a new terminal window:

        tail -f /var/log/apache2/error.log 

      3. Visit the dashboard and some other random pages to fill the recent session lock list
      4. Copy attached php file recentsessionlocks.php to your site root and visit it in your browser
      5. Confirm there are not any errors in the logs like this:

       Script [your site root]/recentsessionlocks.php defined READ_ONLY_SESSION but the following SESSION attributes were changed: $SESSION->cachestore_session $SESSION->recentsessionlocks $SESSION->foo
      

      NB: The error about SESSION attributes being modified will still be present, but what needs to be verified is that $SESSION->recentsessionlocks is not in the list of modified attributes.

      Show
      Enable readonly sessions debugging and session lock debugging in config.php: $CFG->enable_read_only_sessions_debug = true; $CFG->debugsessionlock = 100; Tail the error logs in a new terminal window: tail -f /var/log/apache2/error.log Visit the dashboard and some other random pages to fill the recent session lock list Copy attached php file recentsessionlocks.php to your site root and visit it in your browser Confirm there are not any errors in the logs like this: Script [your site root]/recentsessionlocks.php defined READ_ONLY_SESSION but the following SESSION attributes were changed: $SESSION->cachestore_session $SESSION->recentsessionlocks $SESSION->foo NB: The error about SESSION attributes being modified will still be present, but what needs to be verified is that $SESSION->recentsessionlocks is not in the list of modified attributes.

      This issue is very similar to MDL-68983. We just need to also check if $CFG->read_only_sessions_debugging is enabled as well.

        1. MDL-73245_master.webm
          2.64 MB
        2. MDL-73245_v311.webm
          2.31 MB
        3. recentsessionlocks.php
          0.3 kB

            cameron1729 cameron1729
            cameron1729 cameron1729
            Brendan Heywood Brendan Heywood
            Shamim Rezaie Shamim Rezaie
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 20 minutes
                20m

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