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

Workerman\Lib\Timer not found #281

Open
binemmanuel opened this issue Nov 23, 2022 · 2 comments
Open

Workerman\Lib\Timer not found #281

binemmanuel opened this issue Nov 23, 2022 · 2 comments

Comments

@binemmanuel
Copy link
Contributor

Error: Class "Workerman\Lib\Timer" not found in /Users/binemmanuel/Projects/zerabtech_app/backend/vendor/workerman/phpsocket.io/src/Engine/Socket.php:238
Stack trace:
#0 [internal function]: PHPSocketIO\Engine\Socket->onClose()
#1 /Users/binemmanuel/Projects/zerabtech_app/backend/vendor/workerman/phpsocket.io/src/Event/Emitter.php(93): call_user_func_array(Array, Array)
#2 /Users/binemmanuel/Projects/zerabtech_app/backend/vendor/workerman/phpsocket.io/src/Engine/Transport.php(68): PHPSocketIO\Event\Emitter->emit('close')
#3 /Users/binemmanuel/Projects/zerabtech_app/backend/vendor/workerman/workerman/src/Connection/TcpConnection.php(944): PHPSocketIO\Engine\Transport->onClose(Object(Workerman\Connection\TcpConnection))
#4 /Users/binemmanuel/Projects/zerabtech_app/backend/vendor/workerman/workerman/src/Connection/TcpConnection.php(592): Workerman\Connection\TcpConnection->destroy()
#5 /Users/binemmanuel/Projects/zerabtech_app/backend/vendor/workerman/workerman/src/Events/Select.php(352): Workerman\Connection\TcpConnection->baseRead(Resource id #70)
#6 /Users/binemmanuel/Projects/zerabtech_app/backend/vendor/workerman/workerman/src/Worker.php(2399): Workerman\Events\Select->run()
#7 /Users/binemmanuel/Projects/zerabtech_app/backend/vendor/workerman/workerman/src/Worker.php(1524): Workerman\Worker->run()
#8 /Users/binemmanuel/Projects/zerabtech_app/backend/vendor/workerman/workerman/src/Worker.php(1371): Workerman\Worker::forkOneWorkerForLinux(Object(Workerman\Worker))
#9 /Users/binemmanuel/Projects/zerabtech_app/backend/vendor/workerman/workerman/src/Worker.php(1345): Workerman\Worker::forkWorkersForLinux()
#10 /Users/binemmanuel/Projects/zerabtech_app/backend/vendor/workerman/workerman/src/Worker.php(557): Workerman\Worker::forkWorkers()
#11 /Users/binemmanuel/Projects/zerabtech_app/backend/src/socket.php(14): Workerman\Worker::runAll()
#12 {main}
worker[PHPSocketIO:55411] exit with status 64000

phpsocket.io Version
workerman/phpsocket.io": "^1.1.14

@walkor
Copy link
Owner

walkor commented Nov 23, 2022

Please upgrade workerman/phpsocket.io to 1.1.15

@mnaz-trustanalytica
Copy link

mnaz-trustanalytica commented Nov 29, 2022

@walkor because of this change, you broke the package.
here, I am getting error
image

please revert it back to Workerman\Lib\Timer.
because I can see it resolves the problem, if you edit line in
vendor/workerman/phpsocket.io/src/Engine/Socket.php

from
use \Workerman\Timer;
to
use \Workerman\Lib\Timer;

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

3 participants