title: Symfony Authentification Error at login_check
body: <h2>Intro</h2>
  
  <p>I've been following these two documentation tutorials for Symfony2 Security:</p>
  
  <p><a href="http://symfony.com/doc/current/book/security.html" rel="nofollow">http://symfony.com/doc/current/book/security.html</a></p>
  
  <p><a href="http://symfony.com/doc/current/book/security.html#loading-users-from-the-database" rel="nofollow">http://symfony.com/doc/current/book/security.html#loading-users-from-the-database</a></p>
  
  <h2>Problem</h2>
  
  <p>Now when I try to login at localhost/login, it either brings me back to /login (which is fine) with "bad credentials" or it brings me to /login_check and an error occurs (I haven't found a pattern of when it does what).</p>
  
  <h2>Error</h2>
  
  <p>SCREAM: Error suppression ignored for</p>
  
  <blockquote>
    <p>Fatal error: Wrong parameters for Exception([string $exception [, long
    $code [, Exception $previous = NULL]]]) in
    C:\wamp\www\minimumCrayon\vendor\symfony\symfony\src\Symfony\Component\Security\Core\Exception\AuthenticationException.php
    on line 25</p>
  </blockquote>
  
  <p>I've tried looking around for anyone with a similar error, but I'm pretty darn lost.</p>
  
  <p>Edit: Here is my security.yml file</p>
  
  <pre><code>jms_security_extra:
      secure_all_services: false
      expressions: true
  
  security:
      encoders:
          WikiRoster\MainBundle\Entity\Account:
              algorithm:        sha1
              encode_as_base64: false
              iterations:       1
  
      role_hierarchy:
          ROLE_ADMIN:       ROLE_USER
          ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
  
      providers:
          administartors:
              entity: { class: AcmeMainBundle:Account}
  
      firewalls:
          secured_area:
              pattern:    ^/
              anonymous: ~
              form_login:
              login_path: /login
              check_path: /login_check
          admin_area:
              pattern:    ^/admin
              http_basic: ~
  
      access_control:
          - { path: ^/admin, roles: ROLE_ADMIN }
  </code></pre>