Nirjonadda
Well-known member
I am getting error with Guest page caching. Issue with this code. Please can you let me know that how can fix this problem?
Server error log:
Code:
// START Guest page caching //
//$config['pageCache']['enabled'] = true;
//$config['cache']['context']['page']['provider'] = 'Redis';
//$config['cache']['context']['page']['config'] = ['127.0.0.1'];
// END Guest page caching //
Server error log:
Code:
RedisException: php_network_getaddresses: getaddrinfo failed: Name or service not known src/XF/CacheFactory.php:226
Generated by: Unknown account Nov 13, 2019 at 9:43 PM
Stack trace
#0 src/XF/CacheFactory.php(226): Redis->connect('', 6379, G)
#1 src/XF/CacheFactory.php(79): XF\CacheFactory->createRedisCache(Array)
#2 src/XF/CacheFactory.php(34): XF\CacheFactory->instantiate('Redis', Array)
#3 src/XF/App.php(639): XF\CacheFactory->create('Redis', Array)
#4 src/XF/Container.php(228): XF\App->XF\{closure}('page', Array, Object(XF\Container))
#5 src/XF/App.php(2346): XF\Container->create('cache', 'page')
#6 src/XF/Pub/App.php(54): XF\App->cache('page', false)
#7 src/XF/Container.php(28): XF\Pub\App->XF\Pub\{closure}(Object(XF\Container))
#8 src/XF/Pub/App.php(674): XF\Container->offsetGet('pageCache')
#9 src/XF/Pub/App.php(102): XF\Pub\App->pageCache()
#10 src/XF/App.php(2180): XF\Pub\App->start(true)
#11 src/XF.php(391): XF\App->run()
#12 index.php(20): XF::runApp('XF\\Pub\\App')
#13 {main}
-------------
Previous ErrorException: [E_WARNING] Redis::connect(): php_network_getaddresses: getaddrinfo failed: Name or service not known - src/XF/CacheFactory.php:226
#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] Red...', '/home/nadda/pub...', 226, Array)
#1 src/XF/CacheFactory.php(226): Redis->connect('', 6379, G)
#2 src/XF/CacheFactory.php(79): XF\CacheFactory->createRedisCache(Array)
#3 src/XF/CacheFactory.php(34): XF\CacheFactory->instantiate('Redis', Array)
#4 src/XF/App.php(639): XF\CacheFactory->create('Redis', Array)
#5 src/XF/Container.php(228): XF\App->XF\{closure}('page', Array, Object(XF\Container))
#6 src/XF/App.php(2346): XF\Container->create('cache', 'page')
#7 src/XF/Pub/App.php(54): XF\App->cache('page', false)
#8 src/XF/Container.php(28): XF\Pub\App->XF\Pub\{closure}(Object(XF\Container))
#9 src/XF/Pub/App.php(674): XF\Container->offsetGet('pageCache')
#10 src/XF/Pub/App.php(102): XF\Pub\App->pageCache()
#11 src/XF/App.php(2180): XF\Pub\App->start(true)
#12 src/XF.php(391): XF\App->run()
#13 index.php(20): XF::runApp('XF\\Pub\\App')
#14 {main}
Request state
array(4) {
["url"] => string(34) "/index.php?forums/65/create-thread"
["referrer"] => bool(false)
["_GET"] => array(1) {
["forums/65/create-thread"] => string(0) ""
}
["_POST"] => array(0) {
}
}