Shop stopped working
Out of the blue, when customers order from our shop, they do not get a confirmation email, and we don't get the order email.
Email addresses are working.
I deleted the code that writes order details to the database quite a while ago (for security reasons), but we still received order emails, and our customers received confirmation emails.
I didn't change the code or the database.
To double-check, I uploaded the pages confirm and checkout pages.
As a result, the page now throws an error (duplicate entry for primary key).
How can I fix this?