Error message on duplicate key
-
I got quite a bit further on my quest to maintain a mailing list on a WP site. As I want an email to be in that list only once I have a unique key on the column Email.
And it works because I get an error when I try to add a record with an already existing email.
But the message I get is: ERROR: Wrong arguments [missing primary key value]
which is at least misleading.
When I try to add the same record in phpmyadmin I get an error that tells me what went wrong – something like duplicate key.
Is there a way to get better error messages for something like this?
Cheers,
Merlin
The topic ‘Error message on duplicate key’ is closed to new replies.