You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method this->createTableForEntities(...) crashes in ModuleInstaller for optional modules (the modules that are installed during fork installation seem to install just fine.)
Exception:
"Handling "ForkCMS\Modules\Extensions\Domain\Module\Command\InstallModules" failed: The class 'ForkCMS\Modules\ContentBlocks\Domain\ContentBlock\ContentBlock' was not found in the chain configured namespaces ForkCMS\Modules\Pages\Domain, ForkCMS\Modules\Internationalisation\Domain, ForkCMS\Modules\Frontend\Domain, ForkCMS\Modules\Extensions\Domain, ForkCMS\Modules\BlockEditor\Domain, ForkCMS\Modules\Backend\Domain"
Relevant stack trace:
"TraceableMessageBus->dispatch() in src/Modules/Extensions/Backend/Actions/ModuleInstall.php (line 32)
$this->header->addFlashMessage(FlashMessage::error('NotFound'));
return new RedirectResponse(ModuleIndex::getActionSlug()->generateRoute($this->router));
},
validCallback: function (FormInterface $form): RedirectResponse {
$this->commandBus->dispatch(new InstallModules(ModuleName::fromString($form->getData()['id'])));
return new RedirectResponse(ModuleIndex::getActionSlug()->generateRoute($this->router));
},
flashMessageCallback: function (FormInterface $form): FlashMessage {
return FlashMessage::success('ModuleInstalled', ['%module%' => $form->getData()['id']]);
ModuleInstall->ForkCMS\Modules\Extensions\Backend\Actions{closure}() in src/Modules/Backend/Domain/Action/AbstractFormActionController.php (line 90)
AbstractFormActionController->handleForm() in src/Modules/Extensions/Backend/Actions/ModuleInstall.php (line 22)
ModuleInstall->getFormResponse() in src/Modules/Backend/Domain/Action/AbstractFormActionController.php (line 52)"
Bug Report
Problem description
The method this->createTableForEntities(...) crashes in ModuleInstaller for optional modules (the modules that are installed during fork installation seem to install just fine.)
Exception:
"Handling "ForkCMS\Modules\Extensions\Domain\Module\Command\InstallModules" failed: The class 'ForkCMS\Modules\ContentBlocks\Domain\ContentBlock\ContentBlock' was not found in the chain configured namespaces ForkCMS\Modules\Pages\Domain, ForkCMS\Modules\Internationalisation\Domain, ForkCMS\Modules\Frontend\Domain, ForkCMS\Modules\Extensions\Domain, ForkCMS\Modules\BlockEditor\Domain, ForkCMS\Modules\Backend\Domain"
Relevant stack trace:
"TraceableMessageBus->dispatch() in src/Modules/Extensions/Backend/Actions/ModuleInstall.php (line 32)
ModuleInstall->ForkCMS\Modules\Extensions\Backend\Actions{closure}() in src/Modules/Backend/Domain/Action/AbstractFormActionController.php (line 90)
AbstractFormActionController->handleForm() in src/Modules/Extensions/Backend/Actions/ModuleInstall.php (line 22)
ModuleInstall->getFormResponse() in src/Modules/Backend/Domain/Action/AbstractFormActionController.php (line 52)"
Steps to reproduce
Reproduce by installing ContentBlocks from #3555
Expected behavior / Proposed solution
I suspect this broke in 1af2d77 or any of the commits on Sep 28, since before this was working.
The text was updated successfully, but these errors were encountered: