webman1.2.1升级1.4.3报错

kltd

问题描述

这里详细描述问题
执行了升级1.4升级composer命令
composer require workerman/webman-framework ^1.4.7 && composer require webman/console ^1.2.12 && php webman install

报错信息

这里粘贴报错

Error: Call to a member function make() on null in /www/meet_view/vendor/workerman/webman-framework/src/support/Container.php:46
Stack trace:

0 /www/meet_view/support/helpers.php(411): support\Container::__callStatic('make', Array)

1 /www/meet_view/vendor/workerman/workerman/Worker.php(2424): {closure}(Object(Workerman\Worker))

2 /www/meet_view/vendor/workerman/workerman/Worker.php(1557): Workerman\Worker->run()

3 /www/meet_view/vendor/workerman/workerman/Worker.php(1399): Workerman\Worker::forkOneWorkerForLinux(Object(Workerman\Worker))

4 /www/meet_view/vendor/workerman/workerman/Worker.php(1373): Workerman\Worker::forkWorkersForLinux()

5 /www/meet_view/vendor/workerman/workerman/Worker.php(550): Workerman\Worker::forkWorkers()

6 /www/meet_view/start.php(112): Workerman\Worker::runAll()

7 {main}

截图报错信息里报错文件相关代码

这里粘贴截图
截图

操作系统及workerman/webman等框架组件具体版本

这里写具体的系统环境相关信息
旧版本加载的依赖

"php": ">=7.2",
"workerman/webman-framework": "^1.2.1",
"monolog/monolog": "^2.0",
"illuminate/database": "^8.83",
"illuminate/pagination": "^8.83",
"illuminate/events": "^8.83",
"yzh52521/webman-throttle": "^1.0",
"illuminate/redis": "^8.83",
"symfony/cache": "^5.2",
"webman/think-orm": "^1.0",
"wpfly/crypto": "^4.0",
"webman/console": "^1.0",
"workerman/crontab": "^1.0",

882 1 0
1个回答

walkor 打赏

1.2 不支持直接升级到1.4
重新创建一个1.4的项目,然后把业务代码复制过去吧

  • kltd 2023-02-02

    感谢 原来如此 是折腾了好久依然不行

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