Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
swanfly opened this issue Sep 17, 2022 · 1 comment

Comments

@swanfly
Copy link

swanfly commented Sep 17, 2022

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

@walkor
Copy link
Owner

walkor commented Sep 17, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants