提问前请务必仔细阅读 如何排查故障 和 常见问题。
问题描述:
无法发布主题
报错内容:
糟糕,出错啦!请刷新页面重试。
调试模式报错内容:500
POST https://caicat.com/api/discussions
ParseError: syntax error, unexpected ‘->’ (T_OBJECT_OPERATOR) in /www/wwwroot/caicat.com/vendor/fof/byobu/src/Discussion/Screener.php:111
Stack trace:
#0 /www/wwwroot/caicat.com/vendor/composer/ClassLoader.php(427): Composer\Autoload{closure}()
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass()
#2 /www/wwwroot/caicat.com/vendor/fof/byobu/src/Listeners/PersistRecipients.php(189): spl_autoload_call()
#3 /www/wwwroot/caicat.com/vendor/fof/byobu/src/Listeners/PersistRecipients.php(51): FoF\Byobu\Listeners\PersistRecipients->eventSubmitsRelationships()
#4 /www/wwwroot/caicat.com/vendor/illuminate/events/Dispatcher.php(424): FoF\Byobu\Listeners\PersistRecipients->handle()
#5 /www/wwwroot/caicat.com/vendor/illuminate/events/Dispatcher.php(249): Illuminate\Events\Dispatcher->Illuminate\Events{closure}()
#6 /www/wwwroot/caicat.com/vendor/flarum/core/src/Discussion/Command/StartDiscussionHandler.php(71): Illuminate\Events\Dispatcher->dispatch()
#7 /www/wwwroot/caicat.com/vendor/illuminate/bus/Dispatcher.php(122): Flarum\Discussion\Command\StartDiscussionHandler->handle()
#8 /www/wwwroot/caicat.com/vendor/illuminate/pipeline/Pipeline.php(128): Illuminate\Bus\Dispatcher->Illuminate\Bus{closure}()
#9 /www/wwwroot/caicat.com/vendor/illuminate/pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#10 /www/wwwroot/caicat.com/vendor/illuminate/bus/Dispatcher.php(132): Illuminate\Pipeline\Pipeline->then()
#11 /www/wwwroot/caicat.com/vendor/illuminate/bus/Dispatcher.php(78): Illuminate\Bus\Dispatcher->dispatchNow()
#12 /www/wwwroot/caicat.com/vendor/flarum/core/src/Api/Controller/CreateDiscussionController.php(62): Illuminate\Bus\Dispatcher->dispatch()
#13 /www/wwwroot/caicat.com/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(116): Flarum\Api\Controller\CreateDiscussionController->data()
#14 /www/wwwroot/caicat.com/vendor/flarum/core/src/Api/Controller/AbstractCreateController.php(22): Flarum\Api\Controller\AbstractSerializeController->handle()
#15 /www/wwwroot/caicat.com/vendor/flarum/core/src/Http/RouteHandlerFactory.php(41): Flarum\Api\Controller\AbstractCreateController->handle()
#16 /www/wwwroot/caicat.com/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http{closure}()
#17 /www/wwwroot/caicat.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ExecuteRoute->process()
#18 /www/wwwroot/caicat.com/vendor/flarum/core/src/Api/Middleware/ThrottleApi.php(33): Laminas\Stratigility\Next->handle()
#19 /www/wwwroot/caicat.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Api\Middleware\ThrottleApi->process()
#20 /www/wwwroot/caicat.com/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(44): Laminas\Stratigility\Next->handle()
#21 /www/wwwroot/caicat.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\CheckCsrfToken->process()
#22 /www/wwwroot/caicat.com/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(69): Laminas\Stratigility\Next->handle()
#23 /www/wwwroot/caicat.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ResolveRoute->process()
#24 /www/wwwroot/caicat.com/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Laminas\Stratigility\Next->handle()
#25 /www/wwwroot/caicat.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\SetLocale->process()
#26 /www/wwwroot/caicat.com/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(58): Laminas\Stratigility\Next->handle()
#27 /www/wwwroot/caicat.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\AuthenticateWithHeader->process()
#28 /www/wwwroot/caicat.com/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(31): Laminas\Stratigility\Next->handle()
#29 /www/wwwroot/caicat.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\AuthenticateWithSession->process()
#30 /www/wwwroot/caicat.com/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Laminas\Stratigility\Next->handle()
#31 /www/wwwroot/caicat.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\RememberFromCookie->process()
#32 /www/wwwroot/caicat.com/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle()
#33 /www/wwwroot/caicat.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\StartSession->process()
#34 /www/wwwroot/caicat.com/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\Stratigility\Next->handle()
#35 /www/wwwroot/caicat.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Api\Middleware\FakeHttpMethods->process()
#36 /www/wwwroot/caicat.com/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle()
#37 /www/wwwroot/caicat.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ParseJsonBody->process()
#38 /www/wwwroot/caicat.com/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle()
#39 /www/wwwroot/caicat.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\HandleErrors->process()
#40 /www/wwwroot/caicat.com/vendor/flarum/core/src/Http/Middleware/InjectActorReference.php(25): Laminas\Stratigility\Next->handle()
#41 /www/wwwroot/caicat.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\InjectActorReference->process()
#42 /www/wwwroot/caicat.com/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(75): Laminas\Stratigility\Next->handle()
#43 /www/wwwroot/caicat.com/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process()
#44 /www/wwwroot/caicat.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Middlewares\RequestHandler->process()
#45 /www/wwwroot/caicat.com/vendor/middlewares/base-path-router/src/BasePathRouter.php(101): Laminas\Stratigility\Next->handle()
#46 /www/wwwroot/caicat.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Middlewares\BasePathRouter->process()
#47 /www/wwwroot/caicat.com/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(36): Laminas\Stratigility\Next->handle()
#48 /www/wwwroot/caicat.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Laminas\Stratigility\Middleware\OriginalMessages->process()
#49 /www/wwwroot/caicat.com/vendor/middlewares/base-path/src/BasePath.php(73): Laminas\Stratigility\Next->handle()
#50 /www/wwwroot/caicat.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Middlewares\BasePath->process()
#51 /www/wwwroot/caicat.com/vendor/flarum/core/src/Http/Middleware/ProcessIp.php(24): Laminas\Stratigility\Next->handle()
#52 /www/wwwroot/caicat.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ProcessIp->process()
#53 /www/wwwroot/caicat.com/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(75): Laminas\Stratigility\Next->handle()
#54 /www/wwwroot/caicat.com/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(64): Laminas\Stratigility\MiddlewarePipe->process()
#55 /www/wwwroot/caicat.com/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\Stratigility\MiddlewarePipe->handle()
#56 /www/wwwroot/caicat.com/vendor/flarum/core/src/Http/Server.php(45): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#57 /www/wwwroot/caicat.com/public/index.php(26): Flarum\Http\Server->listen()
#58 {main}
已尝试的解决办法:搜索论坛未找到解决方案
网址: