NDavid
Member
Can't seem to make this addon work with Swoole. Details below.
(XF Options) Control Socket: The socket server is not running.
Click Enable button returns an error...
Status: 500 Internal Server Error Content-Type: text/html; charset=utf-8 An unexpected error occurred. Please try again later.
Clicking the Enable button also generates server error...
Run php socket_server.php status...
------------------- SWOOLE SERVER IS RUNNING --------------------
Swoole version:5.1.1 PHP version:8.2.16
Run php socket_server.php restart...
server stop for pid 374159 at 2024-03-14 05:01:59
(XF Options) Control Socket: The socket server is not running.
Click Enable button returns an error...
Status: 500 Internal Server Error Content-Type: text/html; charset=utf-8 An unexpected error occurred. Please try again later.
Clicking the Enable button also generates server error...
Code:
Server error log
Error: Class "Swoole\Constant" not found src/addons/DCom/LiveContent/SocketServer/SwooleServer/SwooleServer.php:56
Generated by: Unknown account Mar 14, 2024 at 1:04 PM
---------------------------------------------------------
Stack trace
#0 src/addons/DCom/LiveContent/SocketServer/SwooleServer/SwooleServer.php(32): DCom\LiveContent\SocketServer\SwooleServer\SwooleServer->start()
#1 src/addons/DCom/LiveContent/ServerIO.php(21): DCom\LiveContent\SocketServer\SwooleServer\SwooleServer->run()
#2 socket_server.php(16): DCom\LiveContent\ServerIO::start()
#3 {main}
Request state
array(4) {
["url"] => string(0) ""
["referrer"] => bool(false)
["_GET"] => array(2) {
["/homedir/public_html/socket_server_php"] => string(0) ""
["start"] => string(0) ""
}
["_POST"] => array(0) {
}
}
Run php socket_server.php status...
------------------- SWOOLE SERVER IS RUNNING --------------------
Swoole version:5.1.1 PHP version:8.2.16
Run php socket_server.php restart...
server stop for pid 374159 at 2024-03-14 05:01:59