On my old forum - still missing table - migrate script didn't create new one for some reason...
On empty forum - debug error:
POST https://dev.forum.local/api/chatmessages
{
"errors": [
{
"status": "500",
"code": "unknown",
"detail": "Error: Call to a member function trigger() on bool in /home/dev/domains/dev.forum.local/flarum/vendor/xelson/flarum-ext-chat/src/ChatSocket.php:31\nStack trace:\n#0 /home/dev/domains/dev.forum.local/flarum/vendor/xelson/flarum-ext-chat/src/ChatSocket.php(26): Xelson\\Chat\\ChatSocket->sendPublic()\n#1 /home/dev/domains/dev.forum.local/flarum/vendor/xelson/flarum-ext-chat/src/Api/Controllers/PostMessageController.php(88): Xelson\\Chat\\ChatSocket->sendChatEvent()\n#2 /home/dev/domains/dev.forum.local/flarum/vendor/illuminate/events/Dispatcher.php(360): Xelson\\Chat\\Api\\Controllers\\PostMessageController->onWillSerializeData()\n#3 /home/dev/domains/dev.forum.local/flarum/vendor/illuminate/events/Dispatcher.php(209): Illuminate\\Events\\Dispatcher->Illuminate\\Events\\{closure}()\n#4 /home/dev/domains/dev.forum.local/flarum/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(99): Illuminate\\Events\\Dispatcher->dispatch()\n#5 /home/dev/domains/dev.forum.local/flarum/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\\Api\\Controller\\AbstractSerializeController->handle()\n#6 /home/dev/domains/dev.forum.local/flarum/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php(65): Flarum\\Http\\RouteHandlerFactory->Flarum\\Http\\{closure}()\n#7 /home/dev/domains/dev.forum.local/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\DispatchRoute->process()\n#8 /home/dev/domains/dev.forum.local/flarum/vendor/kilowhat/flarum-ext-audit-free/src/Middlewares/SetLoggerActor.php(28): Laminas\\Stratigility\\Next->handle()\n#9 /home/dev/domains/dev.forum.local/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Kilowhat\\Audit\\Middlewares\\SetLoggerActor->process()\n#10 /home/dev/domains/dev.forum.local/flarum/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Laminas\\Stratigility\\Next->handle()\n#11 /home/dev/domains/dev.forum.local/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\SetLocale->process()\n#12 /home/dev/domains/dev.forum.local/flarum/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(45): Laminas\\Stratigility\\Next->handle()\n#13 /home/dev/domains/dev.forum.local/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\CheckCsrfToken->process()\n#14 /home/dev/domains/dev.forum.local/flarum/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(55): Laminas\\Stratigility\\Next->handle()\n#15 /home/dev/domains/dev.forum.local/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithHeader->process()\n#16 /home/dev/domains/dev.forum.local/flarum/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Laminas\\Stratigility\\Next->handle()\n#17 /home/dev/domains/dev.forum.local/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithSession->process()\n#18 /home/dev/domains/dev.forum.local/flarum/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(51): Laminas\\Stratigility\\Next->handle()\n#19 /home/dev/domains/dev.forum.local/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\RememberFromCookie->process()\n#20 /home/dev/domains/dev.forum.local/flarum/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\\Stratigility\\Next->handle()\n#21 /home/dev/domains/dev.forum.local/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\StartSession->process()\n#22 /home/dev/domains/dev.forum.local/flarum/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\\Stratigility\\Next->handle()\n#23 /home/dev/domains/dev.forum.local/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Api\\Middleware\\FakeHttpMethods->process()\n#24 /home/dev/domains/dev.forum.local/flarum/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\\Stratigility\\Next->handle()\n#25 /home/dev/domains/dev.forum.local/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\ParseJsonBody->process()\n#26 /home/dev/domains/dev.forum.local/flarum/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\\Stratigility\\Next->handle()\n#27 /home/dev/domains/dev.forum.local/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\HandleErrors->process()\n#28 /home/dev/domains/dev.forum.local/flarum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle()\n#29 /home/dev/domains/dev.forum.local/flarum/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\\Stratigility\\MiddlewarePipe->process()\n#30 /home/dev/domains/dev.forum.local/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\RequestHandler->process()\n#31 /home/dev/domains/dev.forum.local/flarum/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Laminas\\Stratigility\\Next->handle()\n#32 /home/dev/domains/dev.forum.local/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePathRouter->process()\n#33 /home/dev/domains/dev.forum.local/flarum/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(42): Laminas\\Stratigility\\Next->handle()\n#34 /home/dev/domains/dev.forum.local/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Laminas\\Stratigility\\Middleware\\OriginalMessages->process()\n#35 /home/dev/domains/dev.forum.local/flarum/vendor/middlewares/base-path/src/BasePath.php(53): Laminas\\Stratigility\\Next->handle()\n#36 /home/dev/domains/dev.forum.local/flarum/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePath->process()\n#37 /home/dev/domains/dev.forum.local/flarum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle()\n#38 /home/dev/domains/dev.forum.local/flarum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\\Stratigility\\MiddlewarePipe->process()\n#39 /home/dev/domains/dev.forum.local/flarum/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\\Stratigility\\MiddlewarePipe->handle()\n#40 /home/dev/domains/dev.forum.local/flarum/vendor/flarum/core/src/Http/Server.php(42): Laminas\\HttpHandlerRunner\\RequestHandlerRunner->run()\n#41 /home/dev/domains/dev.forum.local/flarum/public/index.php(26): Flarum\\Http\\Server->listen()\n#42 {main}"
}
]
}
End Browser console:
Pusher : : ["State changed","initialized -> connecting"]
pusher.js:3071 Pusher : : ["Connecting",{"transport":"ws","url":"wss://prod.forum.local:2083/app/XlJC(...)yx3juZ?protocol=7&client=js&version=5.1.1&flash=false"}]
pusher.js:3071 Pusher : : ["State changed","connecting -> connected with new socket ID 380635890.993837234"]
pusher.js:3071 Pusher : : ["Event sent",{"event":"pusher:subscribe","data":{"auth":"","channel":"public"}}]
pusher.js:3071 Pusher : : ["Event recd",{"event":"pusher_internal:subscription_succeeded","channel":"public"}]
pusher.js:3071 Pusher : : ["No callbacks on public for pusher:subscription_succeeded"]
pusher.js:3071 Pusher : : ["Event sent",{"event":"pusher:subscribe","data":{"auth":"XlJC4VV(...)h9tyx3juZ:8de286(...)e116","channel":"private-user2"}}]
pusher.js:3071 Pusher : : ["Event recd",{"event":"pusher_internal:subscription_succeeded","channel":"private-user2"}]
pusher.js:3071 Pusher : : ["No callbacks on private-user2 for pusher:subscription_succeeded"]
mithril.js:2191 POST https://dev.forum.local/api/chatmessages 500
(anonymous) @ mithril.js:2191
(anonymous) @ mithril.js:2199
y.request @ mithril.js:2288
e.request @ Application.js:293
e.save @ Model.js:159
messagePost @ ChatViewport.js:477
messageSend @ ChatViewport.js:385
inputPressEnter @ ChatViewport.js:328
L.t.<computed> @ mithril.js:1286