1

I have just installed FOSUser bundle and initialized it in AppKernel's registereBundles() function , when I run

console cache:clear

It get

[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException] The child node "db_driver" at path "fos_user" must be configured.

My understanding was that unless or until I am not using a bundle it should not interfere in application flow. I wonder why I get this issue when I have done nothing with FOSUserBundle so far

2
  • Possible duplicate of trying to install FOSUserBundle but getting error Commented Jul 24, 2017 at 20:48
  • @GottliebNotschnabel I am trying to understand the bundle flow not specifically the error which is generated , check the comment below. Its similar question but in different context Commented Jul 25, 2017 at 4:46

3 Answers 3

6

In your config.yml you have to add primary data.

# FOSUser
fos_user:
    db_driver: orm
    firewall_name: main
    user_class: UserBundle\Entity\User

It's configuration for ORM.

Sign up to request clarification or add additional context in comments.

3 Comments

well I don't want to add that , its not that contradicts service-oriented-architecture ? Why its enforcing me to do it in first place. Forgive me I am not being rude , just understanding if a service should behave like this . I thought its only loaded when desired .
It need it because you registred bundle in AppKernel. When you do it, it create object, that after that initialize for example service.
you are right , docs: symfony.com/doc/current/bundles/FOSUserBundle/index.html in step one says it right If you encounter installation errors pointing at a lack of configuration parameters, such as The child node "db_driver" at path "fos_user" must be configured, you should complete the configuration in Step 5 first and then re-run this step.
0

Try updating your composer.json file by running 'composer update' in your terminal. I solved the similar error by updating it. May this help.

Comments

0

Add Mail user and mail password

Make the following changes for getting rid of the error

parameters.yml

parameters: mailer_user: null mailer_password: null

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.