luceos Thank you very much for your reply. This server has been running perfectly from beta14 to beta16. We found this problem after upgrading to 1.0.0. This is the request log in storage/logs
today. Of course, the password of the log has been replaced. I hope it can help you. I'll check other reasons or reset it. The importance of backup 🤣
[2021-06-02 13:53:27] flarum.ERROR: PDOException: SQLSTATE[HY000] [2002] Connection refused in /www/wwwroot/testt/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:39
Stack trace:
#0 /www/wwwroot/testt/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(39): PDO->__construct('mysql:host=127....', 'flarum_lazypig_...', 'testt', Array)
#1 /www/wwwroot/testt/vendor/illuminate/database/Connectors/Connector.php(67): Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=127....', 'flarum_lazypig_...', 'testt', Array)
#2 /www/wwwroot/testt/vendor/illuminate/database/Connectors/Connector.php(100): Illuminate\Database\Connectors\Connector->createPdoConnection('mysql:host=127....', 'flarum_lazypig_...', 'testt', Array)
#3 /www/wwwroot/testt/vendor/illuminate/database/Connectors/Connector.php(50): Illuminate\Database\Connectors\Connector->tryAgainIfCausedByLostConnection(Object(Doctrine\DBAL\Driver\PDO\Exception), 'mysql:host=127....', 'flarum_lazypig_...', 'testt', Array)
#4 /www/wwwroot/testt/vendor/illuminate/database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection('mysql:host=127....', Array, Array)
#5 /www/wwwroot/testt/vendor/illuminate/database/Connectors/ConnectionFactory.php(184): Illuminate\Database\Connectors\MySqlConnector->connect(Array)
#6 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()
#7 /www/wwwroot/testt/vendor/illuminate/database/Connection.php(956): call_user_func(Object(Closure))
#8 /www/wwwroot/testt/vendor/illuminate/database/Connection.php(991): Illuminate\Database\Connection->getPdo()
#9 /www/wwwroot/testt/vendor/illuminate/database/Connection.php(419): Illuminate\Database\Connection->getReadPdo()
#10 /www/wwwroot/testt/vendor/illuminate/database/Connection.php(345): Illuminate\Database\Connection->getPdoForSelect(true)
#11 /www/wwwroot/testt/vendor/illuminate/database/Connection.php(678): Illuminate\Database\Connection->Illuminate\Database\{closure}('(select `flarum...', Array)
#12 /www/wwwroot/testt/vendor/illuminate/database/Connection.php(759): Illuminate\Database\Connection->runQueryCallback('(select `flarum...', Array, Object(Closure))
#13 /www/wwwroot/testt/vendor/illuminate/database/Connection.php(739): Illuminate\Database\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\Database\QueryException), '(select `flarum...', Array, Object(Closure))
#14 /www/wwwroot/testt/vendor/illuminate/database/Connection.php(648): Illuminate\Database\Connection->handleQueryException(Object(Illuminate\Database\QueryException), '(select `flarum...', Array, Object(Closure))
#15 /www/wwwroot/testt/vendor/illuminate/database/Connection.php(353): Illuminate\Database\Connection->run('(select `flarum...', Array, Object(Closure))
#16 /www/wwwroot/testt/vendor/illuminate/database/Query/Builder.php(2351): Illuminate\Database\Connection->select('(select `flarum...', Array, true)
#17 /www/wwwroot/testt/vendor/illuminate/database/Query/Builder.php(2339): Illuminate\Database\Query\Builder->runSelect()
#18 /www/wwwroot/testt/vendor/illuminate/database/Query/Builder.php(2905): Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure}()
#19 /www/wwwroot/testt/vendor/illuminate/database/Query/Builder.php(2340): Illuminate\Database\Query\Builder->onceWithColumns(Array, Object(Closure))
#20 /www/wwwroot/testt/vendor/illuminate/database/Eloquent/Builder.php(604): Illuminate\Database\Query\Builder->get(Array)
#21 /www/wwwroot/testt/vendor/illuminate/database/Eloquent/Builder.php(588): Illuminate\Database\Eloquent\Builder->getModels(Array)
#22 /www/wwwroot/testt/vendor/flarum/core/src/Filter/AbstractFilterer.php(79): Illuminate\Database\Eloquent\Builder->get()
#23 /www/wwwroot/testt/vendor/flarum/core/src/Api/Controller/ListDiscussionsController.php(102): Flarum\Filter\AbstractFilterer->filter(Object(Flarum\Query\QueryCriteria), 20, 0)
#24 /www/wwwroot/testt/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(110): Flarum\Api\Controller\ListDiscussionsController->data(Object(Laminas\Diactoros\ServerRequest), Object(Tobscure\JsonApi\Document))
#25 /www/wwwroot/testt/vendor/flarum/core/src/Http/RouteHandlerFactory.php(41): Flarum\Api\Controller\AbstractSerializeController->handle(Object(Laminas\Diactoros\ServerRequest))
#26 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}(Object(Laminas\Diactoros\ServerRequest), Array)
#27 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ExecuteRoute->process(Object(Laminas\Diactoros\ServerRequest), Object(Closure))
#28 /www/wwwroot/testt/vendor/flarum/core/src/Api/Middleware/ThrottleApi.php(33): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#29 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Api\Middleware\ThrottleApi->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#30 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(67): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#31 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ResolveRoute->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#32 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#33 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\SetLocale->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#34 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#35 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\RememberFromCookie->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#36 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#37 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\HandleErrors->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#38 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#39 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\Stratigility\MiddlewarePipe->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\EmptyPipelineHandler))
#40 /www/wwwroot/testt/vendor/flarum/core/src/Api/Client.php(144): Laminas\Stratigility\MiddlewarePipe->handle(Object(Laminas\Diactoros\ServerRequest))
#41 /www/wwwroot/testt/vendor/flarum/core/src/Api/Client.php(95): Flarum\Api\Client->send('GET', '/discussions')
#42 /www/wwwroot/testt/vendor/flarum/core/src/Forum/Content/Index.php(119): Flarum\Api\Client->get('/discussions')
#43 /www/wwwroot/testt/vendor/flarum/core/src/Forum/Content/Index.php(84): Flarum\Forum\Content\Index->getApiDocument(Object(Laminas\Diactoros\ServerRequest), Array)
#44 /www/wwwroot/testt/vendor/flarum/core/src/Frontend/Frontend.php(62): Flarum\Forum\Content\Index->__invoke(Object(Flarum\Frontend\Document), Object(Laminas\Diactoros\ServerRequest))
#45 /www/wwwroot/testt/vendor/flarum/core/src/Frontend/Frontend.php(54): Flarum\Frontend\Frontend->populate(Object(Flarum\Frontend\Document), Object(Laminas\Diactoros\ServerRequest))
#46 /www/wwwroot/testt/vendor/flarum/core/src/Frontend/Controller.php(32): Flarum\Frontend\Frontend->document(Object(Laminas\Diactoros\ServerRequest))
#47 /www/wwwroot/testt/vendor/flarum/core/src/Http/RouteHandlerFactory.php(41): Flarum\Frontend\Controller->handle(Object(Laminas\Diactoros\ServerRequest))
#48 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}(Object(Laminas\Diactoros\ServerRequest), Array)
#49 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ExecuteRoute->process(Object(Laminas\Diactoros\ServerRequest), Object(Closure))
#50 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ContentTypeOptionsHeader.php(21): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#51 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ContentTypeOptionsHeader->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#52 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ReferrerPolicyHeader.php(30): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#53 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ReferrerPolicyHeader->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#54 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/FlarumPromotionHeader.php(30): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#55 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\FlarumPromotionHeader->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#56 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ShareErrorsFromSession.php(57): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#57 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ShareErrorsFromSession->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#58 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(36): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#59 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\CheckCsrfToken->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#60 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(67): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#61 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ResolveRoute->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#62 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#63 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\SetLocale->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#64 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(31): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#65 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\AuthenticateWithSession->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#66 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#67 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\RememberFromCookie->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#68 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#69 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\StartSession->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#70 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/CollectGarbage.php(46): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#71 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\CollectGarbage->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#72 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#73 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ParseJsonBody->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#74 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#75 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\HandleErrors->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#76 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/InjectActorReference.php(25): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#77 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\InjectActorReference->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#78 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#79 /www/wwwroot/testt/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#80 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\RequestHandler->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#81 /www/wwwroot/testt/vendor/middlewares/base-path-router/src/BasePathRouter.php(101): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#82 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\BasePathRouter->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#83 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(42): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#84 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Laminas\Stratigility\Middleware\OriginalMessages->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#85 /www/wwwroot/testt/vendor/middlewares/base-path/src/BasePath.php(73): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#86 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\BasePath->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#87 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ProcessIp.php(24): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#88 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ProcessIp->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#89 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#90 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\Stratigility\MiddlewarePipe->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\EmptyPipelineHandler))
#91 /www/wwwroot/testt/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\Stratigility\MiddlewarePipe->handle(Object(Laminas\Diactoros\ServerRequest))
#92 /www/wwwroot/testt/vendor/flarum/core/src/Http/Server.php(44): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#93 /www/wwwroot/testt/index.php(22): Flarum\Http\Server->listen()
#94 {main}
Next Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000] [2002] Connection refused in /www/wwwroot/testt/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18
Stack trace:
#0 /www/wwwroot/testt/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(43): Doctrine\DBAL\Driver\PDO\Exception::new(Object(PDOException))
#1 /www/wwwroot/testt/vendor/illuminate/database/Connectors/Connector.php(67): Doctrine\DBAL\Driver\PDOConnection->__construct('mysql:host=127....', 'flarum_lazypig_...', 'testt', Array)
#2 /www/wwwroot/testt/vendor/illuminate/database/Connectors/Connector.php(100): Illuminate\Database\Connectors\Connector->createPdoConnection('mysql:host=127....', 'flarum_lazypig_...', 'testt', Array)
#3 /www/wwwroot/testt/vendor/illuminate/database/Connectors/Connector.php(50): Illuminate\Database\Connectors\Connector->tryAgainIfCausedByLostConnection(Object(Doctrine\DBAL\Driver\PDO\Exception), 'mysql:host=127....', 'flarum_lazypig_...', 'testt', Array)
#4 /www/wwwroot/testt/vendor/illuminate/database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection('mysql:host=127....', Array, Array)
#5 /www/wwwroot/testt/vendor/illuminate/database/Connectors/ConnectionFactory.php(184): Illuminate\Database\Connectors\MySqlConnector->connect(Array)
#6 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()
#7 /www/wwwroot/testt/vendor/illuminate/database/Connection.php(956): call_user_func(Object(Closure))
#8 /www/wwwroot/testt/vendor/illuminate/database/Connection.php(991): Illuminate\Database\Connection->getPdo()
#9 /www/wwwroot/testt/vendor/illuminate/database/Connection.php(419): Illuminate\Database\Connection->getReadPdo()
#10 /www/wwwroot/testt/vendor/illuminate/database/Connection.php(345): Illuminate\Database\Connection->getPdoForSelect(true)
#11 /www/wwwroot/testt/vendor/illuminate/database/Connection.php(678): Illuminate\Database\Connection->Illuminate\Database\{closure}('(select `flarum...', Array)
#12 /www/wwwroot/testt/vendor/illuminate/database/Connection.php(759): Illuminate\Database\Connection->runQueryCallback('(select `flarum...', Array, Object(Closure))
#13 /www/wwwroot/testt/vendor/illuminate/database/Connection.php(739): Illuminate\Database\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\Database\QueryException), '(select `flarum...', Array, Object(Closure))
#14 /www/wwwroot/testt/vendor/illuminate/database/Connection.php(648): Illuminate\Database\Connection->handleQueryException(Object(Illuminate\Database\QueryException), '(select `flarum...', Array, Object(Closure))
#15 /www/wwwroot/testt/vendor/illuminate/database/Connection.php(353): Illuminate\Database\Connection->run('(select `flarum...', Array, Object(Closure))
#16 /www/wwwroot/testt/vendor/illuminate/database/Query/Builder.php(2351): Illuminate\Database\Connection->select('(select `flarum...', Array, true)
#17 /www/wwwroot/testt/vendor/illuminate/database/Query/Builder.php(2339): Illuminate\Database\Query\Builder->runSelect()
#18 /www/wwwroot/testt/vendor/illuminate/database/Query/Builder.php(2905): Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure}()
#19 /www/wwwroot/testt/vendor/illuminate/database/Query/Builder.php(2340): Illuminate\Database\Query\Builder->onceWithColumns(Array, Object(Closure))
#20 /www/wwwroot/testt/vendor/illuminate/database/Eloquent/Builder.php(604): Illuminate\Database\Query\Builder->get(Array)
#21 /www/wwwroot/testt/vendor/illuminate/database/Eloquent/Builder.php(588): Illuminate\Database\Eloquent\Builder->getModels(Array)
#22 /www/wwwroot/testt/vendor/flarum/core/src/Filter/AbstractFilterer.php(79): Illuminate\Database\Eloquent\Builder->get()
#23 /www/wwwroot/testt/vendor/flarum/core/src/Api/Controller/ListDiscussionsController.php(102): Flarum\Filter\AbstractFilterer->filter(Object(Flarum\Query\QueryCriteria), 20, 0)
#24 /www/wwwroot/testt/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(110): Flarum\Api\Controller\ListDiscussionsController->data(Object(Laminas\Diactoros\ServerRequest), Object(Tobscure\JsonApi\Document))
#25 /www/wwwroot/testt/vendor/flarum/core/src/Http/RouteHandlerFactory.php(41): Flarum\Api\Controller\AbstractSerializeController->handle(Object(Laminas\Diactoros\ServerRequest))
#26 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}(Object(Laminas\Diactoros\ServerRequest), Array)
#27 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ExecuteRoute->process(Object(Laminas\Diactoros\ServerRequest), Object(Closure))
#28 /www/wwwroot/testt/vendor/flarum/core/src/Api/Middleware/ThrottleApi.php(33): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#29 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Api\Middleware\ThrottleApi->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#30 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(67): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#31 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ResolveRoute->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#32 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#33 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\SetLocale->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#34 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#35 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\RememberFromCookie->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#36 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#37 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\HandleErrors->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#38 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#39 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\Stratigility\MiddlewarePipe->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\EmptyPipelineHandler))
#40 /www/wwwroot/testt/vendor/flarum/core/src/Api/Client.php(144): Laminas\Stratigility\MiddlewarePipe->handle(Object(Laminas\Diactoros\ServerRequest))
#41 /www/wwwroot/testt/vendor/flarum/core/src/Api/Client.php(95): Flarum\Api\Client->send('GET', '/discussions')
#42 /www/wwwroot/testt/vendor/flarum/core/src/Forum/Content/Index.php(119): Flarum\Api\Client->get('/discussions')
#43 /www/wwwroot/testt/vendor/flarum/core/src/Forum/Content/Index.php(84): Flarum\Forum\Content\Index->getApiDocument(Object(Laminas\Diactoros\ServerRequest), Array)
#44 /www/wwwroot/testt/vendor/flarum/core/src/Frontend/Frontend.php(62): Flarum\Forum\Content\Index->__invoke(Object(Flarum\Frontend\Document), Object(Laminas\Diactoros\ServerRequest))
#45 /www/wwwroot/testt/vendor/flarum/core/src/Frontend/Frontend.php(54): Flarum\Frontend\Frontend->populate(Object(Flarum\Frontend\Document), Object(Laminas\Diactoros\ServerRequest))
#46 /www/wwwroot/testt/vendor/flarum/core/src/Frontend/Controller.php(32): Flarum\Frontend\Frontend->document(Object(Laminas\Diactoros\ServerRequest))
#47 /www/wwwroot/testt/vendor/flarum/core/src/Http/RouteHandlerFactory.php(41): Flarum\Frontend\Controller->handle(Object(Laminas\Diactoros\ServerRequest))
#48 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}(Object(Laminas\Diactoros\ServerRequest), Array)
#49 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ExecuteRoute->process(Object(Laminas\Diactoros\ServerRequest), Object(Closure))
#50 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ContentTypeOptionsHeader.php(21): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#51 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ContentTypeOptionsHeader->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#52 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ReferrerPolicyHeader.php(30): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#53 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ReferrerPolicyHeader->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#54 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/FlarumPromotionHeader.php(30): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#55 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\FlarumPromotionHeader->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#56 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ShareErrorsFromSession.php(57): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#57 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ShareErrorsFromSession->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#58 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(36): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#59 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\CheckCsrfToken->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#60 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(67): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#61 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ResolveRoute->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#62 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#63 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\SetLocale->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#64 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(31): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#65 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\AuthenticateWithSession->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#66 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#67 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\RememberFromCookie->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#68 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#69 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\StartSession->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#70 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/CollectGarbage.php(46): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#71 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\CollectGarbage->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#72 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#73 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ParseJsonBody->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#74 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#75 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\HandleErrors->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#76 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/InjectActorReference.php(25): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#77 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\InjectActorReference->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#78 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#79 /www/wwwroot/testt/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#80 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\RequestHandler->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#81 /www/wwwroot/testt/vendor/middlewares/base-path-router/src/BasePathRouter.php(101): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#82 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\BasePathRouter->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#83 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(42): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#84 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Laminas\Stratigility\Middleware\OriginalMessages->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#85 /www/wwwroot/testt/vendor/middlewares/base-path/src/BasePath.php(73): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#86 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\BasePath->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#87 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ProcessIp.php(24): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#88 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ProcessIp->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#89 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#90 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\Stratigility\MiddlewarePipe->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\EmptyPipelineHandler))
#91 /www/wwwroot/testt/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\Stratigility\MiddlewarePipe->handle(Object(Laminas\Diactoros\ServerRequest))
#92 /www/wwwroot/testt/vendor/flarum/core/src/Http/Server.php(44): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#93 /www/wwwroot/testt/index.php(22): Flarum\Http\Server->listen()
#94 {main}
Next Illuminate\Database\QueryException: SQLSTATE[HY000] [2002] Connection refused (SQL: (select `flarum_discussions`.* from `flarum_discussions` where (`flarum_discussions`.`id` not in (select `discussion_id` from `flarum_discussion_tag` where `tag_id` not in (select `flarum_tags`.`id` from `flarum_tags` where (`flarum_tags`.`id` in (select `flarum_perm_tags`.`id` from `flarum_tags` as `flarum_perm_tags` where (`flarum_perm_tags`.`is_restricted` = 1 and 0 = 1) or `flarum_perm_tags`.`is_restricted` = 0) and (`flarum_tags`.`parent_id` in (select `flarum_perm_tags`.`id` from `flarum_tags` as `flarum_perm_tags` where (`flarum_perm_tags`.`is_restricted` = 1 and 0 = 1) or `flarum_perm_tags`.`is_restricted` = 0) or `flarum_tags`.`parent_id` is null))))) and (`flarum_discussions`.`is_private` = 0 or (((`flarum_discussions`.`is_approved` = 0 and (`flarum_discussions`.`user_id` = 0 or ((`flarum_discussions`.`id` not in (select `discussion_id` from `flarum_discussion_tag` where `tag_id` not in (select `flarum_tags`.`id` from `flarum_tags` where (`flarum_tags`.`id` in (select `flarum_perm_tags`.`id` from `flarum_tags` as `flarum_perm_tags` where (`flarum_perm_tags`.`is_restricted` = 1 and 0 = 1)) and (`flarum_tags`.`parent_id` in (select `flarum_perm_tags`.`id` from `flarum_tags` as `flarum_perm_tags` where (`flarum_perm_tags`.`is_restricted` = 1 and 0 = 1)) or `flarum_tags`.`parent_id` is null))))) and exists (select * from `flarum_tags` inner join `flarum_discussion_tag` on `flarum_tags`.`id` = `flarum_discussion_tag`.`tag_id` where `flarum_discussions`.`id` = `flarum_discussion_tag`.`discussion_id`))))))) and (`flarum_discussions`.`hidden_at` is null or `flarum_discussions`.`user_id` = 0 or ((`flarum_discussions`.`id` not in (select `discussion_id` from `flarum_discussion_tag` where `tag_id` not in (select `flarum_tags`.`id` from `flarum_tags` where (`flarum_tags`.`id` in (select `flarum_perm_tags`.`id` from `flarum_tags` as `flarum_perm_tags` where (`flarum_perm_tags`.`is_restricted` = 1 and 0 = 1)) and (`flarum_tags`.`parent_id` in (select `flarum_perm_tags`.`id` from `flarum_tags` as `flarum_perm_tags` where (`flarum_perm_tags`.`is_restricted` = 1 and 0 = 1)) or `flarum_tags`.`parent_id` is null))))) and exists (select * from `flarum_tags` inner join `flarum_discussion_tag` on `flarum_tags`.`id` = `flarum_discussion_tag`.`tag_id` where `flarum_discussions`.`id` = `flarum_discussion_tag`.`discussion_id`))) and (`flarum_discussions`.`comment_count` > 0 or `flarum_discussions`.`user_id` = 0 or ((`flarum_discussions`.`id` not in (select `discussion_id` from `flarum_discussion_tag` where `tag_id` not in (select `flarum_tags`.`id` from `flarum_tags` where (`flarum_tags`.`id` in (select `flarum_perm_tags`.`id` from `flarum_tags` as `flarum_perm_tags` where (`flarum_perm_tags`.`is_restricted` = 1 and 0 = 1)) and (`flarum_tags`.`parent_id` in (select `flarum_perm_tags`.`id` from `flarum_tags` as `flarum_perm_tags` where (`flarum_perm_tags`.`is_restricted` = 1 and 0 = 1)) or `flarum_tags`.`parent_id` is null))))) and exists (select * from `flarum_tags` inner join `flarum_discussion_tag` on `flarum_tags`.`id` = `flarum_discussion_tag`.`tag_id` where `flarum_discussions`.`id` = `flarum_discussion_tag`.`discussion_id`))) and `flarum_discussions`.`id` not in (select `discussion_id` from `flarum_discussion_tag` where 0 = 1) and not exists (select 1 from `flarum_discussion_user` where `flarum_discussions`.`id` = `discussion_id` and `user_id` = 0 and `subscription` = ignore) order by `last_posted_at` desc limit 21) union (select `flarum_discussions`.* from `flarum_discussions` where (`flarum_discussions`.`id` not in (select `discussion_id` from `flarum_discussion_tag` where `tag_id` not in (select `flarum_tags`.`id` from `flarum_tags` where (`flarum_tags`.`id` in (select `flarum_perm_tags`.`id` from `flarum_tags` as `flarum_perm_tags` where (`flarum_perm_tags`.`is_restricted` = 1 and 0 = 1) or `flarum_perm_tags`.`is_restricted` = 0) and (`flarum_tags`.`parent_id` in (select `flarum_perm_tags`.`id` from `flarum_tags` as `flarum_perm_tags` where (`flarum_perm_tags`.`is_restricted` = 1 and 0 = 1) or `flarum_perm_tags`.`is_restricted` = 0) or `flarum_tags`.`parent_id` is null))))) and (`flarum_discussions`.`is_private` = 0 or (((`flarum_discussions`.`is_approved` = 0 and (`flarum_discussions`.`user_id` = 0 or ((`flarum_discussions`.`id` not in (select `discussion_id` from `flarum_discussion_tag` where `tag_id` not in (select `flarum_tags`.`id` from `flarum_tags` where (`flarum_tags`.`id` in (select `flarum_perm_tags`.`id` from `flarum_tags` as `flarum_perm_tags` where (`flarum_perm_tags`.`is_restricted` = 1 and 0 = 1)) and (`flarum_tags`.`parent_id` in (select `flarum_perm_tags`.`id` from `flarum_tags` as `flarum_perm_tags` where (`flarum_perm_tags`.`is_restricted` = 1 and 0 = 1)) or `flarum_tags`.`parent_id` is null))))) and exists (select * from `flarum_tags` inner join `flarum_discussion_tag` on `flarum_tags`.`id` = `flarum_discussion_tag`.`tag_id` where `flarum_discussions`.`id` = `flarum_discussion_tag`.`discussion_id`))))))) and (`flarum_discussions`.`hidden_at` is null or `flarum_discussions`.`user_id` = 0 or ((`flarum_discussions`.`id` not in (select `discussion_id` from `flarum_discussion_tag` where `tag_id` not in (select `flarum_tags`.`id` from `flarum_tags` where (`flarum_tags`.`id` in (select `flarum_perm_tags`.`id` from `flarum_tags` as `flarum_perm_tags` where (`flarum_perm_tags`.`is_restricted` = 1 and 0 = 1)) and (`flarum_tags`.`parent_id` in (select `flarum_perm_tags`.`id` from `flarum_tags` as `flarum_perm_tags` where (`flarum_perm_tags`.`is_restricted` = 1 and 0 = 1)) or `flarum_tags`.`parent_id` is null))))) and exists (select * from `flarum_tags` inner join `flarum_discussion_tag` on `flarum_tags`.`id` = `flarum_discussion_tag`.`tag_id` where `flarum_discussions`.`id` = `flarum_discussion_tag`.`discussion_id`))) and (`flarum_discussions`.`comment_count` > 0 or `flarum_discussions`.`user_id` = 0 or ((`flarum_discussions`.`id` not in (select `discussion_id` from `flarum_discussion_tag` where `tag_id` not in (select `flarum_tags`.`id` from `flarum_tags` where (`flarum_tags`.`id` in (select `flarum_perm_tags`.`id` from `flarum_tags` as `flarum_perm_tags` where (`flarum_perm_tags`.`is_restricted` = 1 and 0 = 1)) and (`flarum_tags`.`parent_id` in (select `flarum_perm_tags`.`id` from `flarum_tags` as `flarum_perm_tags` where (`flarum_perm_tags`.`is_restricted` = 1 and 0 = 1)) or `flarum_tags`.`parent_id` is null))))) and exists (select * from `flarum_tags` inner join `flarum_discussion_tag` on `flarum_tags`.`id` = `flarum_discussion_tag`.`tag_id` where `flarum_discussions`.`id` = `flarum_discussion_tag`.`discussion_id`))) and `flarum_discussions`.`id` not in (select `discussion_id` from `flarum_discussion_tag` where 0 = 1) and not exists (select 1 from `flarum_discussion_user` where `flarum_discussions`.`id` = `discussion_id` and `user_id` = 0 and `subscription` = ignore) and `is_sticky` = 1 limit 21) order by is_sticky and not exists (select 1 from `flarum_discussion_user` as `flarum_sticky` where `flarum_sticky`.`discussion_id` = `id` and `flarum_sticky`.`user_id` = 0 and `flarum_sticky`.`last_read_post_number` >= `last_post_number`) and last_posted_at > 0 desc, `last_posted_at` desc limit 21) in /www/wwwroot/testt/vendor/illuminate/database/Connection.php:685
Stack trace:
#0 /www/wwwroot/testt/vendor/illuminate/database/Connection.php(759): Illuminate\Database\Connection->runQueryCallback('(select `flarum...', Array, Object(Closure))
#1 /www/wwwroot/testt/vendor/illuminate/database/Connection.php(739): Illuminate\Database\Connection->tryAgainIfCausedByLostConnection(Object(Illuminate\Database\QueryException), '(select `flarum...', Array, Object(Closure))
#2 /www/wwwroot/testt/vendor/illuminate/database/Connection.php(648): Illuminate\Database\Connection->handleQueryException(Object(Illuminate\Database\QueryException), '(select `flarum...', Array, Object(Closure))
#3 /www/wwwroot/testt/vendor/illuminate/database/Connection.php(353): Illuminate\Database\Connection->run('(select `flarum...', Array, Object(Closure))
#4 /www/wwwroot/testt/vendor/illuminate/database/Query/Builder.php(2351): Illuminate\Database\Connection->select('(select `flarum...', Array, true)
#5 /www/wwwroot/testt/vendor/illuminate/database/Query/Builder.php(2339): Illuminate\Database\Query\Builder->runSelect()
#6 /www/wwwroot/testt/vendor/illuminate/database/Query/Builder.php(2905): Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure}()
#7 /www/wwwroot/testt/vendor/illuminate/database/Query/Builder.php(2340): Illuminate\Database\Query\Builder->onceWithColumns(Array, Object(Closure))
#8 /www/wwwroot/testt/vendor/illuminate/database/Eloquent/Builder.php(604): Illuminate\Database\Query\Builder->get(Array)
#9 /www/wwwroot/testt/vendor/illuminate/database/Eloquent/Builder.php(588): Illuminate\Database\Eloquent\Builder->getModels(Array)
#10 /www/wwwroot/testt/vendor/flarum/core/src/Filter/AbstractFilterer.php(79): Illuminate\Database\Eloquent\Builder->get()
#11 /www/wwwroot/testt/vendor/flarum/core/src/Api/Controller/ListDiscussionsController.php(102): Flarum\Filter\AbstractFilterer->filter(Object(Flarum\Query\QueryCriteria), 20, 0)
#12 /www/wwwroot/testt/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(110): Flarum\Api\Controller\ListDiscussionsController->data(Object(Laminas\Diactoros\ServerRequest), Object(Tobscure\JsonApi\Document))
#13 /www/wwwroot/testt/vendor/flarum/core/src/Http/RouteHandlerFactory.php(41): Flarum\Api\Controller\AbstractSerializeController->handle(Object(Laminas\Diactoros\ServerRequest))
#14 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}(Object(Laminas\Diactoros\ServerRequest), Array)
#15 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ExecuteRoute->process(Object(Laminas\Diactoros\ServerRequest), Object(Closure))
#16 /www/wwwroot/testt/vendor/flarum/core/src/Api/Middleware/ThrottleApi.php(33): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#17 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Api\Middleware\ThrottleApi->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#18 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(67): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#19 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ResolveRoute->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#20 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#21 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\SetLocale->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#22 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#23 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\RememberFromCookie->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#24 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#25 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\HandleErrors->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#26 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#27 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\Stratigility\MiddlewarePipe->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\EmptyPipelineHandler))
#28 /www/wwwroot/testt/vendor/flarum/core/src/Api/Client.php(144): Laminas\Stratigility\MiddlewarePipe->handle(Object(Laminas\Diactoros\ServerRequest))
#29 /www/wwwroot/testt/vendor/flarum/core/src/Api/Client.php(95): Flarum\Api\Client->send('GET', '/discussions')
#30 /www/wwwroot/testt/vendor/flarum/core/src/Forum/Content/Index.php(119): Flarum\Api\Client->get('/discussions')
#31 /www/wwwroot/testt/vendor/flarum/core/src/Forum/Content/Index.php(84): Flarum\Forum\Content\Index->getApiDocument(Object(Laminas\Diactoros\ServerRequest), Array)
#32 /www/wwwroot/testt/vendor/flarum/core/src/Frontend/Frontend.php(62): Flarum\Forum\Content\Index->__invoke(Object(Flarum\Frontend\Document), Object(Laminas\Diactoros\ServerRequest))
#33 /www/wwwroot/testt/vendor/flarum/core/src/Frontend/Frontend.php(54): Flarum\Frontend\Frontend->populate(Object(Flarum\Frontend\Document), Object(Laminas\Diactoros\ServerRequest))
#34 /www/wwwroot/testt/vendor/flarum/core/src/Frontend/Controller.php(32): Flarum\Frontend\Frontend->document(Object(Laminas\Diactoros\ServerRequest))
#35 /www/wwwroot/testt/vendor/flarum/core/src/Http/RouteHandlerFactory.php(41): Flarum\Frontend\Controller->handle(Object(Laminas\Diactoros\ServerRequest))
#36 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http\{closure}(Object(Laminas\Diactoros\ServerRequest), Array)
#37 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ExecuteRoute->process(Object(Laminas\Diactoros\ServerRequest), Object(Closure))
#38 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ContentTypeOptionsHeader.php(21): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#39 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ContentTypeOptionsHeader->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#40 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ReferrerPolicyHeader.php(30): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#41 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ReferrerPolicyHeader->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#42 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/FlarumPromotionHeader.php(30): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#43 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\FlarumPromotionHeader->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#44 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ShareErrorsFromSession.php(57): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#45 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ShareErrorsFromSession->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#46 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(36): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#47 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\CheckCsrfToken->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#48 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(67): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#49 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ResolveRoute->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#50 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#51 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\SetLocale->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#52 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(31): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#53 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\AuthenticateWithSession->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#54 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#55 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\RememberFromCookie->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#56 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#57 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\StartSession->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#58 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/CollectGarbage.php(46): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#59 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\CollectGarbage->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#60 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#61 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ParseJsonBody->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#62 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#63 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\HandleErrors->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#64 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/InjectActorReference.php(25): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#65 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\InjectActorReference->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#66 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#67 /www/wwwroot/testt/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#68 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\RequestHandler->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#69 /www/wwwroot/testt/vendor/middlewares/base-path-router/src/BasePathRouter.php(101): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#70 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\BasePathRouter->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#71 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(42): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#72 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Laminas\Stratigility\Middleware\OriginalMessages->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#73 /www/wwwroot/testt/vendor/middlewares/base-path/src/BasePath.php(73): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#74 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\BasePath->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#75 /www/wwwroot/testt/vendor/flarum/core/src/Http/Middleware/ProcessIp.php(24): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#76 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ProcessIp->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\Next))
#77 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility\Next->handle(Object(Laminas\Diactoros\ServerRequest))
#78 /www/wwwroot/testt/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\Stratigility\MiddlewarePipe->process(Object(Laminas\Diactoros\ServerRequest), Object(Laminas\Stratigility\EmptyPipelineHandler))
#79 /www/wwwroot/testt/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\Stratigility\MiddlewarePipe->handle(Object(Laminas\Diactoros\ServerRequest))
#80 /www/wwwroot/testt/vendor/flarum/core/src/Http/Server.php(44): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#81 /www/wwwroot/testt/index.php(22): Flarum\Http\Server->listen()
#82 {main}