PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, May 15, 2022

[FIXED] How to solve Duplicate entry '0' for key 'PRIMARY' in Wordpress?

 May 15, 2022     php, woocommerce, woocommerce-theming, wordpress, wordpress-plugin-creation     No comments   

Issue

my website running perfect but today 1 order is placed by the customer, and I am getting this error in my website.

Here is the screenshot of error

enter image description here

error is here.. Fatal error: Uncaught RuntimeException: Error saving action: Error saving action: Duplicate entry '0' for key 'PRIMARY' in /home/website/public_html/wp-content/plugins/woocommerce/packages/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php:44


Solution

Go to table structure and then hover on More option in front of id field and then click on primary key. Here is screenshot

if problem still there after doing this then click on change in front of id field and check the A.I checkbox

Here is screenshot



Answered By - Subhan Khalid
Answer Checked By - Senaida (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing