Jump to content

View Updates task failing with redis


Recommended Posts

Hi, we are seeing issues with the viewupdates task in the system logs:

ArgumentCountError: Wrong parameter count for Redis::zRem() (0)
#0 /var/www/html/system/Redis/Redis.php(250): Redis->zRem('topic_views')
#1 /var/www/html/applications/core/tasks/viewupdates.php(86): IPS\_Redis->__call('zRem', Array)
#2 /var/www/html/system/Task/Task.php(375): IPS\core\tasks\_viewupdates->IPS\core\tasks\{closure}()
#3 /var/www/html/applications/core/tasks/viewupdates.php(38): IPS\_Task->runUntilTimeout(Object(Closure))
#4 /var/www/html/system/Task/Task.php(274): IPS\core\tasks\_viewupdates->execute()
#5 /var/www/html/system/Task/Task.php(237): IPS\_Task->run()
#6 /var/www/html/applications/core/interface/task/task.php(72): IPS\_Task->runAndLog()
#7 {main}

It seems adding an !empty check on the $redis array in viewupdates.php fixes the error:

 

if( \is_array( $redis ) && !empty($redis) )
{
    foreach ( $redis as $data => $count )

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...