Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Give 2.0] Upgrade WP Db Error #2560

Closed
DevinWalker opened this issue Dec 20, 2017 · 0 comments
Closed

[Give 2.0] Upgrade WP Db Error #2560

DevinWalker opened this issue Dec 20, 2017 · 0 comments
Assignees
Milestone

Comments

@DevinWalker
Copy link
Member

Issue Overview

I attempted to upgrade the database in my local environment and received:

2017-12-20_15-38-50

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)

  1. Download my .sql database
  2. Import to local
  3. Attempt to upgrade to 2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants