안녕하세요 급하게 세팅 중에 문제가 있어서 질문드립니다.
1. redis는 서버와 로컬이 연동이 되어 있습니다. port를 연결하고 맥에서 redis-cli 을 통해 로컬에서 서버의 래디스 에 접속이 되는 상황입니다.
2. 이 후 로그인 후에 아래와 같은 에러 메세지가 노출됩니다.
Type: Error
Message: Call to a member function get() on null
Filename: ..../project/system/libraries/Cache/drivers/Cache_redis.php
Line Number: 156
Backtrace:
File: ..../project/application/controllers/dashboard/Home.php
Line: 20
Function: get
File: .../project/index.php
Line: 322
Function: require_once
** Cache_redis.php
public function get($key)
{
$value = $this->_redis->get($key); <--156 line
if ($value !== FALSE && isset($this->_serialized[$key]))
{
return unserialize($value);
}
return $value;
}
** Home.php
$this->load->driver('cache');
$user_count = $this->cache->redis->get('UCOUNT'); <--- 20 line
어떤 부분이 문제인지 좀 조언 부탁드립니다.
redis는 첨이라 많이 어렵네요 ㅠ
아.. 답변 감사합니다.. 어제 해결은 했고 말씀 해주신것 처럼 redis 문제였습니다.
Redis 설정이 잘못된것 같습니다.
올려준신 정보만으론 확인하기 힘듭니다.