luceos, this is the output on clicking DEBUG:
{
"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 (`cbseboyq_community`.`recipients`, CONSTRAINT `recipients_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE) in /home/cbseboyq/forum.cbsecoding.com/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:121\nStack trace:\n#0 /home/cbseboyq/forum.cbsecoding.com/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php(121): PDOStatement->execute(NULL)\n#1 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Connection.php(458): Doctrine\\DBAL\\Driver\\PDOStatement->execute()\n#2 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Connection.php(657): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('insert into `re...', Array)\n#3 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Connection.php(624): Illuminate\\Database\\Connection->runQueryCallback('insert into `re...', Array, Object(Closure))\n#4 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Connection.php(459): Illuminate\\Database\\Connection->run('insert into `re...', Array, Object(Closure))\n#5 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Connection.php(411): Illuminate\\Database\\Connection->statement('insert into `re...', Array)\n#6 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Query/Builder.php(2611): Illuminate\\Database\\Connection->insert('insert into `re...', Array)\n#7 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Eloquent/Relations/Concerns/InteractsWithPivotTable.php(216): Illuminate\\Database\\Query\\Builder->insert(Array)\n#8 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Eloquent/Relations/Concerns/InteractsWithPivotTable.php(160): Illuminate\\Database\\Eloquent\\Relations\\BelongsToMany->attach(1, Array, false)\n#9 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Eloquent/Relations/Concerns/InteractsWithPivotTable.php(112): Illuminate\\Database\\Eloquent\\Relations\\BelongsToMany->attachNew(Array, Array, false)\n#10 /home/cbseboyq/forum.cbsecoding.com/vendor/fof/byobu/src/Listeners/SaveRecipientsToDatabase.php(151): Illuminate\\Database\\Eloquent\\Relations\\BelongsToMany->sync(Array)\n#11 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Database/AbstractModel.php(58): FoF\\Byobu\\Listeners\\SaveRecipientsToDatabase->FoF\\Byobu\\Listeners\\{closure}(Object(Flarum\\Discussion\\Discussion))\n#12 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/events/Dispatcher.php(360): Flarum\\Database\\AbstractModel::Flarum\\Database\\{closure}(Object(Flarum\\Discussion\\Discussion))\n#13 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/events/Dispatcher.php(209): Illuminate\\Events\\Dispatcher->Illuminate\\Events\\{closure}('eloquent.saved:...', Array)\n#14 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Eloquent/Concerns/HasEvents.php(162): Illuminate\\Events\\Dispatcher->dispatch('eloquent.saved:...', Array)\n#15 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Eloquent/Model.php(692): Illuminate\\Database\\Eloquent\\Model->fireModelEvent('saved', false)\n#16 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Eloquent/Model.php(663): Illuminate\\Database\\Eloquent\\Model->finishSave(Array)\n#17 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Discussion/Command/StartDiscussionHandler.php(78): Illuminate\\Database\\Eloquent\\Model->save()\n#18 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/bus/Dispatcher.php(90): Flarum\\Discussion\\Command\\StartDiscussionHandler->handle(Object(Flarum\\Discussion\\Command\\StartDiscussion))\n#19 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/pipeline/Pipeline.php(128): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}(Object(Flarum\\Discussion\\Command\\StartDiscussion))\n#20 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/pipeline/Pipeline.php(104): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Flarum\\Discussion\\Command\\StartDiscussion))\n#21 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/bus/Dispatcher.php(98): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#22 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/bus/Dispatcher.php(76): Illuminate\\Bus\\Dispatcher->dispatchNow(Object(Flarum\\Discussion\\Command\\StartDiscussion))\n#23 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Api/Controller/CreateDiscussionController.php(72): Illuminate\\Bus\\Dispatcher->dispatch(Object(Flarum\\Discussion\\Command\\StartDiscussion))\n#24 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(96): Flarum\\Api\\Controller\\CreateDiscussionController->data(Object(Zend\\Diactoros\\ServerRequest), Object(Tobscure\\JsonApi\\Document))\n#25 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Api/Controller/AbstractCreateController.php(22): Flarum\\Api\\Controller\\AbstractSerializeController->handle(Object(Zend\\Diactoros\\ServerRequest))\n#26 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\\Api\\Controller\\AbstractCreateController->handle(Object(Zend\\Diactoros\\ServerRequest))\n#27 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php(65): Flarum\\Http\\RouteHandlerFactory->Flarum\\Http\\{closure}(Object(Zend\\Diactoros\\ServerRequest), Array)\n#28 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\DispatchRoute->process(Object(Zend\\Diactoros\\ServerRequest), Object(Closure))\n#29 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#30 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\SetLocale->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#31 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(31): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#32 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\CheckCsrfToken->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#33 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(55): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#34 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\AuthenticateWithHeader->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#35 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#36 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\AuthenticateWithSession->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#37 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(51): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#38 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\RememberFromCookie->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#39 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#40 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\StartSession->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#41 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#42 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Api\\Middleware\\FakeHttpMethods->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#43 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#44 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\ParseJsonBody->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#45 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#46 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\HandleErrors->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#47 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php(83): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#48 /home/cbseboyq/forum.cbsecoding.com/vendor/middlewares/request-handler/src/RequestHandler.php(84): Zend\\Stratigility\\MiddlewarePipe->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#49 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Middlewares\\RequestHandler->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#50 /home/cbseboyq/forum.cbsecoding.com/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#51 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Middlewares\\BasePathRouter->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#52 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Middleware/OriginalMessages.php(41): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#53 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Zend\\Stratigility\\Middleware\\OriginalMessages->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#54 /home/cbseboyq/forum.cbsecoding.com/vendor/middlewares/base-path/src/BasePath.php(53): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#55 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Middlewares\\BasePath->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#56 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php(83): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#57 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php(72): Zend\\Stratigility\\MiddlewarePipe->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\EmptyPipelineHandler))\n#58 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-httphandlerrunner/src/RequestHandlerRunner.php(95): Zend\\Stratigility\\MiddlewarePipe->handle(Object(Zend\\Diactoros\\ServerRequest))\n#59 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Server.php(44): Zend\\HttpHandlerRunner\\RequestHandlerRunner->run()\n#60 /home/cbseboyq/forum.cbsecoding.com/index.php(21): Flarum\\Http\\Server->listen()\n#61 {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 (`cbseboyq_community`.`recipients`, CONSTRAINT `recipients_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE) in /home/cbseboyq/forum.cbsecoding.com/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:123\nStack trace:\n#0 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Connection.php(458): Doctrine\\DBAL\\Driver\\PDOStatement->execute()\n#1 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Connection.php(657): Illuminate\\Database\\Connection->Illuminate\\Database\\{closure}('insert into `re...', Array)\n#2 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Connection.php(624): Illuminate\\Database\\Connection->runQueryCallback('insert into `re...', Array, Object(Closure))\n#3 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Connection.php(459): Illuminate\\Database\\Connection->run('insert into `re...', Array, Object(Closure))\n#4 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Connection.php(411): Illuminate\\Database\\Connection->statement('insert into `re...', Array)\n#5 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Query/Builder.php(2611): Illuminate\\Database\\Connection->insert('insert into `re...', Array)\n#6 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Eloquent/Relations/Concerns/InteractsWithPivotTable.php(216): Illuminate\\Database\\Query\\Builder->insert(Array)\n#7 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Eloquent/Relations/Concerns/InteractsWithPivotTable.php(160): Illuminate\\Database\\Eloquent\\Relations\\BelongsToMany->attach(1, Array, false)\n#8 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Eloquent/Relations/Concerns/InteractsWithPivotTable.php(112): Illuminate\\Database\\Eloquent\\Relations\\BelongsToMany->attachNew(Array, Array, false)\n#9 /home/cbseboyq/forum.cbsecoding.com/vendor/fof/byobu/src/Listeners/SaveRecipientsToDatabase.php(151): Illuminate\\Database\\Eloquent\\Relations\\BelongsToMany->sync(Array)\n#10 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Database/AbstractModel.php(58): FoF\\Byobu\\Listeners\\SaveRecipientsToDatabase->FoF\\Byobu\\Listeners\\{closure}(Object(Flarum\\Discussion\\Discussion))\n#11 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/events/Dispatcher.php(360): Flarum\\Database\\AbstractModel::Flarum\\Database\\{closure}(Object(Flarum\\Discussion\\Discussion))\n#12 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/events/Dispatcher.php(209): Illuminate\\Events\\Dispatcher->Illuminate\\Events\\{closure}('eloquent.saved:...', Array)\n#13 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Eloquent/Concerns/HasEvents.php(162): Illuminate\\Events\\Dispatcher->dispatch('eloquent.saved:...', Array)\n#14 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Eloquent/Model.php(692): Illuminate\\Database\\Eloquent\\Model->fireModelEvent('saved', false)\n#15 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Eloquent/Model.php(663): Illuminate\\Database\\Eloquent\\Model->finishSave(Array)\n#16 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Discussion/Command/StartDiscussionHandler.php(78): Illuminate\\Database\\Eloquent\\Model->save()\n#17 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/bus/Dispatcher.php(90): Flarum\\Discussion\\Command\\StartDiscussionHandler->handle(Object(Flarum\\Discussion\\Command\\StartDiscussion))\n#18 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/pipeline/Pipeline.php(128): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}(Object(Flarum\\Discussion\\Command\\StartDiscussion))\n#19 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/pipeline/Pipeline.php(104): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Flarum\\Discussion\\Command\\StartDiscussion))\n#20 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/bus/Dispatcher.php(98): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#21 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/bus/Dispatcher.php(76): Illuminate\\Bus\\Dispatcher->dispatchNow(Object(Flarum\\Discussion\\Command\\StartDiscussion))\n#22 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Api/Controller/CreateDiscussionController.php(72): Illuminate\\Bus\\Dispatcher->dispatch(Object(Flarum\\Discussion\\Command\\StartDiscussion))\n#23 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(96): Flarum\\Api\\Controller\\CreateDiscussionController->data(Object(Zend\\Diactoros\\ServerRequest), Object(Tobscure\\JsonApi\\Document))\n#24 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Api/Controller/AbstractCreateController.php(22): Flarum\\Api\\Controller\\AbstractSerializeController->handle(Object(Zend\\Diactoros\\ServerRequest))\n#25 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\\Api\\Controller\\AbstractCreateController->handle(Object(Zend\\Diactoros\\ServerRequest))\n#26 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php(65): Flarum\\Http\\RouteHandlerFactory->Flarum\\Http\\{closure}(Object(Zend\\Diactoros\\ServerRequest), Array)\n#27 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\DispatchRoute->process(Object(Zend\\Diactoros\\ServerRequest), Object(Closure))\n#28 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#29 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\SetLocale->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#30 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(31): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#31 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\CheckCsrfToken->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#32 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(55): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#33 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\AuthenticateWithHeader->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#34 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#35 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\AuthenticateWithSession->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#36 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(51): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#37 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\RememberFromCookie->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#38 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#39 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\StartSession->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#40 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#41 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Api\\Middleware\\FakeHttpMethods->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#42 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#43 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\ParseJsonBody->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#44 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#45 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\HandleErrors->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#46 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php(83): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#47 /home/cbseboyq/forum.cbsecoding.com/vendor/middlewares/request-handler/src/RequestHandler.php(84): Zend\\Stratigility\\MiddlewarePipe->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#48 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Middlewares\\RequestHandler->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#49 /home/cbseboyq/forum.cbsecoding.com/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#50 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Middlewares\\BasePathRouter->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#51 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Middleware/OriginalMessages.php(41): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#52 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Zend\\Stratigility\\Middleware\\OriginalMessages->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#53 /home/cbseboyq/forum.cbsecoding.com/vendor/middlewares/base-path/src/BasePath.php(53): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#54 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Middlewares\\BasePath->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#55 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php(83): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#56 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php(72): Zend\\Stratigility\\MiddlewarePipe->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\EmptyPipelineHandler))\n#57 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-httphandlerrunner/src/RequestHandlerRunner.php(95): Zend\\Stratigility\\MiddlewarePipe->handle(Object(Zend\\Diactoros\\ServerRequest))\n#58 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Server.php(44): Zend\\HttpHandlerRunner\\RequestHandlerRunner->run()\n#59 /home/cbseboyq/forum.cbsecoding.com/index.php(21): Flarum\\Http\\Server->listen()\n#60 {main}\n\nNext Illuminate\\Database\\QueryException: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`cbseboyq_community`.`recipients`, CONSTRAINT `recipients_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE) (SQL: insert into `recipients` (`created_at`, `discussion_id`, `group_id`, `updated_at`) values (2020-02-15 17:20:49, 47, 1, 2020-02-15 17:20:49)) in /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Connection.php:664\nStack trace:\n#0 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Connection.php(624): Illuminate\\Database\\Connection->runQueryCallback('insert into `re...', Array, Object(Closure))\n#1 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Connection.php(459): Illuminate\\Database\\Connection->run('insert into `re...', Array, Object(Closure))\n#2 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Connection.php(411): Illuminate\\Database\\Connection->statement('insert into `re...', Array)\n#3 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Query/Builder.php(2611): Illuminate\\Database\\Connection->insert('insert into `re...', Array)\n#4 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Eloquent/Relations/Concerns/InteractsWithPivotTable.php(216): Illuminate\\Database\\Query\\Builder->insert(Array)\n#5 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Eloquent/Relations/Concerns/InteractsWithPivotTable.php(160): Illuminate\\Database\\Eloquent\\Relations\\BelongsToMany->attach(1, Array, false)\n#6 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Eloquent/Relations/Concerns/InteractsWithPivotTable.php(112): Illuminate\\Database\\Eloquent\\Relations\\BelongsToMany->attachNew(Array, Array, false)\n#7 /home/cbseboyq/forum.cbsecoding.com/vendor/fof/byobu/src/Listeners/SaveRecipientsToDatabase.php(151): Illuminate\\Database\\Eloquent\\Relations\\BelongsToMany->sync(Array)\n#8 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Database/AbstractModel.php(58): FoF\\Byobu\\Listeners\\SaveRecipientsToDatabase->FoF\\Byobu\\Listeners\\{closure}(Object(Flarum\\Discussion\\Discussion))\n#9 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/events/Dispatcher.php(360): Flarum\\Database\\AbstractModel::Flarum\\Database\\{closure}(Object(Flarum\\Discussion\\Discussion))\n#10 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/events/Dispatcher.php(209): Illuminate\\Events\\Dispatcher->Illuminate\\Events\\{closure}('eloquent.saved:...', Array)\n#11 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Eloquent/Concerns/HasEvents.php(162): Illuminate\\Events\\Dispatcher->dispatch('eloquent.saved:...', Array)\n#12 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Eloquent/Model.php(692): Illuminate\\Database\\Eloquent\\Model->fireModelEvent('saved', false)\n#13 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/database/Eloquent/Model.php(663): Illuminate\\Database\\Eloquent\\Model->finishSave(Array)\n#14 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Discussion/Command/StartDiscussionHandler.php(78): Illuminate\\Database\\Eloquent\\Model->save()\n#15 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/bus/Dispatcher.php(90): Flarum\\Discussion\\Command\\StartDiscussionHandler->handle(Object(Flarum\\Discussion\\Command\\StartDiscussion))\n#16 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/pipeline/Pipeline.php(128): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}(Object(Flarum\\Discussion\\Command\\StartDiscussion))\n#17 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/pipeline/Pipeline.php(104): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Flarum\\Discussion\\Command\\StartDiscussion))\n#18 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/bus/Dispatcher.php(98): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#19 /home/cbseboyq/forum.cbsecoding.com/vendor/illuminate/bus/Dispatcher.php(76): Illuminate\\Bus\\Dispatcher->dispatchNow(Object(Flarum\\Discussion\\Command\\StartDiscussion))\n#20 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Api/Controller/CreateDiscussionController.php(72): Illuminate\\Bus\\Dispatcher->dispatch(Object(Flarum\\Discussion\\Command\\StartDiscussion))\n#21 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(96): Flarum\\Api\\Controller\\CreateDiscussionController->data(Object(Zend\\Diactoros\\ServerRequest), Object(Tobscure\\JsonApi\\Document))\n#22 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Api/Controller/AbstractCreateController.php(22): Flarum\\Api\\Controller\\AbstractSerializeController->handle(Object(Zend\\Diactoros\\ServerRequest))\n#23 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\\Api\\Controller\\AbstractCreateController->handle(Object(Zend\\Diactoros\\ServerRequest))\n#24 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php(65): Flarum\\Http\\RouteHandlerFactory->Flarum\\Http\\{closure}(Object(Zend\\Diactoros\\ServerRequest), Array)\n#25 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\DispatchRoute->process(Object(Zend\\Diactoros\\ServerRequest), Object(Closure))\n#26 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#27 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\SetLocale->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#28 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(31): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#29 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\CheckCsrfToken->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#30 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(55): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#31 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\AuthenticateWithHeader->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#32 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#33 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\AuthenticateWithSession->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#34 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(51): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#35 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\RememberFromCookie->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#36 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#37 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\StartSession->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#38 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#39 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Api\\Middleware\\FakeHttpMethods->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#40 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#41 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\ParseJsonBody->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#42 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#43 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Flarum\\Http\\Middleware\\HandleErrors->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#44 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php(83): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#45 /home/cbseboyq/forum.cbsecoding.com/vendor/middlewares/request-handler/src/RequestHandler.php(84): Zend\\Stratigility\\MiddlewarePipe->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#46 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Middlewares\\RequestHandler->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#47 /home/cbseboyq/forum.cbsecoding.com/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#48 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Middlewares\\BasePathRouter->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#49 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Middleware/OriginalMessages.php(41): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#50 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Zend\\Stratigility\\Middleware\\OriginalMessages->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#51 /home/cbseboyq/forum.cbsecoding.com/vendor/middlewares/base-path/src/BasePath.php(53): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#52 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/Next.php(60): Middlewares\\BasePath->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\Next))\n#53 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php(83): Zend\\Stratigility\\Next->handle(Object(Zend\\Diactoros\\ServerRequest))\n#54 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php(72): Zend\\Stratigility\\MiddlewarePipe->process(Object(Zend\\Diactoros\\ServerRequest), Object(Zend\\Stratigility\\EmptyPipelineHandler))\n#55 /home/cbseboyq/forum.cbsecoding.com/vendor/zendframework/zend-httphandlerrunner/src/RequestHandlerRunner.php(95): Zend\\Stratigility\\MiddlewarePipe->handle(Object(Zend\\Diactoros\\ServerRequest))\n#56 /home/cbseboyq/forum.cbsecoding.com/vendor/flarum/core/src/Http/Server.php(44): Zend\\HttpHandlerRunner\\RequestHandlerRunner->run()\n#57 /home/cbseboyq/forum.cbsecoding.com/index.php(21): Flarum\\Http\\Server->listen()\n#58 {main}"
}
]
}
I had mentioned a bug earlier:
therealsujitk luceos I think I found a bug, I am unable to add groups to private discussions. I can add members successfully, but when I try to add a group like Admins, It just says Oops! Something went wrong. Please reload the page and try again.