Boa noite Galera
Estava começando a cadastrar os grupos no Redeca e deu o seguinte erro:
Houve uma falha ao salvar informações na tabela auth_group_resource
No log deu o seguinte erro:
2012-05-21T20:09:03-03:00 ERR (3): Caught exception: Zend_Db_Statement_Exception
Message: exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`redebeb`.`auth_group_resource`, CONSTRAINT `role_resource_group_FK` FOREIGN KEY (`role_resource_id_role`, `role_resource_id_resource`) REFERENCES `auth_role_resource` (`id_role`, `id_resource)' in C:\wamp\www\redebebedouro\lib\Zend\Db\Statement\Pdo.php:227
Stack trace:
#0 C:\wamp\www\redebebedouro\lib\Zend\Db\Statement.php(279): Zend_Db_Statement_Pdo->_execute(Array)
#1 C:\wamp\www\redebebedouro\lib\Zend\Db\Adapter\Abstract.php(396): Zend_Db_Statement->execute(Array)
#2 C:\wamp\www\redebebedouro\lib\Zend\Db\Adapter\Pdo\Abstract.php(206): Zend_Db_Adapter_Abstract->query('INSERT INTO `au...', Array)
#3 C:\wamp\www\redebebedouro\lib\Zend\Db\Adapter\Abstract.php(474): Zend_Db_Adapter_Pdo_Abstract->query('INSERT INTO `au...', Array)
#4 C:\wamp\www\redebebedouro\lib\Zend\Db\Table\Abstract.php(769): Zend_Db_Adapter_Abstract->insert('auth_group_reso...', Array)
#5 C:\wamp\www\redebebedouro\application\business\GroupBusiness.php(282): Zend_Db_Table_Abstract->insert(Array)
#6 C:\wamp\www\redebebedouro\application\business\GroupBusiness.php(250): GroupBusiness::saveGroupResource(Array, Object(Zend_Db_Adapter_Pdo_Mysql))
#7 C:\wamp\www\redebebedouro\application\controllers\GroupController.php(103): GroupBusiness::saveDefaultGroupResource('1', '5', Object(Zend_Db_Adapter_Pdo_Mysql))
#8 C:\wamp\www\redebebedouro\lib\Zend\Controller\Action.php(499): GroupController->addAction()
#9 C:\wamp\www\redebebedouro\lib\Zend\Controller\Dispatcher\Standard.php(242): Zend_Controller_Action->dispatch('addAction')
#10 C:\wamp\www\redebebedouro\lib\Zend\Controller\Front.php(929): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#11 C:\wamp\www\redebebedouro\index.php(188): Zend_Controller_Front->dispatch()
#12 {main}
Autor: Leandro Nischida
55 comentários