title: FosuserBundle ( The path "fos_user.from_email.address" cannot contain an empty value, but got null. )
body: <p>I have a problem when I Install FOsuserbundle. This is my problem in result:</p>
  
  <p><img src="https://i.stack.imgur.com/Pcetq.png" alt=""></p>
  
  <p>this is my config.yml:</p>
  
  <pre><code>fos_user:
      db_driver: orm # other valid values are 'mongodb' and 'couchdb'
      firewall_name: main
      user_class: AppBundle\Entity\User
      from_email:
          address: "%mailer_user%"
          sender_name: "%mailer_user%"
  </code></pre>
  
  <p>security:</p>
  
  <pre><code># http://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
  providers:
      in_memory:
          memory: ~
  
  firewalls:
      # disables authentication for assets and the profiler, adapt it according to your needs
      dev:
          pattern: ^/(_(profiler|wdt)|css|images|js)/
          security: false
  
      main:
          anonymous: ~
          # activate different ways to authenticate
  
          # http://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
          #http_basic: ~
  
          # http://symfony.com/doc/current/cookbook/security/form_login_setup.html
          #form_login: ~
  encoders:
      FOS\UserBundle\Model\UserInterface: bcrypt
  
  role_hierarchy:
      ROLE_ADMIN:       ROLE_USER
      ROLE_SUPER_ADMIN: ROLE_ADMIN
  
  providers:
      fos_userbundle:
          id: fos_user.user_provider.username
  
  firewalls:
      main:
          pattern: ^/
          form_login:
              provider: fos_userbundle
              csrf_token_generator: security.csrf.token_manager
              # if you are using Symfony &lt; 2.8, use the following config instead:
              # csrf_provider: form.csrf_provider
  
          logout:       true
          anonymous:    true
  
  access_control:
      - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
      - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY }
      - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY }
      - { path: ^/admin/, role: ROLE_ADMIN }
  </code></pre>
  
  <p>and this is my routing.yml:</p>
  
  <p>fos_user:
      resource: "@FOSUserBundle/Resources/config/routing/all.xml"</p>