Golden {
"errors": [
{
"status": "500",
"code": "unknown",
"detail": "BadMethodCallException: Call to undefined method Flarum\\User\\User::assertCan() in /www/wwwroot/bbs.stkey.top/vendor/illuminate/support/Traits/ForwardsCalls.php:50\nStack trace:\n#0 /www/wwwroot/bbs.stkey.top/vendor/illuminate/support/Traits/ForwardsCalls.php(36): Illuminate\\Database\\Eloquent\\Model::throwBadMethodCallException()\n#1 /www/wwwroot/bbs.stkey.top/vendor/illuminate/database/Eloquent/Model.php(1610): Illuminate\\Database\\Eloquent\\Model->forwardCallTo()\n#2 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Database/AbstractModel.php(222): Illuminate\\Database\\Eloquent\\Model->__call()\n#3 /www/wwwroot/bbs.stkey.top/vendor/flarum/tags/src/Listener/SaveTagsToDatabase.php(63): Flarum\\Database\\AbstractModel->__call()\n#4 [internal function]: Flarum\\Tags\\Listener\\SaveTagsToDatabase->handle()\n#5 /www/wwwroot/bbs.stkey.top/vendor/illuminate/events/Dispatcher.php(379): call_user_func_array()\n#6 /www/wwwroot/bbs.stkey.top/vendor/illuminate/events/Dispatcher.php(209): Illuminate\\Events\\Dispatcher->Illuminate\\Events\\{closure}()\n#7 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Discussion/Command/EditDiscussionHandler.php(77): Illuminate\\Events\\Dispatcher->dispatch()\n#8 /www/wwwroot/bbs.stkey.top/vendor/illuminate/bus/Dispatcher.php(90): Flarum\\Discussion\\Command\\EditDiscussionHandler->handle()\n#9 /www/wwwroot/bbs.stkey.top/vendor/illuminate/pipeline/Pipeline.php(128): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}()\n#10 /www/wwwroot/bbs.stkey.top/vendor/illuminate/pipeline/Pipeline.php(104): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()\n#11 /www/wwwroot/bbs.stkey.top/vendor/illuminate/bus/Dispatcher.php(98): Illuminate\\Pipeline\\Pipeline->then()\n#12 /www/wwwroot/bbs.stkey.top/vendor/illuminate/bus/Dispatcher.php(76): Illuminate\\Bus\\Dispatcher->dispatchNow()\n#13 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Api/Controller/UpdateDiscussionController.php(51): Illuminate\\Bus\\Dispatcher->dispatch()\n#14 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(96): Flarum\\Api\\Controller\\UpdateDiscussionController->data()\n#15 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\\Api\\Controller\\AbstractSerializeController->handle()\n#16 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php(65): Flarum\\Http\\RouteHandlerFactory->Flarum\\Http\\{closure}()\n#17 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\DispatchRoute->process()\n#18 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Laminas\\Stratigility\\Next->handle()\n#19 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\SetLocale->process()\n#20 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(45): Laminas\\Stratigility\\Next->handle()\n#21 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\CheckCsrfToken->process()\n#22 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(55): Laminas\\Stratigility\\Next->handle()\n#23 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithHeader->process()\n#24 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Laminas\\Stratigility\\Next->handle()\n#25 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithSession->process()\n#26 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(51): Laminas\\Stratigility\\Next->handle()\n#27 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\RememberFromCookie->process()\n#28 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\\Stratigility\\Next->handle()\n#29 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\StartSession->process()\n#30 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\\Stratigility\\Next->handle()\n#31 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Api\\Middleware\\FakeHttpMethods->process()\n#32 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\\Stratigility\\Next->handle()\n#33 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\ParseJsonBody->process()\n#34 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\\Stratigility\\Next->handle()\n#35 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\HandleErrors->process()\n#36 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle()\n#37 /www/wwwroot/bbs.stkey.top/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\\Stratigility\\MiddlewarePipe->process()\n#38 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\RequestHandler->process()\n#39 /www/wwwroot/bbs.stkey.top/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Laminas\\Stratigility\\Next->handle()\n#40 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePathRouter->process()\n#41 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(42): Laminas\\Stratigility\\Next->handle()\n#42 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Laminas\\Stratigility\\Middleware\\OriginalMessages->process()\n#43 /www/wwwroot/bbs.stkey.top/vendor/middlewares/base-path/src/BasePath.php(53): Laminas\\Stratigility\\Next->handle()\n#44 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePath->process()\n#45 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle()\n#46 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\\Stratigility\\MiddlewarePipe->process()\n#47 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\\Stratigility\\MiddlewarePipe->handle()\n#48 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Server.php(42): Laminas\\HttpHandlerRunner\\RequestHandlerRunner->run()\n#49 /www/wwwroot/bbs.stkey.top/public/index.php(26): Flarum\\Http\\Server->listen()\n#50 {main}"
}
]
}
升级后将原来的帖子更改标签后会提示错误!