php webman stop Fatal error

chen

截图

660 3 1
3个回答

walkor

这个是webman/console报错了,更新webman/console到 1.0.17或者后续更高版本。
composer require webman/console ^v1.0.17 && php webman plugin:install webman/console

  • chen 2022-03-14

    效率太高了,👍🏻

Tinywan

1.2 升级到 1.3 停止和debug模式都会报错

停止

$ php start.php stop
Workerman[start.php] stop 
Workerman[start.php] is stopping ...
Workerman[start.php] stop fail

Debug 模式

截图

框架版本

webman/console                     v1.0.17  Webman console
webmozart/assert                   1.10.0   Assertions to validate method input/output with nice error messages.
workerman/crontab                  v1.0.2   A crontab written in PHP based on workerman
workerman/gatewayclient            v3.0.14 
workerman/redis                    v1.0.7  
workerman/webman-framework         v1.3.1   High performance HTTP Service Framework.
workerman/workerman                v4.0.30  An asynchronous event driven PHP framework for easily building fast, scalable network applications.
  • walkor 2022-03-15

    这块测试没问题,没有环境,这个要你你自己定位下。

yzh52521

php webman start
直接报错了

PHP Fatal error:  Uncaught TypeError: Illegal offset type in /Users/yuanzhihai/Sites/local/webman/config/plugin/webman/push/process.php:16
Stack trace:
#0 /Users/yuanzhihai/Sites/local/webman/vendor/workerman/webman-framework/src/Config.php(64): include()
#1 /Users/yuanzhihai/Sites/local/webman/vendor/webman/console/src/Application.php(35): Webman\Config::load('/Users/yuanzhih...', Array)
#2 /Users/yuanzhihai/Sites/local/webman/vendor/webman/console/src/Commands/StartCommand.php(31): Webman\Console\Application::run()
#3 /Users/yuanzhihai/Sites/local/webman/vendor/symfony/console/Command/Command.php(298): Webman\Console\Commands\StartCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /Users/yuanzhihai/Sites/local/webman/vendor/symfony/console/Application.php(1015): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 /Users/yuanzhihai/Sites/local/webman/vendor/symfony/console/Application.php(299): Symfony\Component\Console\Application->doRunCommand(Object(Webman\Console\Commands\StartCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /Users/yuanzhihai/Sites/local/webman/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /Users/yuanzhihai/Sites/local/webman/webman(14): Symfony\Component\Console\Application->run()
#8 {main}

php start.php start 就没事

  • walkor 2022-03-15

    composer require webman/console ^v1.0.17 && php webman plugin:install webman/console
    有个 php webman plugin:install webman/console 记得要执行

  • yzh52521 2022-03-15

    刚升级了 1.0.18 好了

年代过于久远,无法发表回答
🔝