Hanson / vbot

微信,企微,机器人,企业微信,企微机器人,微信机器人,小红书,美团,美团爬虫,聚合聊天,RPA,协议,hook,逆向,群发,自动回复,chatgpt,API对接,稳定防封全语言通用,企业定制/SCRM/SAAS专用
MIT License
4.06k stars 711 forks source link

缓存使用redis后登录时报错 #266

Open TheSaltwaterRoom opened 6 years ago

TheSaltwaterRoom commented 6 years ago

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 [] []

st7yws commented 6 years ago

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导致的

Hanson commented 6 years ago

@st7yws 你的RedisManager 是什么版本?

st7yws commented 6 years ago

@Hanson _20181009225549

st7yws commented 6 years ago

111111

多了一个Application参数项

irooit commented 6 years ago

遇到了同样的问题

Hanson commented 6 years ago

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

yljphp commented 6 years ago

遇到了同样的问题

aunhappy commented 5 years ago

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

aunhappy commented 5 years ago

我照着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.
zhangfei28 commented 4 years ago

嗯 修改以后

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