新进展:debug错误内容,扳手过来康康
POST https://community.wvbtech.com/api/posts/19512
{
"errors": [
{
"status": "500",
"code": "unknown",
"detail": "BadMethodCallException: Call to undefined method Flarum\\Post\\CommentPost::downvotes() in /data/wwwroot/community.wvbtech.com/vendor/illuminate/support/Traits/ForwardsCalls.php:50\nStack trace:\n#0 /data/wwwroot/community.wvbtech.com/vendor/illuminate/support/Traits/ForwardsCalls.php(36): Illuminate\\Database\\Eloquent\\Model::throwBadMethodCallException()\n#1 /data/wwwroot/community.wvbtech.com/vendor/illuminate/database/Eloquent/Model.php(1610): Illuminate\\Database\\Eloquent\\Model->forwardCallTo()\n#2 /data/wwwroot/community.wvbtech.com/vendor/flarum/core/src/Database/AbstractModel.php(222): Illuminate\\Database\\Eloquent\\Model->__call()\n#3 /data/wwwroot/community.wvbtech.com/vendor/the-turk/flarum-edit-notifications/src/Jobs/SendNotificationWhenPostIsEdited.php(114): Flarum\\Database\\AbstractModel->__call()\n#4 [internal function]: TheTurk\\EditNotifications\\Jobs\\SendNotificationWhenPostIsEdited->handle()\n#5 /data/wwwroot/community.wvbtech.com/vendor/illuminate/container/BoundMethod.php(29): call_user_func_array()\n#6 /data/wwwroot/community.wvbtech.com/vendor/illuminate/container/BoundMethod.php(87): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#7 /data/wwwroot/community.wvbtech.com/vendor/illuminate/container/BoundMethod.php(31): Illuminate\\Container\\BoundMethod::callBoundMethod()\n#8 /data/wwwroot/community.wvbtech.com/vendor/illuminate/container/Container.php(572): Illuminate\\Container\\BoundMethod::call()\n#9 /data/wwwroot/community.wvbtech.com/vendor/illuminate/bus/Dispatcher.php(94): Illuminate\\Container\\Container->call()\n#10 /data/wwwroot/community.wvbtech.com/vendor/illuminate/pipeline/Pipeline.php(128): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}()\n#11 /data/wwwroot/community.wvbtech.com/vendor/illuminate/pipeline/Pipeline.php(104): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()\n#12 /data/wwwroot/community.wvbtech.com/vendor/illuminate/bus/Dispatcher.php(98): Illuminate\\Pipeline\\Pipeline->then()\n#13 /data/wwwroot/community.wvbtech.com/vendor/illuminate/queue/CallQueuedHandler.php(49): Illuminate\\Bus\\Dispatcher->dispatchNow()\n#14 /data/wwwroot/community.wvbtech.com/vendor/illuminate/queue/Jobs/Job.php(83): Illuminate\\Queue\\CallQueuedHandler->call()\n#15 /data/wwwroot/community.wvbtech.com/vendor/illuminate/queue/SyncQueue.php(42): Illuminate\\Queue\\Jobs\\Job->fire()\n#16 /data/wwwroot/community.wvbtech.com/vendor/the-turk/flarum-edit-notifications/src/Listeners/SubscribeToEvents.php(44): Illuminate\\Queue\\SyncQueue->push()\n#17 /data/wwwroot/community.wvbtech.com/vendor/illuminate/events/Dispatcher.php(360): TheTurk\\EditNotifications\\Listeners\\SubscribeToEvents->whenPostRevised()\n#18 /data/wwwroot/community.wvbtech.com/vendor/illuminate/events/Dispatcher.php(209): Illuminate\\Events\\Dispatcher->Illuminate\\Events\\{closure}()\n#19 /data/wwwroot/community.wvbtech.com/vendor/flarum/core/src/Foundation/DispatchEventsTrait.php(33): Illuminate\\Events\\Dispatcher->dispatch()\n#20 /data/wwwroot/community.wvbtech.com/vendor/flarum/core/src/Post/Command/EditPostHandler.php(88): Flarum\\Post\\Command\\EditPostHandler->dispatchEventsFor()\n#21 /data/wwwroot/community.wvbtech.com/vendor/illuminate/bus/Dispatcher.php(90): Flarum\\Post\\Command\\EditPostHandler->handle()\n#22 /data/wwwroot/community.wvbtech.com/vendor/illuminate/pipeline/Pipeline.php(128): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}()\n#23 /data/wwwroot/community.wvbtech.com/vendor/illuminate/pipeline/Pipeline.php(104): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()\n#24 /data/wwwroot/community.wvbtech.com/vendor/illuminate/bus/Dispatcher.php(98): Illuminate\\Pipeline\\Pipeline->then()\n#25 /data/wwwroot/community.wvbtech.com/vendor/illuminate/bus/Dispatcher.php(76): Illuminate\\Bus\\Dispatcher->dispatchNow()\n#26 /data/wwwroot/community.wvbtech.com/vendor/flarum/core/src/Api/Controller/UpdatePostController.php(57): Illuminate\\Bus\\Dispatcher->dispatch()\n#27 /data/wwwroot/community.wvbtech.com/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(96): Flarum\\Api\\Controller\\UpdatePostController->data()\n#28 /data/wwwroot/community.wvbtech.com/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\\Api\\Controller\\AbstractSerializeController->handle()\n#29 /data/wwwroot/community.wvbtech.com/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php(65): Flarum\\Http\\RouteHandlerFactory->Flarum\\Http\\{closure}()\n#30 /data/wwwroot/community.wvbtech.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\DispatchRoute->process()\n#31 /data/wwwroot/community.wvbtech.com/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Laminas\\Stratigility\\Next->handle()\n#32 /data/wwwroot/community.wvbtech.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\SetLocale->process()\n#33 /data/wwwroot/community.wvbtech.com/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(45): Laminas\\Stratigility\\Next->handle()\n#34 /data/wwwroot/community.wvbtech.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\CheckCsrfToken->process()\n#35 /data/wwwroot/community.wvbtech.com/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(55): Laminas\\Stratigility\\Next->handle()\n#36 /data/wwwroot/community.wvbtech.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithHeader->process()\n#37 /data/wwwroot/community.wvbtech.com/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Laminas\\Stratigility\\Next->handle()\n#38 /data/wwwroot/community.wvbtech.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithSession->process()\n#39 /data/wwwroot/community.wvbtech.com/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(51): Laminas\\Stratigility\\Next->handle()\n#40 /data/wwwroot/community.wvbtech.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\RememberFromCookie->process()\n#41 /data/wwwroot/community.wvbtech.com/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\\Stratigility\\Next->handle()\n#42 /data/wwwroot/community.wvbtech.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\StartSession->process()\n#43 /data/wwwroot/community.wvbtech.com/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\\Stratigility\\Next->handle()\n#44 /data/wwwroot/community.wvbtech.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Api\\Middleware\\FakeHttpMethods->process()\n#45 /data/wwwroot/community.wvbtech.com/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\\Stratigility\\Next->handle()\n#46 /data/wwwroot/community.wvbtech.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\ParseJsonBody->process()\n#47 /data/wwwroot/community.wvbtech.com/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\\Stratigility\\Next->handle()\n#48 /data/wwwroot/community.wvbtech.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\HandleErrors->process()\n#49 /data/wwwroot/community.wvbtech.com/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle()\n#50 /data/wwwroot/community.wvbtech.com/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\\Stratigility\\MiddlewarePipe->process()\n#51 /data/wwwroot/community.wvbtech.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\RequestHandler->process()\n#52 /data/wwwroot/community.wvbtech.com/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Laminas\\Stratigility\\Next->handle()\n#53 /data/wwwroot/community.wvbtech.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePathRouter->process()\n#54 /data/wwwroot/community.wvbtech.com/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(42): Laminas\\Stratigility\\Next->handle()\n#55 /data/wwwroot/community.wvbtech.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Laminas\\Stratigility\\Middleware\\OriginalMessages->process()\n#56 /data/wwwroot/community.wvbtech.com/vendor/middlewares/base-path/src/BasePath.php(53): Laminas\\Stratigility\\Next->handle()\n#57 /data/wwwroot/community.wvbtech.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePath->process()\n#58 /data/wwwroot/community.wvbtech.com/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle()\n#59 /data/wwwroot/community.wvbtech.com/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\\Stratigility\\MiddlewarePipe->process()\n#60 /data/wwwroot/community.wvbtech.com/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\\Stratigility\\MiddlewarePipe->handle()\n#61 /data/wwwroot/community.wvbtech.com/vendor/flarum/core/src/Http/Server.php(42): Laminas\\HttpHandlerRunner\\RequestHandlerRunner->run()\n#62 /data/wwwroot/community.wvbtech.com/public/index.php(26): Flarum\\Http\\Server->listen()\n#63 {main}"
}
]
}