workerman-manual icon indicating copy to clipboard operation
workerman-manual copied to clipboard

两年前的项目,升级后,提示Waring: Events::onMessage is not callable,请问如何解决?

Open swanfly opened this issue 2 years ago • 1 comments

php没有用任何框架,下面是启动日志。 [root@ecs-beijing-1 im]# php start.php start start/www/wwwroot/www.quweilai.cn/mars/imWorkerman[start.php] start in DEBUG mode --------------------------------------------- WORKERMAN ---------------------------------------------- Workerman version:4.1.0 PHP version:7.4.30 Event-Loop:\Workerman\Events\Select ---------------------------------------------- WORKERS ----------------------------------------------- proto user worker listen processes status
tcp root mars_im_business none 4 [OK]
ssl root mars_im_gateway websocket://0.0.0.0:8282 4 [OK]
tcp root Register text://0.0.0.0:1238 1 [OK]

Press Ctrl+C to stop. Start success. Waring: Events::onMessage is not callable Waring: Events::onMessage is not callable Waring: Events::onMessage is not callable Waring: Events::onMessage is not callable

image

swanfly avatar Sep 17 '22 04:09 swanfly

https://github.com/walkor/workerman-chat/blob/master/composer.json 参考设置下autoload,然后执行 composer dumpautoload

walkor avatar Sep 17 '22 06:09 walkor