WebMW socket error
So I've been looking into why WebMW broke. The initial error is on say.js:333 Uncaught TypeError: data.sort is not a function
. This is just because its receiving an unexpected json object instead of the data it expects. The object it gets is this:
{
"status": "Socket open error",
"detail": "socket_connect(): unable to connect [2]: No such file or directory",
"path": "/var/run/mw/mwpoll.8396"
}
This error is raised from send.php
$sock = socket_create(AF_UNIX, SOCK_SEQPACKET, 0);
if (@socket_connect($sock, $path) === FALSE) {
echo "{";
echo "\"status\":\"Socket open error\"";
$err = error_get_last();
echo ",\"detail\":\"".$err['message']."\"";
echo ",\"path\":\"".$path."\"";
echo "}\n";
exit;
}
As far as I can understand it the socket does not exist when php tries to connect to it which suggests an issue in the C code. I could do with some help with looking into that part though.