Cake version: 2.4.3
PHP: 5.6
Redis: 6.0
Docker: 3.1
I am running a cake project 2.4.3 and have an error
Cache engine search is not properly configured.
Error: An Internal Error Has Occurred.
APPConfigbootstrap.php line 159 → Cache::config(string, array)
'search'
array(
'port' => '*****',
'prefix' => '*****',
'engine' => 'Redis',
'server' => '172.30.1.5',
'duration' => (int) 1
)
How can I fix this?
Thank everyone!
2
Answers
I found out the problem is that my PHP 5.6 extensions are not Redis enabled
Install Redis extension PHP5.6
Edit file php.ini add
And restart server. enjoy!
That error message can be a little misleading, as its not necessarily related to the configuration, it was changed in later 2.x versions to say:
Check these things, and try to debug in the CakePHP source code, the redis connection is being established in the
RedisEngine::_connect()
method, located inlib/Cake/Cache/Engine/RedisEngine.php
.The possible exception might hold helpful information.
$this->_Redis->getLastError()
might too.