trying to install FOSUserBundle but getting error
Asked Answered
A

2

30

trying to install FOSUserBundle bundle from below link How to install 3rd party Bundles but getting this error :

[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]  
  The child node "db_driver" at path "fos_user" must be configured. 
Attending answered 20/9, 2013 at 9:53 Comment(0)
C
62

You have forgotten to add the configuration for FOSUserBundle in your app/config/config.yml or at least did not provide a value for fos_user.db_driver.

You have to configure at least the db_driver , firewall and your user-class otherwise the configuration will throw an InvalidConfigurationException.

# app/config/config.yml
fos_user:
    db_driver: orm # other valid values are 'mongodb', 'couchdb' and 'propel'
    firewall_name: main
    user_class: Acme\UserBundle\Entity\User

Please see the documentation chapter Step 5: Configure the FOSUserBundle.

Consistent answered 20/9, 2013 at 10:10 Comment(2)
Step 5 needs to be done before step 1 because Step 1 fails.Thermometry
I also had to add a config/packages/fos_user.yaml file as seen hereAnaplasty
C
1

I solve similar error by updating composer : /usr/local/bin/composer self-update. May this help.

Context answered 10/6, 2016 at 9:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.