Hanson / vbot

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

大佬们,我这怎么已扫码就报错啊 #286

Open YunMengs opened 5 years ago

YunMengs commented 5 years ago

一扫码就报错,我就是按照官网配置的 http://create.hanc.cc/vbot/docs/run.html 还有这sessionID怎么拿啊。。 vbot.ERROR: Too few arguments to function Illuminate\Redis\RedisManager::__construct(), 2 passed in /root/vbot/vendor/hanson/vbot/src/Foundation/ServiceProviders/CacheServiceProvider.php on line 31 and exactly 3 expected [] [] PHP Fatal error: Uncaught TypeError: Argument 1 passed to Hanson\Vbot\Foundation\ExceptionHandler::report() must be an instance of Exception, instance of ArgumentCountError given, called in /root/vbot/vendor/hanson/vbot/src/Foundation/ExceptionHandler.php on line 133 and defined in /root/vbot/vendor/hanson/vbot/src/Foundation/ExceptionHandler.php:58 Stack trace:

0 /root/vbot/vendor/hanson/vbot/src/Foundation/ExceptionHandler.php(133): Hanson\Vbot\Foundation\ExceptionHandler->report(Object(ArgumentCountError))

1 [internal function]: Hanson\Vbot\Foundation\ExceptionHandler->handleException(Object(ArgumentCountError))

2 {main}

thrown in /root/vbot/vendor/hanson/vbot/src/Foundation/ExceptionHandler.php on line 58 PHP Fatal error: Uncaught Error: Class 'Symfony\Component\Debug\Exception\FatalErrorException' not found in /root/vbot/vendor/hanson/vbot/src/Foundation/ExceptionHandler.php:180 Stack trace:

0 /root/vbot/vendor/hanson/vbot/src/Foundation/ExceptionHandler.php(164): Hanson\Vbot\Foundation\ExceptionHandler->fatalExceptionFromError(Array, 0)

1 [internal function]: Hanson\Vbot\Foundation\ExceptionHandler->handleShutdown()

2 {main}

thrown in /root/vbot/vendor/hanson/vbot/src/Foundation/ExceptionHandler.php on line 180 1

Lichmaker commented 5 years ago

session id是自动生成的,不是必填项。

你是在laravel中运行的吗? Too few arguments to function Illuminate\Redis\RedisManager::__construct() 可以看出是版本问题导致的

Lichmaker commented 5 years ago

可以参考一下这个issues,一样的问题https://github.com/Hanson/vbot/issues/266

legeng commented 5 years ago

按照#266的改了代码也还是报错啊,laravel 5.8

ld-wang commented 5 years ago

PHP Fatal error: Uncaught Error: Class 'Symfony\Component\Debug\Exception\FatalErrorException'

缺少类文件, 需要安装symfony/debug