Array ( [data] => 2024-05-02 11:39:56 [mensagem] => 500: Erro interno [trace] => SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`jaguarut_portal`.`produtos`, CONSTRAINT `fk_pecas-categorias` FOREIGN KEY (`categorias_id`) REFERENCES `categorias` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE), query was: DELETE FROM `categorias` WHERE (id = 43) #0 /home/jaguarutilidades/public_html/portaljaguar/vendor/zendframework/zendframework1/library/Zend/Db/Statement.php(303): Zend_Db_Statement_Pdo->_execute(Array) #1 /home/jaguarutilidades/public_html/portaljaguar/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array) #2 /home/jaguarutilidades/public_html/portaljaguar/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('DELETE FROM `ca...', Array) #3 /home/jaguarutilidades/public_html/portaljaguar/vendor/zendframework/zendframework1/library/Zend/Db/Adapter/Abstract.php(664): Zend_Db_Adapter_Pdo_Abstract->query('DELETE FROM `ca...') #4 /home/jaguarutilidades/public_html/portaljaguar/vendor/zendframework/zendframework1/library/Zend/Db/Table/Abstract.php(1203): Zend_Db_Adapter_Abstract->delete('categorias', '(id = 43)') #5 /home/jaguarutilidades/public_html/portaljaguar/library/Fgsl/Db/Table/Abstract.php(399): Zend_Db_Table_Abstract->delete('id = 43') #6 /home/jaguarutilidades/public_html/portaljaguar/application/modules/admin/controllers/CategoriasController.php(161): Fgsl_Db_Table_Abstract->delete('id = 43') #7 /home/jaguarutilidades/public_html/portaljaguar/vendor/zendframework/zendframework1/library/Zend/Controller/Action.php(516): Admin_CategoriasController->removeAction() #8 /home/jaguarutilidades/public_html/portaljaguar/vendor/zendframework/zendframework1/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('removeAction') #9 /home/jaguarutilidades/public_html/portaljaguar/vendor/zendframework/zendframework1/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #10 /home/jaguarutilidades/public_html/portaljaguar/vendor/zendframework/zendframework1/library/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch() #11 /home/jaguarutilidades/public_html/portaljaguar/vendor/zendframework/zendframework1/library/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run() #12 /home/jaguarutilidades/public_html/portaljaguar/index.php(47): Zend_Application->run() #13 {main} Zend_Controller_Request_Http Object ( [_paramSources:protected] => Array ( [0] => _GET [1] => _POST ) [_requestUri:protected] => /portaljaguar/admin/categorias/remove/id/43 [_baseUrl:protected] => https://jaguarutilidades.com.br/portaljaguar [_basePath:protected] => [_pathInfo:protected] => /admin/categorias/remove/id/43 [_params:protected] => Array ( [controller] => categorias [action] => remove [id] => 43 [module] => admin ) [_rawBody:protected] => [_aliases:protected] => Array ( ) [_dispatched:protected] => 1 [_module:protected] => admin [_moduleKey:protected] => module [_controller:protected] => categorias [_controllerKey:protected] => controller [_action:protected] => remove [_actionKey:protected] => action ) [parameters] => {"controller":"categorias","action":"remove","id":"43","module":"admin","error_handler":{"exception":{},"type":"EXCEPTION_OTHER","request":{}},"noViewRenderer":true} [sessao] => {"session":{"post":{},"data_auth":{"id":"3","nome":"Jaguar ","login":"jaguar","ultimo_acesso":"2024-05-02 10:28:29"},"error_msg":null,"acl":{},"grupo":{"id":"3","usuarios_id":"3","grupos_id":"1"},"cliente_jaguar_auth":{"id":"164","grupos_id":"2","nome":"","email":"carla.militao@jaguar.ind.br","nome_representante":"Carla","estado":"SP","cnpj":"48.839.872\/0001-74","nome_empresa":"","rca_atendimento":"","ultimo_acesso":"2024-04-17 12:02:46","status":"1","email_enviado":"1","hash":"7a08f720d2233d8c9a2a5567f49e8394"},"is_mobile":0,"cliente":null},"cliente":{"frete":null},"where":{"where":{"produtos":"(produtos.titulo LIKE '%3305%')"}}} )