I seem to get the below when enabling this extension
[2021-07-16 16:09:24] flarum.ERROR: TypeError: Askvortsov\FlarumWarnings\Access\UserPolicy::can(): Argument #3 ($user) must be of type Flarum\User\User, string given in /home/metabullet/public_html/vendor/askvortsov/flarum-moderator-warnings/src/Access/UserPolicy.php:26
Stack trace:
#0 [internal function]: Askvortsov\FlarumWarnings\Access\UserPolicy->can()
#1 /home/metabullet/public_html/vendor/flarum/core/src/User/Access/AbstractPolicy.php(61): call_user_func_array()
#2 /home/metabullet/public_html/vendor/flarum/core/src/User/Access/Gate.php(78): Flarum\User\Access\AbstractPolicy->checkAbility()
#3 /home/metabullet/public_html/vendor/flarum/core/src/User/User.php(775): Flarum\User\Access\Gate->allows()
#4 /home/metabullet/public_html/vendor/clarkwinkelmann/flarum-ext-shadow-ban/src/Scope/ViewUser.php(21): Flarum\User\User->can()
#5 /home/metabullet/public_html/vendor/flarum/core/src/Foundation/ContainerUtil.php(30): ClarkWinkelmann\ShadowBan\Scope\ViewUser->__invoke()
#6 /home/metabullet/public_html/vendor/flarum/core/src/Database/ScopeVisibilityTrait.php(48): Flarum\Foundation\ContainerUtil::Flarum\Foundation\{closure}()
#7 /home/metabullet/public_html/vendor/illuminate/database/Eloquent/Model.php(1393): Flarum\User\User->scopeWhereVisibleTo()
#8 /home/metabullet/public_html/vendor/illuminate/database/Eloquent/Builder.php(1226): Illuminate\Database\Eloquent\Model->callNamedScope()
#9 /home/metabullet/public_html/vendor/illuminate/database/Eloquent/Builder.php(1207): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}()
#10 /home/metabullet/public_html/vendor/illuminate/database/Eloquent/Builder.php(1225): Illuminate\Database\Eloquent\Builder->callScope()
#11 /home/metabullet/public_html/vendor/illuminate/database/Eloquent/Builder.php(1646): Illuminate\Database\Eloquent\Builder->callNamedScope()
#12 /home/metabullet/public_html/vendor/flarum/core/src/User/UserRepository.php(127): Illuminate\Database\Eloquent\Builder->__call()
#13 /home/metabullet/public_html/vendor/flarum/core/src/User/UserRepository.php(40): Flarum\User\UserRepository->scopeVisibleTo()
#14 /home/metabullet/public_html/vendor/flarum/core/src/Api/Controller/ShowUserController.php(65): Flarum\User\UserRepository->findOrFail()
#15 /home/metabullet/public_html/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(110): Flarum\Api\Controller\ShowUserController->data()
#16 /home/metabullet/public_html/vendor/flarum/core/src/Http/RouteHandlerFactory.php(41): Flarum\Api\Controller\AbstractSerializeController->handle()
#17 /home/metabullet/public_html/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}()
#18 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ExecuteRoute->process()
#19 /home/metabullet/public_html/vendor/flarum/core/src/Api/Middleware/ThrottleApi.php(33): Laminas\Stratigility\Next->handle()
#20 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Api\Middleware\ThrottleApi->process()
#21 /home/metabullet/public_html/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(67): Laminas\Stratigility\Next->handle()
#22 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ResolveRoute->process()
#23 /home/metabullet/public_html/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Laminas\Stratigility\Next->handle()
#24 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\SetLocale->process()
#25 /home/metabullet/public_html/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Laminas\Stratigility\Next->handle()
#26 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\RememberFromCookie->process()
#27 /home/metabullet/public_html/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle()
#28 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\HandleErrors->process()
#29 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(76): Laminas\Stratigility\Next->handle()
#30 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(65): Laminas\Stratigility\MiddlewarePipe->process()
#31 /home/metabullet/public_html/vendor/flarum/core/src/Api/Client.php(144): Laminas\Stratigility\MiddlewarePipe->handle()
#32 /home/metabullet/public_html/vendor/flarum/core/src/Api/Client.php(95): Flarum\Api\Client->send()
#33 /home/metabullet/public_html/vendor/flarum/core/src/Frontend/Content/CorePayload.php(88): Flarum\Api\Client->get()
#34 /home/metabullet/public_html/vendor/flarum/core/src/Frontend/Content/CorePayload.php(57): Flarum\Frontend\Content\CorePayload->getUserApiDocument()
#35 /home/metabullet/public_html/vendor/flarum/core/src/Frontend/Content/CorePayload.php(46): Flarum\Frontend\Content\CorePayload->buildPayload()
#36 /home/metabullet/public_html/vendor/flarum/core/src/Frontend/Frontend.php(62): Flarum\Frontend\Content\CorePayload->__invoke()
#37 /home/metabullet/public_html/vendor/flarum/core/src/Frontend/Frontend.php(54): Flarum\Frontend\Frontend->populate()
#38 /home/metabullet/public_html/vendor/flarum/core/src/Frontend/Controller.php(32): Flarum\Frontend\Frontend->document()
#39 /home/metabullet/public_html/vendor/flarum/core/src/Http/RouteHandlerFactory.php(41): Flarum\Frontend\Controller->handle()
#40 /home/metabullet/public_html/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}()
#41 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ExecuteRoute->process()
#42 /home/metabullet/public_html/vendor/fof/oauth/src/Middleware/ErrorHandler.php(50): Laminas\Stratigility\Next->handle()
#43 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): FoF\OAuth\Middleware\ErrorHandler->process()
#44 /home/metabullet/public_html/vendor/fof/terms/src/Middlewares/RegisterMiddleware.php(48): Laminas\Stratigility\Next->handle()
#45 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): FoF\Terms\Middlewares\RegisterMiddleware->process()
#46 /home/metabullet/public_html/vendor/flarum/core/src/Http/Middleware/ContentTypeOptionsHeader.php(21): Laminas\Stratigility\Next->handle()
#47 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ContentTypeOptionsHeader->process()
#48 /home/metabullet/public_html/vendor/flarum/core/src/Http/Middleware/ReferrerPolicyHeader.php(30): Laminas\Stratigility\Next->handle()
#49 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ReferrerPolicyHeader->process()
#50 /home/metabullet/public_html/vendor/flarum/core/src/Http/Middleware/FlarumPromotionHeader.php(30): Laminas\Stratigility\Next->handle()
#51 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\FlarumPromotionHeader->process()
#52 /home/metabullet/public_html/vendor/flarum/core/src/Http/Middleware/ShareErrorsFromSession.php(57): Laminas\Stratigility\Next->handle()
#53 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ShareErrorsFromSession->process()
#54 /home/metabullet/public_html/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(36): Laminas\Stratigility\Next->handle()
#55 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\CheckCsrfToken->process()
#56 /home/metabullet/public_html/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(67): Laminas\Stratigility\Next->handle()
#57 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ResolveRoute->process()
#58 /home/metabullet/public_html/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Laminas\Stratigility\Next->handle()
#59 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\SetLocale->process()
#60 /home/metabullet/public_html/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(31): Laminas\Stratigility\Next->handle()
#61 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\AuthenticateWithSession->process()
#62 /home/metabullet/public_html/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Laminas\Stratigility\Next->handle()
#63 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\RememberFromCookie->process()
#64 /home/metabullet/public_html/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle()
#65 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\StartSession->process()
#66 /home/metabullet/public_html/vendor/flarum/core/src/Http/Middleware/CollectGarbage.php(46): Laminas\Stratigility\Next->handle()
#67 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\CollectGarbage->process()
#68 /home/metabullet/public_html/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle()
#69 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ParseJsonBody->process()
#70 /home/metabullet/public_html/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle()
#71 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\HandleErrors->process()
#72 /home/metabullet/public_html/vendor/flarum/core/src/Http/Middleware/InjectActorReference.php(25): Laminas\Stratigility\Next->handle()
#73 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\InjectActorReference->process()
#74 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(76): Laminas\Stratigility\Next->handle()
#75 /home/metabullet/public_html/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process()
#76 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Middlewares\RequestHandler->process()
#77 /home/metabullet/public_html/vendor/middlewares/base-path-router/src/BasePathRouter.php(101): Laminas\Stratigility\Next->handle()
#78 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Middlewares\BasePathRouter->process()
#79 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(36): Laminas\Stratigility\Next->handle()
#80 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Laminas\Stratigility\Middleware\OriginalMessages->process()
#81 /home/metabullet/public_html/vendor/middlewares/base-path/src/BasePath.php(73): Laminas\Stratigility\Next->handle()
#82 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Middlewares\BasePath->process()
#83 /home/metabullet/public_html/vendor/flarum/core/src/Http/Middleware/ProcessIp.php(24): Laminas\Stratigility\Next->handle()
#84 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ProcessIp->process()
#85 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(76): Laminas\Stratigility\Next->handle()
#86 /home/metabullet/public_html/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(65): Laminas\Stratigility\MiddlewarePipe->process()
#87 /home/metabullet/public_html/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\Stratigility\MiddlewarePipe->handle()
#88 /home/metabullet/public_html/vendor/flarum/core/src/Http/Server.php(44): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#89 /home/metabullet/public_html/index.php(26): Flarum\Http\Server->listen()
#90 {main}
Any ideas ?
Thanks