Call to undefined method sfWebRequest::hasError

Add the below given code to your <app>.class.php file:

public function setup(){
$this->enableAllPluginsExcept(array(‘sfDoctrinePlugin’));
}