You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I attempted to upgrade the database in my local environment and received:
WordPress database error: [Duplicate entry '482' for key 'PRIMARY']
INSERT INTO `wp_give_logs` (`ID`, `log_title`, `log_content`, `log_parent`, `log_type`, `log_date`, `log_date_gmt`) VALUES (482, 'Stripe Error', 'The Stripe payment gateway returned an error while processing the donation.<br><br>Message: No such token: src_1BTO31LyXkL8xusLCFz4NDVd<br><br>', '0', 'gateway_error', '2017-11-28 21:23:58', '2017-11-29 05:23:58')
{"data":{"message":"","heading":"Update 1 of {update_count}","percentage":76.923076923076934,"step":3,"update":1,"update_info":{"id":"v20_logs_upgrades","version":"2.0.0","callback":"give_v20_logs_upgrades_callback","type":"database"}}}
Possible Solution
Check for duplicates so it doesn't error out and stop the upgrade routine
Steps to Reproduce (for bugs)
Download my .sql database
Import to local
Attempt to upgrade to 2.0
The text was updated successfully, but these errors were encountered:
Issue Overview
I attempted to upgrade the database in my local environment and received:
Possible Solution
Steps to Reproduce (for bugs)
The text was updated successfully, but these errors were encountered: