Posted: February 11, 2021 at 7:20 am
|
I got since the recent Update of my Event Espression this error :
[11-Feb-2021 14:13:11 UTC] PHP Notice: WPDB Erreur "Duplicate entry '0' for key 'PRIMARY'" tout en exécutant la méthode wpdb "insert" avec les arguments ["wp_esp_answer",{"REG_ID":1977,"QST_ID":16,"ANS_value":"testtest+test912@gmail.com"},["%d","%d","%s"]]. Tentative automatique de correction de EE Core DB. in /home/vialepol/public_html/wp-content/plugins/event-espresso-core-reg/core/db_models/EEM_Base.model.php on line 2387 [11-Feb-2021 14:13:11 UTC] Erreur de la base de données WordPress Duplicate entry '0' for key 'PRIMARY' pour la requête INSERT INTO [11-Feb-2021 14:13:11 UTC] PHP Notice: WPDB AGAIN: Erreur "Duplicate entry '0' for key 'PRIMARY'" tout en exécutant la même méthode et les mêmes arguments que précédemment. Tentative automatique de correction des EE Addons DB in /home/vialepol/public_html/wp-content/plugins/event-espresso-core-reg/core/db_models/EEM_Base.model.php on line 2387 [11-Feb-2021 14:13:11 UTC] Erreur de la base de données WordPress Duplicate entry '0' for key 'PRIMARY' pour la requête INSERT INTO My User can not subcribe to our events. The cart was good, but when enter firtname and email and try to subcribe they have an error popup. When I check the log i saw this. Wordpress : 5.6.1 |
|
I paste the error code here : https://pastebin.com/raw/5DFx2Qmt |
|
I juste found something interesting :
When I check the SQL Table So in the query missing one field, so they take the default value. But in our DB, the field |
Hi there, Did you create a backup of your database before updating? Do you have access to phpMyAdmin or similar through your host? It looks like your |
|
|
Thank you Tony, Yeah exactly I found they table either has corrupt data. So I check all WordPress Table and put the auto increment all where is needed. I found the same way some corrupted data. Thanks you again for your help! 🙂 |
You’re most welcome, I’m glad you found the problem. Any further issues just let us know 🙂 |
|
The support post ‘Duplicate entry '0' for key 'PRIMARY'’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.