Jump to content

Redis firing an exception when using cron tasks


LaCollision

Recommended Posts

Posted

Hi,

On my 4.3.6 installation, the tasks are performed with a cron.

I just enabled Redis, and the website runs great.

However, there is an error for cron tasks.

Here is the log:

BadMethodCallException:  (0)
#0 /Users/nicolas/Sites/workspace/system/Redis/Redis.php(295): IPS\_Redis->connection('write')
#1 /Users/nicolas/Sites/workspace/system/Data/Store/Redis.php(53): IPS\_Redis->setEx('redisKey_store', 604800, '4d89efe3ce0360a...')
#2 /Users/nicolas/Sites/workspace/system/Data/Store/Redis.php(80): IPS\Data\Store\_Redis->_getRedisKey()
#3 /Users/nicolas/Sites/workspace/system/Data/Store/Redis.php(137): IPS\Data\Store\_Redis->get('settings')
#4 /Users/nicolas/Sites/workspace/system/Data/AbstractData.php(126): IPS\Data\Store\_Redis->exists('settings')
#5 /Users/nicolas/Sites/workspace/system/Data/Store.php(240): IPS\Data\_AbstractData->__isset('settings')
#6 /Users/nicolas/Sites/workspace/system/Settings/Settings.php(166): IPS\Data\_Store->__isset('settings')
#7 /Users/nicolas/Sites/workspace/system/Settings/Settings.php(122): IPS\_Settings->loadFromDb()
#8 /Users/nicolas/Sites/workspace/applications/core/interface/task/task.php(30): IPS\_Settings->__get('task_use_cron')
#9 {main}

 

On Redis.php at line 295:

$return = $this->connection('write')->setEx( $this->key( $key ), $ttl, $value );

 

… and the exception comes from:

public function connection( $identifier=NULL )
{
	if ( ! class_exists('Redis') )
	{
		throw new \BadMethodCallException;
	}

	...
}

 

class_exists() doesn't exist in cron mode?

 

Thank you for your help!

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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