[0] BadFunctionCallException in Redis.php line 44

不支持: redis

  1. /**
  2. * 构造函数
  3. * @param array $options 缓存参数
  4. * @access public
  5. */
  6. public function __construct($options = [])
  7. {
  8. if (!extension_loaded('redis')) {
  9. throw new \BadFunctionCallException('not support: redis');
  10. }
  11. if (!empty($options)) {
  12. $this->options = array_merge($this->options, $options);
  13. }
  14. $this->handler = new \Redis;
  15. if ($this->options['persistent']) {
  16. $this->handler->pconnect($this->options['host'], $this->options['port'], $this->options['timeout'], 'persistent_id_' . $this->options['select']);
  17. } else {
  18. $this->handler->connect($this->options['host'], $this->options['port'], $this->options['timeout']);

Call Stack

  1. in Redis.php line 44
  2. at Redis->__construct(['type' => 'redis', 'path' => '/www/wwwroot/www.fin...', 'host' => '127.0.0.1', ...]) in Cache.php line 65
  3. at Cache::connect(['type' => 'redis', 'path' => '/www/wwwroot/www.fin...', 'host' => '127.0.0.1', ...]) in Cache.php line 88
  4. at Cache::init() in Cache.php line 133
  5. at Cache::get('think:www_fin110_com...') in Query.php line 2430
  6. at Query->update(['good_cmt_num' => 0]) in Broker.php line 290
  7. at Broker->counting_func(46) in Broker.php line 59
  8. at Broker->index()
  9. at ReflectionMethod->invokeArgs(object(Broker), []) in App.php line 343
  10. at App::invokeMethod([object(Broker), 'index'], []) in App.php line 611
  11. at App::module(['index', 'broker', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  12. at App::exec(['type' => 'module', 'module' => ['index', 'broker', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  13. at App::run() in start.php line 19
  14. at require('/www/wwwroot/www.fin...') in index.php line 23

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
fin110.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/broker/241868332.html
REDIRECT_STATUS
200
SERVER_NAME
www.fin110.com
SERVER_PORT
80
SERVER_ADDR
10.0.14.2
REMOTE_PORT
35122
REMOTE_ADDR
44.192.75.131
SERVER_SOFTWARE
nginx/1.18.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/www.fin110.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/broker/241868332.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/broker/241868332.html
SCRIPT_FILENAME
/www/wwwroot/www.fin110.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711659279.5255
REQUEST_TIME
1711659279
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.fin110.com/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711659279.5266
THINK_START_MEM
408168
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.fin110.com/thinkphp/
LIB_PATH
/www/wwwroot/www.fin110.com/thinkphp/library/
CORE_PATH
/www/wwwroot/www.fin110.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.fin110.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.fin110.com/
EXTEND_PATH
/www/wwwroot/www.fin110.com/extend/
VENDOR_PATH
/www/wwwroot/www.fin110.com/vendor/
RUNTIME_PATH
/www/wwwroot/www.fin110.com/runtime/
LOG_PATH
/www/wwwroot/www.fin110.com/runtime/log/
CACHE_PATH
/www/wwwroot/www.fin110.com/runtime/cache/
TEMP_PATH
/www/wwwroot/www.fin110.com/runtime/temp/
CONF_PATH
/www/wwwroot/www.fin110.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false