我尝试安装这个插件,结果报错了。。。。。。我似乎遇到的麻烦挺多。。。。。。。重新安了几次
POST https://bbs.stkey.top/api/extensions/fof-best-answer
{
"errors": [
{
"status": "500",
"code": "unknown",
"detail": "PDOException: SQLSTATE[23000]: Integrity constraint violation: 1022 Can't write; duplicate key in table '#sql-b90_5f' in /www/wwwroot/bbs.stkey.top/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:121\nStack trace:\n#0 /www/wwwroot/bbs.stkey.top/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(121): PDOStatement->execute(NULL)\n#1 /www/wwwroot/bbs.stkey.top/vendor/illuminate/database/Connection.php(458): Doctrine\\DBAL\\Driver\\PDOStatement->execute()\n#2 /www/wwwroot/bbs.stkey.top/vendor/illuminate/database/Connection.php(657): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('alter table `di...', Array)\n#3 /www/wwwroot/bbs.stkey.top/vendor/illuminate/database/Connection.php(624): Illuminate\\Database\\Connection->runQueryCallback('alter table `di...', Array, Object(Closure))\n#4 /www/wwwroot/bbs.stkey.top/vendor/illuminate/database/Connection.php(459): Illuminate\\Database\\Connection->run('alter table `di...', Array, Object(Closure))\n#5 /www/wwwroot/bbs.stkey.top/vendor/illuminate/database/Schema/Blueprint.php(97): Illuminate\\Database\\Connection->statement('alter table `di...')\n#6 /www/wwwroot/bbs.stkey.top/vendor/illuminate/database/Schema/Builder.php(264): Illuminate\\Database\\Schema\\Blueprint->build(Object(Illuminate\\Database\\MySqlConnection), Object(Illuminate\\Database\\Schema\\Grammars\\MySqlGrammar))\n#7 /www/wwwroot/bbs.stkey.top/vendor/illuminate/database/Schema/Builder.php(149): Illuminate\\Database\\Schema\\Builder->build(Object(Illuminate\\Database\\Schema\\Blueprint))\n#8 /www/wwwroot/bbs.stkey.top/vendor/fof/best-answer/migrations/2019_11_04_000002_add_foreign_keys_to_best_anwer_columns.php(35): Illuminate\\Database\\Schema\\Builder->table('discussions', Object(Closure))\n#9 [internal function]: Illuminate\\Filesystem\\Filesystem->{closure}(Object(Illuminate\\Database\\Schema\\MySqlBuilder))\n#10 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Database/Migrator.php(197): call_user_func(Object(Closure), Object(Illuminate\\Database\\Schema\\MySqlBuilder))\n#11 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Database/Migrator.php(128): Flarum\\Database\\Migrator->runClosureMigration(Array)\n#12 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Database/Migrator.php(111): Flarum\\Database\\Migrator->runUp('/www/wwwroot/bb...', '2019_11_04_0000...', Object(Flarum\\Extension\\Extension))\n#13 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Database/Migrator.php(85): Flarum\\Database\\Migrator->runMigrationList('/www/wwwroot/bb...', Array, Object(Flarum\\Extension\\Extension))\n#14 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Extension/Extension.php(352): Flarum\\Database\\Migrator->run('/www/wwwroot/bb...', Object(Flarum\\Extension\\Extension))\n#15 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Extension/ExtensionManager.php(234): Flarum\\Extension\\Extension->migrate(Object(Flarum\\Database\\Migrator), 'up')\n#16 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Extension/ExtensionManager.php(127): Flarum\\Extension\\ExtensionManager->migrate(Object(Flarum\\Extension\\Extension))\n#17 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Api/Controller/UpdateExtensionController.php(48): Flarum\\Extension\\ExtensionManager->enable('fof-best-answer')\n#18 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\\Api\\Controller\\UpdateExtensionController->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#19 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php(65): Flarum\\Http\\RouteHandlerFactory->Flarum\\Http\\{closure}(Object(Laminas\\Diactoros\\ServerRequest), Array)\n#20 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\DispatchRoute->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Closure))\n#21 /www/wwwroot/bbs.stkey.top/vendor/fof/terms/src/Middlewares/RegisterMiddleware.php(54): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#22 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): FoF\\Terms\\Middlewares\\RegisterMiddleware->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#23 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#24 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\SetLocale->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#25 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(31): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#26 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\CheckCsrfToken->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#27 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(55): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#28 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithHeader->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#29 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#30 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithSession->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#31 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(51): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#32 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\RememberFromCookie->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#33 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#34 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\StartSession->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#35 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#36 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Api\\Middleware\\FakeHttpMethods->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#37 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#38 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\ParseJsonBody->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#39 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#40 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\HandleErrors->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#41 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#42 /www/wwwroot/bbs.stkey.top/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\\Stratigility\\MiddlewarePipe->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#43 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\RequestHandler->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#44 /www/wwwroot/bbs.stkey.top/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#45 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePathRouter->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#46 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(42): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#47 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Laminas\\Stratigility\\Middleware\\OriginalMessages->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#48 /www/wwwroot/bbs.stkey.top/vendor/middlewares/base-path/src/BasePath.php(53): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#49 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePath->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#50 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#51 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\\Stratigility\\MiddlewarePipe->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\EmptyPipelineHandler))\n#52 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\\Stratigility\\MiddlewarePipe->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#53 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Server.php(42): Laminas\\HttpHandlerRunner\\RequestHandlerRunner->run()\n#54 /www/wwwroot/bbs.stkey.top/public/index.php(22): Flarum\\Http\\Server->listen()\n#55 {main}\n\nNext Doctrine\\DBAL\\Driver\\PDOException: SQLSTATE[23000]: Integrity constraint violation: 1022 Can't write; duplicate key in table '#sql-b90_5f' in /www/wwwroot/bbs.stkey.top/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:123\nStack trace:\n#0 /www/wwwroot/bbs.stkey.top/vendor/illuminate/database/Connection.php(458): Doctrine\\DBAL\\Driver\\PDOStatement->execute()\n#1 /www/wwwroot/bbs.stkey.top/vendor/illuminate/database/Connection.php(657): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('alter table `di...', Array)\n#2 /www/wwwroot/bbs.stkey.top/vendor/illuminate/database/Connection.php(624): Illuminate\\Database\\Connection->runQueryCallback('alter table `di...', Array, Object(Closure))\n#3 /www/wwwroot/bbs.stkey.top/vendor/illuminate/database/Connection.php(459): Illuminate\\Database\\Connection->run('alter table `di...', Array, Object(Closure))\n#4 /www/wwwroot/bbs.stkey.top/vendor/illuminate/database/Schema/Blueprint.php(97): Illuminate\\Database\\Connection->statement('alter table `di...')\n#5 /www/wwwroot/bbs.stkey.top/vendor/illuminate/database/Schema/Builder.php(264): Illuminate\\Database\\Schema\\Blueprint->build(Object(Illuminate\\Database\\MySqlConnection), Object(Illuminate\\Database\\Schema\\Grammars\\MySqlGrammar))\n#6 /www/wwwroot/bbs.stkey.top/vendor/illuminate/database/Schema/Builder.php(149): Illuminate\\Database\\Schema\\Builder->build(Object(Illuminate\\Database\\Schema\\Blueprint))\n#7 /www/wwwroot/bbs.stkey.top/vendor/fof/best-answer/migrations/2019_11_04_000002_add_foreign_keys_to_best_anwer_columns.php(35): Illuminate\\Database\\Schema\\Builder->table('discussions', Object(Closure))\n#8 [internal function]: Illuminate\\Filesystem\\Filesystem->{closure}(Object(Illuminate\\Database\\Schema\\MySqlBuilder))\n#9 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Database/Migrator.php(197): call_user_func(Object(Closure), Object(Illuminate\\Database\\Schema\\MySqlBuilder))\n#10 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Database/Migrator.php(128): Flarum\\Database\\Migrator->runClosureMigration(Array)\n#11 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Database/Migrator.php(111): Flarum\\Database\\Migrator->runUp('/www/wwwroot/bb...', '2019_11_04_0000...', Object(Flarum\\Extension\\Extension))\n#12 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Database/Migrator.php(85): Flarum\\Database\\Migrator->runMigrationList('/www/wwwroot/bb...', Array, Object(Flarum\\Extension\\Extension))\n#13 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Extension/Extension.php(352): Flarum\\Database\\Migrator->run('/www/wwwroot/bb...', Object(Flarum\\Extension\\Extension))\n#14 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Extension/ExtensionManager.php(234): Flarum\\Extension\\Extension->migrate(Object(Flarum\\Database\\Migrator), 'up')\n#15 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Extension/ExtensionManager.php(127): Flarum\\Extension\\ExtensionManager->migrate(Object(Flarum\\Extension\\Extension))\n#16 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Api/Controller/UpdateExtensionController.php(48): Flarum\\Extension\\ExtensionManager->enable('fof-best-answer')\n#17 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\\Api\\Controller\\UpdateExtensionController->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#18 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php(65): Flarum\\Http\\RouteHandlerFactory->Flarum\\Http\\{closure}(Object(Laminas\\Diactoros\\ServerRequest), Array)\n#19 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\DispatchRoute->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Closure))\n#20 /www/wwwroot/bbs.stkey.top/vendor/fof/terms/src/Middlewares/RegisterMiddleware.php(54): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#21 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): FoF\\Terms\\Middlewares\\RegisterMiddleware->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#22 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#23 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\SetLocale->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#24 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(31): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#25 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\CheckCsrfToken->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#26 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(55): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#27 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithHeader->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#28 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#29 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithSession->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#30 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(51): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#31 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\RememberFromCookie->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#32 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#33 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\StartSession->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#34 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#35 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Api\\Middleware\\FakeHttpMethods->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#36 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#37 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\ParseJsonBody->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#38 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#39 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\HandleErrors->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#40 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#41 /www/wwwroot/bbs.stkey.top/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\\Stratigility\\MiddlewarePipe->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#42 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\RequestHandler->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#43 /www/wwwroot/bbs.stkey.top/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#44 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePathRouter->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#45 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(42): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#46 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Laminas\\Stratigility\\Middleware\\OriginalMessages->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#47 /www/wwwroot/bbs.stkey.top/vendor/middlewares/base-path/src/BasePath.php(53): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#48 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePath->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#49 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#50 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\\Stratigility\\MiddlewarePipe->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\EmptyPipelineHandler))\n#51 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\\Stratigility\\MiddlewarePipe->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#52 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Server.php(42): Laminas\\HttpHandlerRunner\\RequestHandlerRunner->run()\n#53 /www/wwwroot/bbs.stkey.top/public/index.php(22): Flarum\\Http\\Server->listen()\n#54 {main}\n\nNext Illuminate\\Database\\QueryException: SQLSTATE[23000]: Integrity constraint violation: 1022 Can't write; duplicate key in table '#sql-b90_5f' (SQL: alter table `discussions` add constraint `discussions_best_answer_post_id_foreign` foreign key (`best_answer_post_id`) references `posts` (`id`) on delete set null) in /www/wwwroot/bbs.stkey.top/vendor/illuminate/database/Connection.php:664\nStack trace:\n#0 /www/wwwroot/bbs.stkey.top/vendor/illuminate/database/Connection.php(624): Illuminate\\Database\\Connection->runQueryCallback('alter table `di...', Array, Object(Closure))\n#1 /www/wwwroot/bbs.stkey.top/vendor/illuminate/database/Connection.php(459): Illuminate\\Database\\Connection->run('alter table `di...', Array, Object(Closure))\n#2 /www/wwwroot/bbs.stkey.top/vendor/illuminate/database/Schema/Blueprint.php(97): Illuminate\\Database\\Connection->statement('alter table `di...')\n#3 /www/wwwroot/bbs.stkey.top/vendor/illuminate/database/Schema/Builder.php(264): Illuminate\\Database\\Schema\\Blueprint->build(Object(Illuminate\\Database\\MySqlConnection), Object(Illuminate\\Database\\Schema\\Grammars\\MySqlGrammar))\n#4 /www/wwwroot/bbs.stkey.top/vendor/illuminate/database/Schema/Builder.php(149): Illuminate\\Database\\Schema\\Builder->build(Object(Illuminate\\Database\\Schema\\Blueprint))\n#5 /www/wwwroot/bbs.stkey.top/vendor/fof/best-answer/migrations/2019_11_04_000002_add_foreign_keys_to_best_anwer_columns.php(35): Illuminate\\Database\\Schema\\Builder->table('discussions', Object(Closure))\n#6 [internal function]: Illuminate\\Filesystem\\Filesystem->{closure}(Object(Illuminate\\Database\\Schema\\MySqlBuilder))\n#7 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Database/Migrator.php(197): call_user_func(Object(Closure), Object(Illuminate\\Database\\Schema\\MySqlBuilder))\n#8 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Database/Migrator.php(128): Flarum\\Database\\Migrator->runClosureMigration(Array)\n#9 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Database/Migrator.php(111): Flarum\\Database\\Migrator->runUp('/www/wwwroot/bb...', '2019_11_04_0000...', Object(Flarum\\Extension\\Extension))\n#10 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Database/Migrator.php(85): Flarum\\Database\\Migrator->runMigrationList('/www/wwwroot/bb...', Array, Object(Flarum\\Extension\\Extension))\n#11 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Extension/Extension.php(352): Flarum\\Database\\Migrator->run('/www/wwwroot/bb...', Object(Flarum\\Extension\\Extension))\n#12 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Extension/ExtensionManager.php(234): Flarum\\Extension\\Extension->migrate(Object(Flarum\\Database\\Migrator), 'up')\n#13 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Extension/ExtensionManager.php(127): Flarum\\Extension\\ExtensionManager->migrate(Object(Flarum\\Extension\\Extension))\n#14 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Api/Controller/UpdateExtensionController.php(48): Flarum\\Extension\\ExtensionManager->enable('fof-best-answer')\n#15 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\\Api\\Controller\\UpdateExtensionController->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#16 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php(65): Flarum\\Http\\RouteHandlerFactory->Flarum\\Http\\{closure}(Object(Laminas\\Diactoros\\ServerRequest), Array)\n#17 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\DispatchRoute->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Closure))\n#18 /www/wwwroot/bbs.stkey.top/vendor/fof/terms/src/Middlewares/RegisterMiddleware.php(54): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#19 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): FoF\\Terms\\Middlewares\\RegisterMiddleware->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#20 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#21 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\SetLocale->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#22 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(31): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#23 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\CheckCsrfToken->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#24 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(55): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#25 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithHeader->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#26 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#27 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithSession->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#28 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(51): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#29 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\RememberFromCookie->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#30 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#31 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\StartSession->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#32 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#33 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Api\\Middleware\\FakeHttpMethods->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#34 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#35 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\ParseJsonBody->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#36 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#37 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\HandleErrors->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#38 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#39 /www/wwwroot/bbs.stkey.top/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\\Stratigility\\MiddlewarePipe->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#40 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\RequestHandler->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#41 /www/wwwroot/bbs.stkey.top/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#42 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePathRouter->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#43 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(42): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#44 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Laminas\\Stratigility\\Middleware\\OriginalMessages->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#45 /www/wwwroot/bbs.stkey.top/vendor/middlewares/base-path/src/BasePath.php(53): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#46 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePath->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#47 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#48 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\\Stratigility\\MiddlewarePipe->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\EmptyPipelineHandler))\n#49 /www/wwwroot/bbs.stkey.top/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\\Stratigility\\MiddlewarePipe->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#50 /www/wwwroot/bbs.stkey.top/vendor/flarum/core/src/Http/Server.php(42): Laminas\\HttpHandlerRunner\\RequestHandlerRunner->run()\n#51 /www/wwwroot/bbs.stkey.top/public/index.php(22): Flarum\\Http\\Server->listen()\n#52 {main}"
}
]
}