vbot icon indicating copy to clipboard operation
vbot copied to clipboard

缓存使用redis后登录时报错

Open TheSaltwaterRoom opened this issue 7 years ago • 10 comments

vbot.ERROR: Too few arguments to function Illuminate\Redis\RedisManager::__construct(), 2 passed in /Applications/MAMP/htdocs/wwt/my-vbot/vendor/hanson/vbot/src/Foundation/ServiceProviders/CacheServiceProvider.php on line 31 and exactly 3 expected [] []

TheSaltwaterRoom avatar Sep 18 '18 02:09 TheSaltwaterRoom

vbot/src/Foundation/ServiceProviders/CacheServiceProvider.php 里面的 return new RedisManager(array_get($config, 'client', 'predis'), $config); 这行改成 return new RedisManager(null, array_get($config, 'client', 'predis'), $config);

更新了最新的RedisManager导致的

st7yws avatar Oct 09 '18 14:10 st7yws

@st7yws 你的RedisManager 是什么版本?

Hanson avatar Oct 09 '18 14:10 Hanson

@Hanson _20181009225549

st7yws avatar Oct 09 '18 14:10 st7yws

111111

多了一个Application参数项

st7yws avatar Oct 09 '18 15:10 st7yws

遇到了同样的问题

irooit avatar Oct 10 '18 03:10 irooit

尝试指定 redis 5.4 的版本看看能否解决 @irooit @st7yws

Hanson avatar Oct 10 '18 03:10 Hanson

遇到了同样的问题

yljphp avatar Oct 12 '18 07:10 yljphp

遇到了同样的问题,所以怎么解决呢?

aunhappy avatar May 18 '19 12:05 aunhappy

我照着2楼加了null,还是报错,报错变成了

vbot.ERROR: Argument 3 passed to Illuminate\Redis\RedisManager::__construct() must be of the type array, null given

redis装了

illuminate/redis          v5.8.17 The Illuminate Redis package.

aunhappy avatar May 18 '19 13:05 aunhappy

嗯 修改以后

vbot.ERROR: Argument 3 passed to Illuminate\Redis\RedisManager::__construct() must be of the type array, null given

zhangfei28 avatar Mar 02 '20 04:03 zhangfei28