[bug] We have a problem...

Look here if you're having trouble with BitShop
Post Reply
thoughtless
Posts: 19
Joined: Fri Apr 01, 2016 11:22 am

[bug] We have a problem...

Post by thoughtless »

We have a problem...

The application encountered a fatal database error.

Error Code:

1451

Error Message:

Cannot delete or update a parent row: a foreign key constraint fails (`bshop`.`Orders`, CONSTRAINT `Orders_ibfk_1` FOREIGN KEY (`AccountID`) REFERENCES `Accounts` (`AccountID`))

MySQL Query:

DELETE FROM Accounts
WHERE AccountID = 11
Please contact the webmaster if the problem persists.

Click here to go back to the home page.

On page : https://domain.com/admin.php?page=accou ... 3c70f32954

I had to disable the user, then I tried to remove it and worked. The email was made on the same domain as the website. Mabe its a glitch or something.
User avatar
bitfreak
Site Admin
Posts: 98
Joined: Thu Dec 10, 2015 6:57 pm
Location: Australia
Contact:

Re: [bug] We have a problem...

Post by bitfreak »

If the user has made an order then you cannot completely delete that account because the order is linked to the account. Disabling the account is the solution in that situation.
Post Reply