• Resolved secit

    (@secit)


    I am trying the free version of GiveWP as I presently only need the odd single donation. I believe I set up Paypal standard correctly, and the test donation of $5.00 I made went through and I received confirmation of my donation. However, when returning from Paypal to go back to my site, I get this fatal error:

    Fatal error: Uncaught InvalidArgumentException: Invalid DonorInfo object, must have the exact following keys: wpUserId, firstName, email, honorific, address in /home3/eaglewor/public_html/icpleaders/wp-content/plugins/give/src/ValueObjects/DonorInfo.php:64 Stack trace: #0 /home3/eaglewor/public_html/icpleaders/wp-content/plugins/give/src/Session/SessionDonation/SessionObjects/Donation.php(106): Give\ValueObjects\DonorInfo::fromArray(NULL) #1 /home3/eaglewor/public_html/icpleaders/wp-content/plugins/give/src/Session/SessionDonation/DonationAccessor.php(77): Give\Session\SessionDonation\SessionObjects\Donation::fromArray(Array) #2 /home3/eaglewor/public_html/icpleaders/wp-content/plugins/give/src/Session/Accessor.php(139): Give\Session\SessionDonation\DonationAccessor->convertToObject(Array) #3 /home3/eaglewor/public_html/icpleaders/wp-content/plugins/give/src/Session/Accessor.php(128): Give\Session\Accessor->set() #4 /home3/eaglewor/public_html/icpleaders/wp-content/plugins/give/src/Helpers/Frontend/ConfirmDonation.php(30) in /home3/eaglewor/public_html/icpleaders/wp-content/plugins/give/src/ValueObjects/DonorInfo.php on line 64

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Rick Alday

    (@mrdaro)

    Hi @secit,

    If you are still experiencing this issue, do you have a staging site where we can test this without using real money?

    We have receipt two previous reports of this and both users claimed the error sort of fixed itself out. So we have not been able to replicate it but it seems like a cache-related issue.

    mkrajeev

    (@mkrajeev)

    Hi @mrdaro

    We’re facing the same error on our donation form which we’re trying to set up here: https://egmh.org/donations/donation-form. Currently, we have enabled only PayPal Sandbox for testing purposes but ran into this issue while testing. You can view the error screenshot here – https://ibb.co/s2PxRYH.

    On the other hand, we’re getting a blank page on return from Stripe checkout page as you can view here – https://ibb.co/DpLP1Wd.

    The test payments seem to be go through as we’re getting confirmation emails too but the payment confirmation pages have above issues which need to be addressed before we can switch to the live mode for payment gateways.

    Could you please help with above issues?

    Thanks

    hey,
    I got the same error on my site. Are there any solutions?
    I could figure out, that it has something todo with GIVEWP and LiteSpeed Cache Plugin. If I disable LiteSpeed Cache Plugin, then the payment with PayPal works fine.

    • This reply was modified 3 years, 10 months ago by mazze5.

    I could solve my problem. I had to exclude the donation confirmation page from being cached in the LiteSpeedCache-Plugin.

    This is done in settings of LiteSpeed Cache Plugin under Excludes and there “Do not cache URIs” add your slash url of your donation confirmation page. For instance /donation-confirmation

    Maybe this helps someone else

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error on return from Paypal’ is closed to new replies.