Title: Error occurred when processing donation #153
Last modified: September 2, 2023

---

# Error occurred when processing donation #153

 *  Resolved [gandolfslayer](https://wordpress.org/support/users/gandolfslayer/)
 * (@gandolfslayer)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/error-occurred-when-processing-donation-153/)
 * Hello,
 * I am in the process of repairing and redesigning my clients website. However 
   I am noticing that they keep getting error messages.
 * The first error message is **Database Update**  – An unexpected issue occurred
   during the database update which caused it to stop automatically. Please contact
   support for assistance. 
 * The second error is
 * **Description:**An error occurred inserting data into the revenue table
 * **Category:**Core
 * **Source:**Revenue Migration
 * **Date & Time:**2023-09-02 21:33:51
 * **Error details:**{ “Data”: { “donation_id”: 153, “form_id”: 0, “amount”: 0 },“
   Error”: “An error occurred when processing Donation #153. To insert revenue, 
   please provide valid donation_id, form_id, amount.” }
 * I have tried to review the error walk through on [https://givewp.com/documentation/core/frequent-troubleshooting-issues/handling-database-update-issues/](https://givewp.com/documentation/core/frequent-troubleshooting-issues/handling-database-update-issues/)
   However I am still very confused and lost.
 * Please help me with this.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-occurred-when-processing-donation-153%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Support [Matheus Martins](https://wordpress.org/support/users/matheusfd/)
 * (@matheusfd)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/error-occurred-when-processing-donation-153/#post-17068824)
 * Hi, [@gandolfslayer](https://wordpress.org/support/users/gandolfslayer/).
 * I’m glad you reached out. I can certainly help you with this issue.
 * This is usually an indication that GiveWP is trying to upgrade the database but
   it’s hitting a roadblock. For a bit of context, the latest GiveWP updates included
   some database upgrades in order to provide new features right now and for the
   future.
 * For the error you are seeing, “Error:An error occurred when processing Donation#
   153. To insert revenue, please provide valid donation_id, form_id, amount.”, 
   here is how to fix it:
 * The issue here is related to Donations (likely very old ones) that have somehow
   become detached from their donation form in the database. From your error message,
   I see that it’s currently hung up on donation #153:
 * “Error:An error occurred when processing Donation #153. To insert revenue, please
   provide valid donation_id, form_id, amount.”
 * The slightly boring technical explanation of what’s going on there: the update
   routine in question has to do with moving old donations that were made before
   GiveWP had a concept of “revenue” into the new revenue database table. In order
   to add donations to the revenue table, it needs a donation ID, Form ID, and amount.
   If any single donation on the site does not have one of those three things, the
   updater stops and logs the error.
 * The fastest way around it is what you mentioned, deleting the offending donations.
   Unfortunately, it stops on the first one it finds and doesn’t tell you about 
   any others of them, so you have to comb through all the donations and find ones
   that are detached from their form.
 * Let us know about that first error, and we’re happy to dig in!
 * On the other hand, if there are any different errors, pass those along here.
 * Please let us know if you have further questions or need additional assistance!

Viewing 1 replies (of 1 total)

The topic ‘Error occurred when processing donation #153’ is closed to new replies.

 * ![](https://ps.w.org/give/assets/icon-256x256.jpg?rev=2873287)
 * [GiveWP - Donation Plugin and Fundraising Platform](https://wordpress.org/plugins/give/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/give/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/give/)
 * [Active Topics](https://wordpress.org/support/plugin/give/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/give/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/give/reviews/)

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [database update](https://wordpress.org/support/topic-tag/database-update/)

 * 1 reply
 * 2 participants
 * Last reply from: [Matheus Martins](https://wordpress.org/support/users/matheusfd/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/error-occurred-when-processing-donation-153/#post-17068824)
 * Status: resolved