tirenweb
tirenweb

Reputation: 31709

Just trying to install/configure symfony2

I've just download a symfony2 (sf 2.0.12) with vendors, and when i go to http://foo.localhost/config.php I get this message:

Welcome! Welcome to your new Symfony project. This script will guide you through the basic configuration of your project. You can also do the same by editing the ‘app/config/ parameters.ini’ file directly.
- Configure your Symfony Application online
- Bypass configuration and go to the Welcome page
- Re-check configuration

Then I click "Configure your Symfony.." And i get this:

InvalidConfigurationException: The child node "db_driver" at path "fos_user" must be configured.

Is the same for you?

EDIT:

Besides, there isn't anything about the FOSUserBundle in appKernel or autoload files, nor in vendor folder. Anyway, I added this lines below to app/config/config.yml file:

fos_user:
    db_driver: orm
    firewall_name: main

but the error is the same.

Upvotes: 6

Views: 9817

Answers (3)

Igor Vigasin
Igor Vigasin

Reputation: 21

In addition to

fos_user:
    db_driver: orm
    firewall_name: main

You must specify your User entity.
For example:

user_class: Acme\UserBundle\Entity\User

Upvotes: 1

Ozmodiar
Ozmodiar

Reputation: 136

Just in case anyone else needs this...

I had to run "composer update" on my Symfony installation without FOSUserBundle first. Then do it again with FOSUserBundle added to my composer.json file.

Upvotes: 8

leek
leek

Reputation: 12121

Looks like you are trying to install the FOSUserBundle at the same time as your Symfony2 install.

Either remove the bundle before installing or configure the missing keys it is asking for.

Upvotes: 2

Related Questions