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

Redis cachestore throws exception when calling set_many with empty array

XMLWordPrintable

      The task mod_bigbluebuttonbn\task\check_pending_recordings is reported as failed with backtrace:

      Redis::zAdd() expects at least 3 arguments, 2 given Backtrace:

      * line 425 of /cache/stores/redis/lib.php: }}{{call to Redis->zAdd()

      * line 1011 of /cache/classes/loaders.php: call to cachestore_redis->set_many()

      * line 1845 of /cache/classes/loaders.php: call to cache->set_many()

      * line 192 of /mod/bigbluebuttonbn/classes/local/proxy/recording_proxy.php: call to cache_application->set_many()

      * line 810 of /mod/bigbluebuttonbn/classes/recording.php: call to mod_bigbluebuttonbn\local\proxy\recording_proxy::fetch_recordings(}

      * line 34 of /mod/bigbluebuttonbn/classes/task/check_pending_recordings.php: call to mod_bigbluebuttonbn\recording::sync_pending_recordings_from_server() 

      * line 263 of /lib/cronlib.php: call to mod_bigbluebuttonbn\task\check_pending_recordings->execute()

      * line 167 of /admin/cli/scheduled_task.php: call to cron_run_inner_scheduled_task()

      Software versions:

      php 8.1.21
      pecl list: redis 6.0.2

      I think that php 8.1 evaluates the function at /cache/stores/redis/lib.php line 425
       
      $this->redis->zAdd($this->hash . self::TTL_SUFFIX, [], ...$ttlparams);

       

            pholden Paul Holden
            jbrunet Juan Brunet
            Victor Déniz Falcón Victor Déniz Falcón
            Andrew Lyons Andrew Lyons
            CiBoT CiBoT
            Votes:
            5 Vote for this issue
            Watchers:
            26 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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