Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
LaCollision Posted January 23, 2019 Posted January 23, 2019 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!
Daniel F Posted January 23, 2019 Posted January 23, 2019 I guess your cli uses another php.ini config file which has no Redis set up
LaCollision Posted January 23, 2019 Author Posted January 23, 2019 44 minutes ago, Daniel F said: I guess your cli uses another php.ini config file which has no Redis set up One sentence, and you nailed it! Thank you!! ❤️
Daniel F Posted January 23, 2019 Posted January 23, 2019 Just now, LaCollision said: One sentence, and you nailed it! Thank you!! ❤️
Recommended Posts
Archived
This topic is now archived and is closed to further replies.