• Resolved mfuller526

    (@mfuller526)


    I get this error when doing a test donation with Legacy. My multi-step form never loads, just spins. Help appreciated. Thank you!

    legacy
    Fatal error: Uncaught InvalidArgumentException: An error occurred when processing Donation #27488. To insert revenue, please provide valid donation_id, form_id, amount. in

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter mfuller526

    (@mfuller526)

    P.S. Here’s my spinning multi-step page: https://drcraigjohnson.org/multi-step-page-sc/

    Plugin Support Matheus Martins

    (@matheusfd)

    Hey @mfuller526,

    Happy to help you.

    This error: Uncaught InvalidArgumentException: An error occurred when processing Donation #27488. To insert revenue, please provide valid donation_id, form_id, amount. is happening because donation #27488 is missing some data. In this case, you need to navigate to Donations > Donations and see if you can fix it by assigning a donor, a donation form, or fixing the amount. If it doesn’t solve, then you need to delete this corrupted donation. After that, this error should be fixed. if you have similar errors like this one, you need to follow the same process.

    Regarding the spinning multi-step donation form, I see that there is an error 500 on the developer console, which is possibly indicating a conflict that is breaking the code. In this case, I suggest you follow our troubleshooting tutorials using Health Check. It allows you to isolate plugins and change themes for administrator, while the frontend still runs the live version of the website. You can see the documentation here:
    https://givewp.com/documentation/resources/troubleshoot-wordpress-websites-health-check/
    https://givewp.com/documentation/resources/how-to-troubleshoot-your-website-like-a-wordpress-support-engineer/

    Thanks for using GiveWP! Have a great day.

    Thread Starter mfuller526

    (@mfuller526)

    I used Health Check. The problem is definitely with my Avada Theme, but I don’t know what to do. No problem with theme 2021. Everything is fully updated. I used Firefox Web Developer tools and see the Internal Server 500 error for both my legacy and multi-step forms. Suggestions? Thanks.

    Fatal error: Uncaught InvalidArgumentException: An error occurred when processing Donation #27513. To insert revenue, please provide valid donation_id, form_id, amount. in /home/customer/www/drcraigjohnson.org/public_html/wp-content/plugins/give/src/Revenue/Repositories/Revenue.php:105 Stack trace: #0 /home/customer/www/drcraigjohnson.org/public_html/wp-content/plugins/give/src/Revenue/Repositories/Revenue.php(31): Give\Revenue\Repositories\Revenue->validateNewRevenueData(Array) #1 /home/customer/www/drcraigjohnson.org/public_html/wp-content/plugins/give/src/Revenue/DonationHandler.php(29): Give\Revenue\Repositories\Revenue->insert(Array) #2 [internal function]: Give\Revenue\DonationHandler->handle(27513) #3 /home/customer/www/drcraigjohnson.org/public_html/wp-content/plugins/give/src/Helpers/Hooks.php(37): call_user_func_array(Array, Array) #4 /home/customer/www/drcraigjohnson.org/public_html/wp-includes/class-wp-hook.php(294): Give\Helpers\Hooks::Give\Helpers\{closure}(27513) #5 /home/customer/www/drcraigjohnson.org/pub in /home/customer/www/drcraigjohnson.org/public_html/wp-content/plugins/give/src/Revenue/Repositories/Revenue.php on line 105

    Thread Starter mfuller526

    (@mfuller526)

    I have done the latest GiveWP updates plus those from my Avada theme. The plugin works with Twenty Twenty One out the box, but not Avada. Using Health Check and Avada ALL plugins are off and it fails. Seamless Donations works. I would like to start using GiveWP. Follow-up help appreciated. Thanks.

    https://drcraigjohnson.org/multi-step-page-sc/

    Thread Starter mfuller526

    (@mfuller526)

    (@matheusfd) I ran this which did not help. I’m seeing a lot with the same problem in the forum: https://wordpress.org/support/topic/wp_give_revenue-doesnt-exist/

    Plugin Support Rick Alday

    (@mrdaro)

    Hi @mfuller526,

    Go to Donations -> Tools -> System info, scroll down to the “GiveWP Configuration” section and make sure all Database Tables have a green checkmark next to them.

    Next, go to Donations -> Donations, locate donation #27488 and see if it has “donor missing” or is not assigned to any of your GiveWP forms.

    If it is, assign it to the correct donor and/or form. Check for any other donations with the same issue and correct them. That should fix the error you are getting. In most cases, this causes an error but not a fatal error so something in Avada is probably causing it to crash.

    Plugin Support Matheus Martins

    (@matheusfd)

    Hey @mfuller526,

    Do you still need assistance here? Feel free to reopen this ticket if you need further assistance and we’ll happily help you.

    Thanks for using GiveWP! Have a great day.
    Thanks for using GiveWP! Have a great day.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Legacy form test error’ is closed to new replies.