The issue
flag content is not accessible.
Flarum information
Flarum 1.8.1
PHP 8.1
Here is the information from the debug mode:
GET https://www.xn--fmrv2rkpbv8uymm.com/api/flags
TypeError: Flarum\Discussion\Utf8SlugDriver::toSlug(): Argument #1 ($instance) must be of type Flarum\Database\AbstractModel, null given, called in /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/mentions/src/Formatter/FormatPostMentions.php on line 71 and defined in /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/core/src/Discussion/Utf8SlugDriver.php:35
Stack trace:
#0 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/mentions/src/Formatter/FormatPostMentions.php(71): Flarum\Discussion\Utf8SlugDriver->toSlug()
#1 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/s9e/text-formatter/src/Utils.php(123): Flarum\Mentions\Formatter\FormatPostMentions->Flarum\Mentions\Formatter\{closure}()
#2 [internal function]: s9e\TextFormatter\Utils::s9e\TextFormatter\{closure}()
#3 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/s9e/text-formatter/src/Utils.php(120): preg_replace_callback()
#4 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/mentions/src/Formatter/FormatPostMentions.php(75): s9e\TextFormatter\Utils::replaceAttributes()
#5 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/core/src/Foundation/ContainerUtil.php(30): Flarum\Mentions\Formatter\FormatPostMentions->__invoke()
#6 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/core/src/Formatter/Formatter.php(121): Flarum\Foundation\ContainerUtil::Flarum\Foundation\{closure}()
#7 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/core/src/Post/CommentPost.php(176): Flarum\Formatter\Formatter->render()
#8 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/core/src/Api/Serializer/BasicPostSerializer.php(63): Flarum\Post\CommentPost->formatContent()
#9 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/core/src/Api/Serializer/PostSerializer.php(21): Flarum\Api\Serializer\BasicPostSerializer->getDefaultAttributes()
#10 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/core/src/Api/Serializer/AbstractSerializer.php(88): Flarum\Api\Serializer\PostSerializer->getDefaultAttributes()
#11 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/sycho/json-api/src/Resource.php(183): Flarum\Api\Serializer\AbstractSerializer->getAttributes()
#12 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/sycho/json-api/src/Resource.php(81): Tobscure\JsonApi\Resource->getAttributes()
#13 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/sycho/json-api/src/Document.php(194): Tobscure\JsonApi\Resource->toArray()
#14 [internal function]: Tobscure\JsonApi\Document->Tobscure\JsonApi\{closure}()
#15 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/sycho/json-api/src/Document.php(193): array_map()
#16 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/sycho/json-api/src/Document.php(232): Tobscure\JsonApi\Document->toArray()
#17 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/core/src/Api/JsonApiResponse.php(27): Tobscure\JsonApi\Document->jsonSerialize()
#18 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(139): Flarum\Api\JsonApiResponse->__construct()
#19 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/core/src/Http/RouteHandlerFactory.php(41): Flarum\Api\Controller\AbstractSerializeController->handle()
#20 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}()
#21 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ExecuteRoute->process()
#22 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flamarkt/taxonomies/src/Middlewares/NestedArrayFilterToJSON.php(29): Laminas\Stratigility\Next->handle()
#23 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flamarkt\Taxonomies\Middlewares\NestedArrayFilterToJSON->process()
#24 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/core/src/Api/Middleware/ThrottleApi.php(33): Laminas\Stratigility\Next->handle()
#25 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Api\Middleware\ThrottleApi->process()
#26 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(36): Laminas\Stratigility\Next->handle()
#27 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\CheckCsrfToken->process()
#28 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(69): Laminas\Stratigility\Next->handle()
#29 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ResolveRoute->process()
#30 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Laminas\Stratigility\Next->handle()
#31 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\SetLocale->process()
#32 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(58): Laminas\Stratigility\Next->handle()
#33 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\AuthenticateWithHeader->process()
#34 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(31): Laminas\Stratigility\Next->handle()
#35 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\AuthenticateWithSession->process()
#36 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Laminas\Stratigility\Next->handle()
#37 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\RememberFromCookie->process()
#38 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle()
#39 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\StartSession->process()
#40 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\Stratigility\Next->handle()
#41 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Api\Middleware\FakeHttpMethods->process()
#42 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle()
#43 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ParseJsonBody->process()
#44 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle()
#45 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\HandleErrors->process()
#46 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/core/src/Http/Middleware/InjectActorReference.php(25): Laminas\Stratigility\Next->handle()
#47 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\InjectActorReference->process()
#48 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(75): Laminas\Stratigility\Next->handle()
#49 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process()
#50 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Middlewares\RequestHandler->process()
#51 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/middlewares/base-path-router/src/BasePathRouter.php(101): Laminas\Stratigility\Next->handle()
#52 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Middlewares\BasePathRouter->process()
#53 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(36): Laminas\Stratigility\Next->handle()
#54 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Laminas\Stratigility\Middleware\OriginalMessages->process()
#55 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/middlewares/base-path/src/BasePath.php(73): Laminas\Stratigility\Next->handle()
#56 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Middlewares\BasePath->process()
#57 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/core/src/Http/Middleware/ProcessIp.php(24): Laminas\Stratigility\Next->handle()
#58 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/laminas/laminas-stratigility/src/Next.php(49): Flarum\Http\Middleware\ProcessIp->process()
#59 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(75): Laminas\Stratigility\Next->handle()
#60 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(64): Laminas\Stratigility\MiddlewarePipe->process()
#61 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(73): Laminas\Stratigility\MiddlewarePipe->handle()
#62 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/vendor/flarum/core/src/Http/Server.php(45): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#63 /www/wwwroot/www.xn--fmrv2rkpbv8uymm.com/public/index.php(26): Flarum\Http\Server->listen()
#64 {main}