Can someone help me troubleshoot installation? I just updated a forum from beta-10 to beta-11 to beta-12. Along with that I attempted a migration from flagrow/upload
. The extension update didn't seem to take properly. I've since removed both upload extensions and have re-installed fof/upload
. However, when I attempt to activate the extension my admin page hangs on Please Wait… and I receive the message…
Oops! Something went wrong. Please reload the page and try again.
My browser console shows…
api/extensions/fof-upload:1 Failed to load resource: the server responded with a status of 500 ()
My apache error logs don't show any new entries. When I enable debug, I receive the following when attempting activation…
POST https://talk.thedomain.net/api/extensions/fof-upload
{
"errors": [
{
"status": "500",
"code": "unknown",
"detail": "PDOException: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`thedomain_talk`.`#sql-11f9_128`, CONSTRAINT `fwf_fof_upload_downloads_post_id_foreign` FOREIGN KEY (`post_id`) REFERENCES `fwf_posts` (`id`) ON DELETE SET NULL) in /home/thedomain/webapps/thedomain-talk/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:121\nStack trace:\n#0 /home/thedomain/webapps/thedomain-talk/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(121): PDOStatement->execute(NULL)\n#1 /home/thedomain/webapps/thedomain-talk/vendor/illuminate/database/Connection.php(458): Doctrine\\DBAL\\Driver\\PDOStatement->execute()\n#2 /home/thedomain/webapps/thedomain-talk/vendor/illuminate/database/Connection.php(657): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('alter table `fw...', Array)\n#3 /home/thedomain/webapps/thedomain-talk/vendor/illuminate/database/Connection.php(624): Illuminate\\Database\\Connection->runQueryCallback('alter table `fw...', Array, Object(Closure))\n#4 /home/thedomain/webapps/thedomain-talk/vendor/illuminate/database/Connection.php(459): Illuminate\\Database\\Connection->run('alter table `fw...', Array, Object(Closure))\n#5 /home/thedomain/webapps/thedomain-talk/vendor/illuminate/database/Schema/Blueprint.php(97): Illuminate\\Database\\Connection->statement('alter table `fw...')\n#6 /home/thedomain/webapps/thedomain-talk/vendor/illuminate/database/Schema/Builder.php(264): Illuminate\\Database\\Schema\\Blueprint->build(Object(Illuminate\\Database\\MySqlConnection), Object(Illuminate\\Database\\Schema\\Grammars\\MySqlGrammar))\n#7 /home/thedomain/webapps/thedomain-talk/vendor/illuminate/database/Schema/Builder.php(149): Illuminate\\Database\\Schema\\Builder->build(Object(Illuminate\\Database\\Schema\\Blueprint))\n#8 /home/thedomain/webapps/thedomain-talk/vendor/fof/upload/migrations/2020_02_06_07_alter_downloads_add_post_constraint.php(13): Illuminate\\Database\\Schema\\Builder->table('fof_upload_down...', Object(Closure))\n#9 [internal function]: Illuminate\\Filesystem\\Filesystem->{closure}(Object(Illuminate\\Database\\Schema\\MySqlBuilder))\n#10 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Database/Migrator.php(197): call_user_func(Object(Closure), Object(Illuminate\\Database\\Schema\\MySqlBuilder))\n#11 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Database/Migrator.php(128): Flarum\\Database\\Migrator->runClosureMigration(Array)\n#12 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Database/Migrator.php(111): Flarum\\Database\\Migrator->runUp('/home/thedomain/we...', '2020_02_06_07_a...', Object(Flarum\\Extension\\Extension))\n#13 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Database/Migrator.php(85): Flarum\\Database\\Migrator->runMigrationList('/home/thedomain/we...', Array, Object(Flarum\\Extension\\Extension))\n#14 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Extension/Extension.php(352): Flarum\\Database\\Migrator->run('/home/thedomain/we...', Object(Flarum\\Extension\\Extension))\n#15 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Extension/ExtensionManager.php(234): Flarum\\Extension\\Extension->migrate(Object(Flarum\\Database\\Migrator), 'up')\n#16 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Extension/ExtensionManager.php(127): Flarum\\Extension\\ExtensionManager->migrate(Object(Flarum\\Extension\\Extension))\n#17 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Api/Controller/UpdateExtensionController.php(48): Flarum\\Extension\\ExtensionManager->enable('fof-upload')\n#18 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\\Api\\Controller\\UpdateExtensionController->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#19 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php(65): Flarum\\Http\\RouteHandlerFactory->Flarum\\Http\\{closure}(Object(Laminas\\Diactoros\\ServerRequest), Array)\n#20 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\DispatchRoute->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Closure))\n#21 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#22 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\SetLocale->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#23 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(31): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#24 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\CheckCsrfToken->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#25 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(55): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#26 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithHeader->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#27 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#28 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithSession->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#29 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(51): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#30 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\RememberFromCookie->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#31 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#32 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\StartSession->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#33 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#34 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Api\\Middleware\\FakeHttpMethods->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#35 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#36 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\ParseJsonBody->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#37 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#38 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\HandleErrors->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#39 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#40 /home/thedomain/webapps/thedomain-talk/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\\Stratigility\\MiddlewarePipe->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#41 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\RequestHandler->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#42 /home/thedomain/webapps/thedomain-talk/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#43 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePathRouter->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#44 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(42): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#45 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Laminas\\Stratigility\\Middleware\\OriginalMessages->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#46 /home/thedomain/webapps/thedomain-talk/vendor/middlewares/base-path/src/BasePath.php(53): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#47 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePath->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#48 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#49 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\\Stratigility\\MiddlewarePipe->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\EmptyPipelineHandler))\n#50 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\\Stratigility\\MiddlewarePipe->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#51 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Server.php(42): Laminas\\HttpHandlerRunner\\RequestHandlerRunner->run()\n#52 /home/thedomain/webapps/thedomain-talk/public/index.php(22): Flarum\\Http\\Server->listen()\n#53 {main}\n\nNext Doctrine\\DBAL\\Driver\\PDOException: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`thedomain_talk`.`#sql-11f9_128`, CONSTRAINT `fwf_fof_upload_downloads_post_id_foreign` FOREIGN KEY (`post_id`) REFERENCES `fwf_posts` (`id`) ON DELETE SET NULL) in /home/thedomain/webapps/thedomain-talk/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:123\nStack trace:\n#0 /home/thedomain/webapps/thedomain-talk/vendor/illuminate/database/Connection.php(458): Doctrine\\DBAL\\Driver\\PDOStatement->execute()\n#1 /home/thedomain/webapps/thedomain-talk/vendor/illuminate/database/Connection.php(657): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('alter table `fw...', Array)\n#2 /home/thedomain/webapps/thedomain-talk/vendor/illuminate/database/Connection.php(624): Illuminate\\Database\\Connection->runQueryCallback('alter table `fw...', Array, Object(Closure))\n#3 /home/thedomain/webapps/thedomain-talk/vendor/illuminate/database/Connection.php(459): Illuminate\\Database\\Connection->run('alter table `fw...', Array, Object(Closure))\n#4 /home/thedomain/webapps/thedomain-talk/vendor/illuminate/database/Schema/Blueprint.php(97): Illuminate\\Database\\Connection->statement('alter table `fw...')\n#5 /home/thedomain/webapps/thedomain-talk/vendor/illuminate/database/Schema/Builder.php(264): Illuminate\\Database\\Schema\\Blueprint->build(Object(Illuminate\\Database\\MySqlConnection), Object(Illuminate\\Database\\Schema\\Grammars\\MySqlGrammar))\n#6 /home/thedomain/webapps/thedomain-talk/vendor/illuminate/database/Schema/Builder.php(149): Illuminate\\Database\\Schema\\Builder->build(Object(Illuminate\\Database\\Schema\\Blueprint))\n#7 /home/thedomain/webapps/thedomain-talk/vendor/fof/upload/migrations/2020_02_06_07_alter_downloads_add_post_constraint.php(13): Illuminate\\Database\\Schema\\Builder->table('fof_upload_down...', Object(Closure))\n#8 [internal function]: Illuminate\\Filesystem\\Filesystem->{closure}(Object(Illuminate\\Database\\Schema\\MySqlBuilder))\n#9 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Database/Migrator.php(197): call_user_func(Object(Closure), Object(Illuminate\\Database\\Schema\\MySqlBuilder))\n#10 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Database/Migrator.php(128): Flarum\\Database\\Migrator->runClosureMigration(Array)\n#11 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Database/Migrator.php(111): Flarum\\Database\\Migrator->runUp('/home/thedomain/we...', '2020_02_06_07_a...', Object(Flarum\\Extension\\Extension))\n#12 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Database/Migrator.php(85): Flarum\\Database\\Migrator->runMigrationList('/home/thedomain/we...', Array, Object(Flarum\\Extension\\Extension))\n#13 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Extension/Extension.php(352): Flarum\\Database\\Migrator->run('/home/thedomain/we...', Object(Flarum\\Extension\\Extension))\n#14 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Extension/ExtensionManager.php(234): Flarum\\Extension\\Extension->migrate(Object(Flarum\\Database\\Migrator), 'up')\n#15 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Extension/ExtensionManager.php(127): Flarum\\Extension\\ExtensionManager->migrate(Object(Flarum\\Extension\\Extension))\n#16 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Api/Controller/UpdateExtensionController.php(48): Flarum\\Extension\\ExtensionManager->enable('fof-upload')\n#17 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\\Api\\Controller\\UpdateExtensionController->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#18 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php(65): Flarum\\Http\\RouteHandlerFactory->Flarum\\Http\\{closure}(Object(Laminas\\Diactoros\\ServerRequest), Array)\n#19 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\DispatchRoute->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Closure))\n#20 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#21 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\SetLocale->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#22 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(31): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#23 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\CheckCsrfToken->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#24 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(55): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#25 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithHeader->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#26 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#27 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithSession->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#28 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(51): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#29 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\RememberFromCookie->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#30 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#31 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\StartSession->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#32 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#33 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Api\\Middleware\\FakeHttpMethods->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#34 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#35 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\ParseJsonBody->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#36 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#37 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\HandleErrors->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#38 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#39 /home/thedomain/webapps/thedomain-talk/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\\Stratigility\\MiddlewarePipe->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#40 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\RequestHandler->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#41 /home/thedomain/webapps/thedomain-talk/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#42 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePathRouter->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#43 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(42): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#44 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Laminas\\Stratigility\\Middleware\\OriginalMessages->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#45 /home/thedomain/webapps/thedomain-talk/vendor/middlewares/base-path/src/BasePath.php(53): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#46 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePath->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#47 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#48 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\\Stratigility\\MiddlewarePipe->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\EmptyPipelineHandler))\n#49 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\\Stratigility\\MiddlewarePipe->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#50 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Server.php(42): Laminas\\HttpHandlerRunner\\RequestHandlerRunner->run()\n#51 /home/thedomain/webapps/thedomain-talk/public/index.php(22): Flarum\\Http\\Server->listen()\n#52 {main}\n\nNext Illuminate\\Database\\QueryException: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`thedomain_talk`.`#sql-11f9_128`, CONSTRAINT `fwf_fof_upload_downloads_post_id_foreign` FOREIGN KEY (`post_id`) REFERENCES `fwf_posts` (`id`) ON DELETE SET NULL) (SQL: alter table `fwf_fof_upload_downloads` add constraint `fwf_fof_upload_downloads_post_id_foreign` foreign key (`post_id`) references `fwf_posts` (`id`) on delete set null) in /home/thedomain/webapps/thedomain-talk/vendor/illuminate/database/Connection.php:664\nStack trace:\n#0 /home/thedomain/webapps/thedomain-talk/vendor/illuminate/database/Connection.php(624): Illuminate\\Database\\Connection->runQueryCallback('alter table `fw...', Array, Object(Closure))\n#1 /home/thedomain/webapps/thedomain-talk/vendor/illuminate/database/Connection.php(459): Illuminate\\Database\\Connection->run('alter table `fw...', Array, Object(Closure))\n#2 /home/thedomain/webapps/thedomain-talk/vendor/illuminate/database/Schema/Blueprint.php(97): Illuminate\\Database\\Connection->statement('alter table `fw...')\n#3 /home/thedomain/webapps/thedomain-talk/vendor/illuminate/database/Schema/Builder.php(264): Illuminate\\Database\\Schema\\Blueprint->build(Object(Illuminate\\Database\\MySqlConnection), Object(Illuminate\\Database\\Schema\\Grammars\\MySqlGrammar))\n#4 /home/thedomain/webapps/thedomain-talk/vendor/illuminate/database/Schema/Builder.php(149): Illuminate\\Database\\Schema\\Builder->build(Object(Illuminate\\Database\\Schema\\Blueprint))\n#5 /home/thedomain/webapps/thedomain-talk/vendor/fof/upload/migrations/2020_02_06_07_alter_downloads_add_post_constraint.php(13): Illuminate\\Database\\Schema\\Builder->table('fof_upload_down...', Object(Closure))\n#6 [internal function]: Illuminate\\Filesystem\\Filesystem->{closure}(Object(Illuminate\\Database\\Schema\\MySqlBuilder))\n#7 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Database/Migrator.php(197): call_user_func(Object(Closure), Object(Illuminate\\Database\\Schema\\MySqlBuilder))\n#8 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Database/Migrator.php(128): Flarum\\Database\\Migrator->runClosureMigration(Array)\n#9 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Database/Migrator.php(111): Flarum\\Database\\Migrator->runUp('/home/thedomain/we...', '2020_02_06_07_a...', Object(Flarum\\Extension\\Extension))\n#10 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Database/Migrator.php(85): Flarum\\Database\\Migrator->runMigrationList('/home/thedomain/we...', Array, Object(Flarum\\Extension\\Extension))\n#11 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Extension/Extension.php(352): Flarum\\Database\\Migrator->run('/home/thedomain/we...', Object(Flarum\\Extension\\Extension))\n#12 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Extension/ExtensionManager.php(234): Flarum\\Extension\\Extension->migrate(Object(Flarum\\Database\\Migrator), 'up')\n#13 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Extension/ExtensionManager.php(127): Flarum\\Extension\\ExtensionManager->migrate(Object(Flarum\\Extension\\Extension))\n#14 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Api/Controller/UpdateExtensionController.php(48): Flarum\\Extension\\ExtensionManager->enable('fof-upload')\n#15 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\\Api\\Controller\\UpdateExtensionController->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#16 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php(65): Flarum\\Http\\RouteHandlerFactory->Flarum\\Http\\{closure}(Object(Laminas\\Diactoros\\ServerRequest), Array)\n#17 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\DispatchRoute->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Closure))\n#18 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#19 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\SetLocale->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#20 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(31): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#21 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\CheckCsrfToken->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#22 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(55): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#23 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithHeader->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#24 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#25 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\AuthenticateWithSession->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#26 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(51): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#27 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\RememberFromCookie->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#28 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#29 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\StartSession->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#30 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#31 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Api\\Middleware\\FakeHttpMethods->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#32 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#33 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\ParseJsonBody->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#34 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#35 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\\Http\\Middleware\\HandleErrors->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#36 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#37 /home/thedomain/webapps/thedomain-talk/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\\Stratigility\\MiddlewarePipe->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#38 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\RequestHandler->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#39 /home/thedomain/webapps/thedomain-talk/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#40 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePathRouter->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#41 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(42): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#42 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Laminas\\Stratigility\\Middleware\\OriginalMessages->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#43 /home/thedomain/webapps/thedomain-talk/vendor/middlewares/base-path/src/BasePath.php(53): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#44 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\\BasePath->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\Next))\n#45 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\\Stratigility\\Next->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#46 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\\Stratigility\\MiddlewarePipe->process(Object(Laminas\\Diactoros\\ServerRequest), Object(Laminas\\Stratigility\\EmptyPipelineHandler))\n#47 /home/thedomain/webapps/thedomain-talk/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\\Stratigility\\MiddlewarePipe->handle(Object(Laminas\\Diactoros\\ServerRequest))\n#48 /home/thedomain/webapps/thedomain-talk/vendor/flarum/core/src/Http/Server.php(42): Laminas\\HttpHandlerRunner\\RequestHandlerRunner->run()\n#49 /home/thedomain/webapps/thedomain-talk/public/index.php(22): Flarum\\Http\\Server->listen()\n#50 {main}"
}
]
}
Thanks for any assistance in resolving this.
Mods, if this should be split to a different discussion, please do so. Thanks!