The error Caught Exception: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`juarezd1_wolmart`.`products`, CONSTRAINT `products_ibfk_1` FOREIGN KEY (`CATEGORY_ID`) REFERENCES `categories` (`category_id`)) occurred in the file /home/juarezd1/admin-app.juarezdif.gob.mx/Categorias/index.php on line

REQUEST METHOD=GET
REQUEST TIME=1729232650
QUERY STRING=action=delete_category&category_id=5
HTTP REFERER=
HTTP USER_AGENT=Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
REMOTE ADDR=3.143.247.50
SCRIPT FILENAME=/home/juarezd1/admin-app.juarezdif.gob.mx/Categorias/index.php
REQUEST URI=/Categorias/index.php?action=delete_category&category_id=5

file = /home/juarezd1/admin-app.juarezdif.gob.mx/_assets/classes/phpCommon/MySqlPdoHandler.class.php
line = 246
function = _debug
class = MySqlPdoHandler
type = ->
args0 = Caught Exception: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`juarezd1_wolmart`.`products`, CONSTRAINT `products_ibfk_1` FOREIGN KEY (`CATEGORY_ID`) REFERENCES `categories` (`category_id`))
file = /home/juarezd1/admin-app.juarezdif.gob.mx/_assets/classes/Categories.class.php
line = 509
function = delete
class = MySqlPdoHandler
type = ->
args0 = DELETE FROM categories WHERE category_id=?;
1 = Array
file = /home/juarezd1/admin-app.juarezdif.gob.mx/_assets/classes/Categories.class.php
line = 153
function = delete_category
class = Categories
type = ->
args0 = 5
file = /home/juarezd1/admin-app.juarezdif.gob.mx/Categorias/index.php
line = 4
function = process
class = Categories
type = ->
args

Wolmart Market | Sitio de Administración