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

redis session handler: session_exists fails when used outside session

XMLWordPrintable

      To reproduce:

      1. Set {$CFG->session_handler_class = '\core\session\redis';} in {config.php}
      2. Install plugin from {[https://github.com/phmemmel/moodle-local_test.git]}

        , branch

        {MDL-83822-main}
      3. Run {php local/test/cli/check_session_exists.php}, see error "Call to a member function hmget() on null"
      4. Run {php admin/cli/scheduled_task.php --execute=\\local_test\\task session_exists_task}

        , see same

       

            phmemmel PhMemmel
            phmemmel PhMemmel
            Meirza Meirza
            Safat Shahin Safat Shahin
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 34 minutes
                34m

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