title: cakephp how to remove authcomponent errors
body: <p>i am working on a Cakephp 2.x .. the problem which i have is whenever there is an error comes on my webapp ..these error always shows on the top of the page and then the actual error come..</p>
  
  <blockquote>
    <p>AuthComponent::identify() must be an instance of CakeRequest, null
    given, called in
    C:\xampp\htdocs\allsecure\lib\Cake\Controller\Component\AuthComponent.php
    on line 547 and defined
    [CORE\Cake\Controller\Component\AuthComponent.php</p>
    
    <p>Argument 2 passed to AuthComponent::identify() must be an instance of
    CakeResponse, null given, called in
    C:\xampp\htdocs\allsecure\lib\Cake\Controller\Component\AuthComponent.php
    on line 547 and defined
    [CORE\Cake\Controller\Component\AuthComponent.php, line 690]</p>
    
    <p>Warning (4096): Argument 1 passed to FormAuthenticate::authenticate()
    must be an instance of CakeRequest, null given, called in
    C:\xampp\htdocs\allsecure\lib\Cake\Controller\Component\AuthComponent.php
    on line 695 and defined
    [CORE\Cake\Controller\Component\Auth\FormAuthenticate.php, line 70]</p>
  </blockquote>
  
  <p>and then the actual error comes e.g </p>
  
  <blockquote>
    <p>Missing Controller action ..</p>
  </blockquote>
  
  <p>how can i remove these above auth errors</p>