Array ( [data] => 2025-03-25 16:00:53 [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 = 33) #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 = 33)') #5 /home/jaguarutilidades/public_html/portaljaguar/library/Fgsl/Db/Table/Abstract.php(399): Zend_Db_Table_Abstract->delete('id = 33') #6 /home/jaguarutilidades/public_html/portaljaguar/application/modules/admin/controllers/CategoriasController.php(161): Fgsl_Db_Table_Abstract->delete('id = 33') #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/33 [_baseUrl:protected] => https://jaguarutilidades.com.br/portaljaguar [_basePath:protected] => [_pathInfo:protected] => /admin/categorias/remove/id/33 [_params:protected] => Array ( [controller] => categorias [action] => remove [id] => 33 [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":"33","module":"admin","error_handler":{"exception":{},"type":"EXCEPTION_OTHER","request":{}},"noViewRenderer":true} [sessao] => {"session":{"post":{},"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":"2025-03-25 15:12:34","status":"1","email_enviado":"1","hash":"7a08f720d2233d8c9a2a5567f49e8394"},"data_auth":{"id":"3","nome":"Jaguar ","login":"jaguar","ultimo_acesso":"2025-03-24 15:42:42"},"is_mobile":0,"cliente":null,"error_msg":null,"acl":{},"grupo":{"id":"3","usuarios_id":"3","grupos_id":"1"}},"cliente":{"frete":null},"where":{"where":{"produtos":"(produtos.titulo LIKE '%sabonet%')"}}} )