I am developing a system in Zend Framework and I implemented user/rol authentication using Zend_Auth for security and it work receiving user/password information and return the Model User with each user's rol.
In my global layout, I have a big banner that redirect to Home some/path/default/index/index
and then inside IndexController, I redirect to user's home page that depends of its roles. When I work on Windows I have no problems. But when I work in my Ubuntu, the _redirect
function of Zend Framework throw a Doctrine's Exception
Uncaught exception 'Doctrine_Connection_Pgsql_Exception' with message 'SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: ""
But the error begin in Zend Broker.
I using a Plugin in my Front Controller to know if user can or cannor access to certain page. How can I solve that error?
This is my stack trace:
Fatal error: Uncaught exception 'Doctrine_Connection_Pgsql_Exception' with message 'SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: ""' in /home/project/library/Doctrine/Doctrine/Connection.php:1082 Stack trace: #0 /home/project/library/Doctrine/Doctrine/Connection/Statement.php(269): Doctrine_Connection->rethrowException(Object(PDOException), Object(Doctrine_Connection_Statement)) #1 /home/project/library/Doctrine/Doctrine/Connection.php(1006): Doctrine_Connection_Statement->execute(Array) #2 /home/project/library/Doctrine/Doctrine/Query/Abstract.php(976): Doctrine_Connection->execute('SELECT u.usuari...', Array) #3 /home/project/library/Doctrine/Doctrine/Query/Abstract.php(1026): Doctrine_Query_Abstract->_execute(Array) #4 /home/project/library/Zend/Controller/Plugin/Broker.php on line 336
Thanks in advance