SwaggyMacro I am glad it works well for you. But as I said before, it would be good to check in the stack trace which extension was the cause of the problem.
If you check your Flarum logs (in storage/logs/flarum-*.log
) you should see errors like this:
[2023-02-12 21:29:15] flarum.ERROR: RuntimeException: request is "null", falling back to display discussions as unknown. This is probably due to another extension not passing this parameter to "Formatter->render()". See stack trace below. in /var/www/forum.club1.fr/vendor/club-1/flarum-ext-cross-references/src/Formatter/CrossReferencesRenderer.php:66
Stack trace:
#0 /var/www/forum.club1.fr/vendor/flarum/core/src/Foundation/ContainerUtil.php(30): Club1\CrossReferences\Formatter\CrossReferencesRenderer->__invoke()
#1 /var/www/forum.club1.fr/vendor/flarum/core/src/Formatter/Formatter.php(121): Flarum\Foundation\ContainerUtil::Flarum\Foundation\{closure}()
#2 /var/www/forum.club1.fr/vendor/the-turk/flarum-diff/src/Api/Serializers/DiffSerializer.php(265): Flarum\Formatter\Formatter->render()
#3 /var/www/forum.club1.fr/vendor/the-turk/flarum-diff/src/Api/Serializers/DiffSerializer.php(133): TheTurk\Diff\Api\Serializers\DiffSerializer->formatter()
#4 /var/www/forum.club1.fr/vendor/flarum/core/src/Api/Serializer/AbstractSerializer.php(88): TheTurk\Diff\Api\Serializers\DiffSerializer->getDefaultAttributes()
[...]
Here we can see in frame #2
that the call to Flarum\Formatter\Formatter->render()
comes from vendor/the-turk/flarum-diff/src/Api/Serializers/DiffSerializer.php(265)
. And indeed, this call to render()
does not include the third parameter $request
.