dachcom-digital / pimcore-formbuilder

Pimcore Formbuilder - create forms easily!
Other
91 stars 47 forks source link

"You have requested a non-existent service "FormBuilderBundle\Factory\FormDefinitionFactoryInterface"." #444

Closed maxihaindl closed 3 months ago

maxihaindl commented 5 months ago
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? yes/no

Hello,

while upgrading pimcore to 11.0.12 and formbuilder to the latest version 5.0.6 i'll get the mentioned error running bin/console doctrine:migrations:migrate -vvv --prefix FormBuilderBundle\Migrations command

maximilian.haindl@tuerbookpro:~/projects/webcontact/wwwroot/tag-on$ docker-compose exec -u www-data -w /var/www/html php bin/console doctrine:migrations:migrate -vvv --prefix FormBuilderBundle\Migrations
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException^ {#352
  #message: "You have requested a non-existent service "FormBuilderBundle\Factory\FormDefinitionFactoryInterface"."
  #code: 0
  #file: "/var/www/html/vendor/symfony/dependency-injection/Container.php"
  #line: 263
  -id: "FormBuilderBundle\Factory\FormDefinitionFactoryInterface"
  -sourceId: null
  -alternatives: []
  trace: {
    /var/www/html/vendor/symfony/dependency-injection/Container.php:263 { …}
    /var/www/html/vendor/symfony/dependency-injection/Container.php:211 { …}
    /var/www/html/vendor/dachcom-digital/formbuilder/src/FormBuilderBundle.php:50 { …}
    /var/www/html/vendor/dachcom-digital/formbuilder/src/FormBuilderBundle.php:37 { …}
    /var/www/html/vendor/symfony/http-kernel/Kernel.php:131 { …}
    /var/www/html/vendor/pimcore/pimcore/lib/Kernel.php:160 { …}
    /var/www/html/vendor/pimcore/pimcore/lib/Bootstrap.php:211 { …}
    /var/www/html/vendor/pimcore/pimcore/lib/Bootstrap.php:58 { …}
    /var/www/html/bin/console:46 {
      › /** @var \Pimcore\Kernel $kernel */
      › $kernel = \Pimcore\Bootstrap::startupCli();
      › $application = new \Pimcore\Console\Application($kernel);
    }
  }
}

The command doesnt really matter, the error occurs no matter what console command is running. Any help is appreciated :-)

solverat commented 3 months ago

It looks like a missing bundle inclusion: Have you registered the bundle via config/bundles.php? In Pimcore 11, there is no var/config/extensions.php anymore, so maybe you need to migrate those inclusions too.