[deleted]
Hello,
after registering second "dummy" user (for testing purposes), and when tried to make/create new discussion, my flarum forum went down.
This is from log:
flarum.ERROR: TypeError: Argument 3 passed to FoF\Byobu\Api\DiscussionPermissionAttributes::__invoke() must be of the type array, null given, called in /home/xxx/xxx/vendor/flarum/core/src/Foundation/ContainerUtil.php on line 30 and defined in /home/xxx/xxx/vendor/fof/byobu/src/Api/DiscussionPermissionAttributes.php:26
Stack trace:
#0 /home/xxx/xxx/vendor/flarum/core/src/Foundation/ContainerUtil.php(30): FoF\Byobu\Api\DiscussionPermissionAttributes->__invoke(Object(Flarum\Api\Serializer\DiscussionSerializer), Object(Flarum\Discussion\Discussion), NULL)
#1 /home/xxx/xxx/vendor/flarum/core/src/Api/Serializer/AbstractSerializer.php(102): Flarum\Foundation\ContainerUtil::Flarum\Foundation\{closure}(Object(Flarum\Api\Serializer\DiscussionSerializer), Object(Flarum\Discussion\Discussion), NULL)
#2 /home/xxx/xxx/vendor/tobscure/json-api/src/Resource.php(169): Flarum\Api\Serializer\AbstractSerializer->getAttributes(Object(Flarum\Discussion\Discussion), NULL)
#3 /home/xxx/xxx/vendor/tobscure/json-api/src/Resource.php(75): Tobscure\JsonApi\Resource->getAttributes()
#4 /home/xxx/xxx/vendor/tobscure/json-api/src/Document.php(187): Tobscure\JsonApi\Resource->toArray()
#5 [internal function]: Tobscure\JsonApi\Document->Tobscure\JsonApi\{closure}(Object(Tobscure\JsonApi\Resource))
#6 /home/xxx/xxx/vendor/tobscure/json-api/src/Document.php(186): array_map(Object(Closure), Array)
#7 /home/xxx/xxx/vendor/tobscure/json-api/src/Document.php(224): Tobscure\JsonApi\Document->toArray()
#8 /home/xxx/xxx/vendor/flarum/core/src/Api/JsonApiResponse.php(27): Tobscure\JsonApi\Document->jsonSerialize()
I thougth this was related to FoF\Byobu, removed it, cleared cache, but got the same message only this time it was FoF/Split related.
Any ideas?