PHP 7.4
Flarum 0.1.0-beta.16
搜索报错:
[2021-04-21 17:48:42] flarum.ERROR: TypeError: Argument 1 passed to Flarum\Api\Controller\ListDiscussionsController::__construct() must be an instance of Flarum\Discussion\Filter\DiscussionFilterer, instance of Flarum\Discussion\Search\DiscussionSearcher given, called in /www/wwwroot/xxx/vendor/jjandxa/flarum-ext-chinese-search/src/Controller/XunSearchController.php on line 29 and defined in /www/wwwroot/xxx/vendor/flarum/core/src/Api/Controller/ListDiscussionsController.php:76
Stack trace:
#0 /www/wwwroot/xxx/vendor/jjandxa/flarum-ext-chinese-search/src/Controller/XunSearchController.php(29): Flarum\Api\Controller\ListDiscussionsController->__construct()
#1 [internal function]: Plugin\XunSearch\Controller\XunSearchController->__construct()
#2 /www/wwwroot/xxx/vendor/illuminate/container/Container.php(877): ReflectionClass->newInstanceArgs()
#3 /www/wwwroot/xxx/vendor/illuminate/container/Container.php(714): Illuminate\Container\Container->build()
#4 /www/wwwroot/xxx/vendor/illuminate/container/Container.php(652): Illuminate\Container\Container->resolve()
#5 /www/wwwroot/xxx/vendor/flarum/core/src/Http/RouteHandlerFactory.php(74): Illuminate\Container\Container->make()
#6 /www/wwwroot/xxx/vendor/flarum/core/src/Http/RouteHandlerFactory.php(34): Flarum\Http\RouteHandlerFactory->resolveController()
#7 /www/wwwroot/xxx/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}()
#8 /www/wwwroot/xxx/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ExecuteRoute->process()
#9 /www/wwwroot/xxx/vendor/flarum/core/src/Api/Middleware/ThrottleApi.php(33): Laminas\Stratigility\Next->handle()
#10 /www/wwwroot/xxx/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Api\Middleware\ThrottleApi->process()
#11 /www/wwwroot/xxx/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(36): Laminas\Stratigility\Next->handle()
#12 /www/wwwroot/xxx/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\CheckCsrfToken->process()
#13 /www/wwwroot/xxx/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(67): Laminas\Stratigility\Next->handle()
#14 /www/wwwroot/xxx/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ResolveRoute->process()
#15 /www/wwwroot/xxx/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Laminas\Stratigility\Next->handle()
#16 /www/wwwroot/xxx/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\SetLocale->process()
#17 /www/wwwroot/xxx/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(55): Laminas\Stratigility\Next->handle()
#18 /www/wwwroot/xxx/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\AuthenticateWithHeader->process()
#19 /www/wwwroot/xxx/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Laminas\Stratigility\Next->handle()
#20 /www/wwwroot/xxx/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\AuthenticateWithSession->process()
#21 /www/wwwroot/xxx/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Laminas\Stratigility\Next->handle()
#22 /www/wwwroot/xxx/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\RememberFromCookie->process()
#23 /www/wwwroot/xxx/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle()
#24 /www/wwwroot/xxx/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\StartSession->process()
#25 /www/wwwroot/xxx/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\Stratigility\Next->handle()
#26 /www/wwwroot/xxx/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Api\Middleware\FakeHttpMethods->process()
#27 /www/wwwroot/xxx/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle()
#28 /www/wwwroot/xxx/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ParseJsonBody->process()
#29 /www/wwwroot/xxx/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle()
#30 /www/wwwroot/xxx/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\HandleErrors->process()
#31 /www/wwwroot/xxx/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility\Next->handle()
#32 /www/wwwroot/xxx/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process()
#33 /www/wwwroot/xxx/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\RequestHandler->process()
#34 /www/wwwroot/xxx/vendor/middlewares/base-path-router/src/BasePathRouter.php(101): Laminas\Stratigility\Next->handle()
#35 /www/wwwroot/xxx/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\BasePathRouter->process()
#36 /www/wwwroot/xxx/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(42): Laminas\Stratigility\Next->handle()
#37 /www/wwwroot/xxx/vendor/laminas/laminas-stratigility/src/Next.php(61): Laminas\Stratigility\Middleware\OriginalMessages->process()
#38 /www/wwwroot/xxx/vendor/middlewares/base-path/src/BasePath.php(73): Laminas\Stratigility\Next->handle()
#39 /www/wwwroot/xxx/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\BasePath->process()
#40 /www/wwwroot/xxx/vendor/flarum/core/src/Http/Middleware/ProcessIp.php(24): Laminas\Stratigility\Next->handle()
#41 /www/wwwroot/xxx/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ProcessIp->process()
#42 /www/wwwroot/xxx/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility\Next->handle()
#43 /www/wwwroot/xxx/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\Stratigility\MiddlewarePipe->process()
#44 /www/wwwroot/xxx/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\Stratigility\MiddlewarePipe->handle()
#45 /www/wwwroot/xxx/vendor/flarum/core/src/Http/Server.php(44): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#46 /www/wwwroot/xxx/public/index.php(26): Flarum\Http\Server->listen()
#47 {main}