I just upgraded to 1.8.5 and my forum crashes with Byobu enabled. If I disable Byobu, the form works fine.
When Byobu enabled and in debug mode, I see this error in the console.
And here's the stack trace:
[2024-01-13 21:47:22] flarum.ERROR: ParseError: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /var/www/golfbuzz.com/html/vendor/fof/byobu/src/Discussion/Screener.php:111
Stack trace:
#0 /var/www/golfbuzz.com/html/vendor/composer/ClassLoader.php(346): Composer\Autoload\includeFile('/var/www/golfbu...')
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass('FoF\\Byobu\\Discu...')
#2 [internal function]: spl_autoload_call('FoF\\Byobu\\Discu...')
#3 /var/www/golfbuzz.com/html/vendor/illuminate/container/Container.php(877): ReflectionClass->__construct('FoF\\Byobu\\Discu...')
#4 /var/www/golfbuzz.com/html/vendor/illuminate/container/Container.php(758): Illuminate\Container\Container->build('FoF\\Byobu\\Discu...')
#5 /var/www/golfbuzz.com/html/vendor/illuminate/container/Container.php(296): Illuminate\Container\Container->resolve('FoF\\Byobu\\Discu...', Array, false)
#6 /var/www/golfbuzz.com/html/vendor/illuminate/container/Container.php(873): Illuminate\Container\Container->Illuminate\Container\{closure}(Object(Illuminate\Container\Container), Array)
#7 /var/www/golfbuzz.com/html/vendor/illuminate/container/Container.php(758): Illuminate\Container\Container->build(Object(Closure))
#8 /var/www/golfbuzz.com/html/vendor/illuminate/container/Container.php(694): Illuminate\Container\Container->resolve('byobu.screener', Array)
#9 /var/www/golfbuzz.com/html/vendor/flarum/core/src/helpers.php(25): Illuminate\Container\Container->make('byobu.screener', Array)
#10 /var/www/golfbuzz.com/html/vendor/fof/byobu/src/Access/DiscussionPolicy.php(93): resolve('byobu.screener')
#11 /var/www/golfbuzz.com/html/vendor/fof/byobu/src/Access/DiscussionPolicy.php(80): FoF\Byobu\Access\DiscussionPolicy->isPrivate(Object(Flarum\Discussion\Discussion))
#12 [internal function]: FoF\Byobu\Access\DiscussionPolicy->tag(Object(Flarum\User\Guest), Object(Flarum\Discussion\Discussion))
#13 /var/www/golfbuzz.com/html/vendor/flarum/core/src/User/Access/AbstractPolicy.php(50): call_user_func_array(Array, Array)
#14 /var/www/golfbuzz.com/html/vendor/flarum/core/src/User/Access/Gate.php(78): Flarum\User\Access\AbstractPolicy->checkAbility(Object(Flarum\User\Guest), 'tag', Object(Flarum\Discussion\Discussion))
#15 /var/www/golfbuzz.com/html/vendor/flarum/core/src/User/User.php(790): Flarum\User\Access\Gate->allows(Object(Flarum\User\Guest), 'tag', Object(Flarum\Discussion\Discussion))
#16 /var/www/golfbuzz.com/html/vendor/flarum/tags/extend.php(77): Flarum\User\User->can('tag', Object(Flarum\Discussion\Discussion))
#17 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Extend/ApiSerializer.php(143): Flarum\Extension\Extension->{closure}(Object(Flarum\Api\Serializer\DiscussionSerializer), Object(Flarum\Discussion\Discussion), Array)
#18 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Api/Serializer/AbstractSerializer.php(95): Flarum\Extend\ApiSerializer->Flarum\Extend\{closure}(Object(Flarum\Api\Serializer\DiscussionSerializer), Object(Flarum\Discussion\Discussion), Array)
#19 /var/www/golfbuzz.com/html/vendor/sycho/json-api/src/Resource.php(183): Flarum\Api\Serializer\AbstractSerializer->getAttributes(Object(Flarum\Discussion\Discussion), NULL)
#20 /var/www/golfbuzz.com/html/vendor/sycho/json-api/src/Resource.php(81): Tobscure\JsonApi\Resource->getAttributes()
#21 /var/www/golfbuzz.com/html/vendor/sycho/json-api/src/Document.php(188): Tobscure\JsonApi\Resource->toArray()
#22 /var/www/golfbuzz.com/html/vendor/sycho/json-api/src/Document.php(232): Tobscure\JsonApi\Document->toArray()
#23 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Api/JsonApiResponse.php(27): Tobscure\JsonApi\Document->jsonSerialize()
#24 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(139): Flarum\Api\JsonApiResponse->__construct(Object(Tobscure\JsonApi\Document))
#25 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Http/RouteHandlerFactory.php(41): Flarum\Api\Controller\AbstractSerializeController->handle(Object(Laminas\Diactoros\ServerRequest))
#26 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}(Object(Laminas\Diactoros\ServerRequest), Array)
#27 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ExecuteRoute->process(Object(Laminas\Diactoros\ServerRequest), Object(Closure))
#28 /var/www/golfbuzz.com/html/vendor/fof/oauth/src/Middleware/BindRequest.php(33): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#29 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): FoF\OAuth\Middleware\BindRequest->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#30 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Api/Middleware/ThrottleApi.php(33): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#31 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Api\Middleware\ThrottleApi->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#32 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(69): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#33 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ResolveRoute->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#34 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#35 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\SetLocale->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#36 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#37 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\HandleErrors->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#38 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(76): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#39 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(65): Laminas\Stratigility\MiddlewarePipe->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\EmptyPipelineHandler))
#40 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Api/Client.php(141): Laminas\Stratigility\MiddlewarePipe->handle(Object(Laminas\Diactoros\ServerRequest))
#41 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Api/Client.php(91): Flarum\Api\Client->send('GET', '/discussions/99...')
#42 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Forum/Content/Discussion.php(121): Flarum\Api\Client->get('/discussions/99...')
#43 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Forum/Content/Discussion.php(65): Flarum\Forum\Content\Discussion->getApiDocument(Object(Laminas\Diactoros\ServerRequest), '9991-2022-witb-...', Array)
#44 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Frontend/Frontend.php(62): Flarum\Forum\Content\Discussion->__invoke(Object(Flarum\Frontend\Document), Object(Laminas\Diactoros\ServerRequest))
#45 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Frontend/Frontend.php(54): Flarum\Frontend\Frontend->populate(Object(Flarum\Frontend\Document), Object(Laminas\Diactoros\ServerRequest))
#46 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Frontend/Controller.php(32): Flarum\Frontend\Frontend->document(Object(Laminas\Diactoros\ServerRequest))
#47 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Http/RouteHandlerFactory.php(41): Flarum\Frontend\Controller->handle(Object(Laminas\Diactoros\ServerRequest))
#48 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}(Object(Laminas\Diactoros\ServerRequest), Array)
#49 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ExecuteRoute->process(Object(Laminas\Diactoros\ServerRequest), Object(Closure))
#50 /var/www/golfbuzz.com/html/vendor/fof/anti-spam/src/Middleware/CheckLoginMiddleware.php(86): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#51 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): FoF\AntiSpam\Middleware\CheckLoginMiddleware->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#52 /var/www/golfbuzz.com/html/vendor/fof/oauth/src/Middleware/BindRequest.php(33): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#53 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): FoF\OAuth\Middleware\BindRequest->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#54 /var/www/golfbuzz.com/html/vendor/fof/oauth/src/Middleware/ErrorHandler.php(54): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#55 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): FoF\OAuth\Middleware\ErrorHandler->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#56 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Http/Middleware/ContentTypeOptionsHeader.php(21): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#57 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ContentTypeOptionsHeader->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#58 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Http/Middleware/ReferrerPolicyHeader.php(30): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#59 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ReferrerPolicyHeader->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#60 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Http/Middleware/FlarumPromotionHeader.php(30): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#61 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\FlarumPromotionHeader->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#62 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Http/Middleware/ShareErrorsFromSession.php(57): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#63 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ShareErrorsFromSession->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#64 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(36): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#65 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\CheckCsrfToken->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#66 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(69): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#67 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ResolveRoute->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#68 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#69 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\SetLocale->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#70 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(31): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#71 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\AuthenticateWithSession->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#72 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#73 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\RememberFromCookie->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#74 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#75 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\StartSession->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#76 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Http/Middleware/CollectGarbage.php(46): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#77 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\CollectGarbage->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#78 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#79 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ParseJsonBody->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#80 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#81 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\HandleErrors->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#82 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Http/Middleware/InjectActorReference.php(25): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#83 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\InjectActorReference->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#84 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(76): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#85 /var/www/golfbuzz.com/html/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#86 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): Middlewares\RequestHandler->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#87 /var/www/golfbuzz.com/html/vendor/middlewares/base-path-router/src/BasePathRouter.php(101): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#88 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): Middlewares\BasePathRouter->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#89 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(36): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#90 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): Laminas\Stratigility\Middleware\OriginalMessages->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#91 /var/www/golfbuzz.com/html/vendor/middlewares/base-path/src/BasePath.php(73): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#92 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): Middlewares\BasePath->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#93 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Http/Middleware/ProcessIp.php(24): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#94 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ProcessIp->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#95 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(76): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#96 /var/www/golfbuzz.com/html/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(65): Laminas\Stratigility\MiddlewarePipe->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\EmptyPipelineHandler))
#97 /var/www/golfbuzz.com/html/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\Stratigility\MiddlewarePipe->handle(Object(Laminas\Diactoros\ServerRequest))
#98 /var/www/golfbuzz.com/html/vendor/flarum/core/src/Http/Server.php(45): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#99 /var/www/golfbuzz.com/html/public/index.php(26): Flarum\Http\Server->listen()
#100 {main}