• Resolved mazze5

    (@mazze5)


    Hi,

    I use the Give-Plugin in version 2.9.5 for a while and it works fine. Today I have upgraded to 2.9.6 on my staging site and recognize an error.

    Environment:

    • Give Plugin 2.9.6 (the only thing that has change, before it worked)
    • Multistep Donation Form with paypal standard gateway

    The following error occurred when the donor is forwarded to my site from successfully paypal payment.

    
    Notice: Undefined index: date in .../public_html/wp-content/plugins/give/src/Session/SessionDonation/DonationAccessor.php on line 64
    
    Notice: Undefined index: donorInfo in .../public_html/wp-content/plugins/give/src/Session/SessionDonation/SessionObjects/Donation.php on line 100
    
    Warning: array_key_exists() expects parameter 2 to be array, null given in .../public_html/wp-content/plugins/give/src/Helpers/ArrayDataSet.php on line 23
    
    Warning: array_key_exists() expects parameter 2 to be array, null given in .../public_html/wp-content/plugins/give/src/Helpers/ArrayDataSet.php on line 23
    
    Notice: Undefined index: cardInfo in .../public_html/wp-content/plugins/give/src/Session/SessionDonation/SessionObjects/Donation.php on line 101
    
    Warning: Invalid argument supplied for foreach() in .../public_html/wp-content/plugins/give/src/Session/SessionDonation/SessionObjects/Donation.php on line 170
    
    Warning: array_key_exists() expects parameter 2 to be array, null given in .../public_html/wp-content/plugins/give/src/Helpers/ArrayDataSet.php on line 23
    
    Warning: array_key_exists() expects parameter 2 to be array, null given in .../public_html/wp-content/plugins/give/src/Helpers/ArrayDataSet.php on line 23
    
    Warning: array_key_exists() expects parameter 2 to be array, null given in .../public_html/wp-content/plugins/give/src/Helpers/ArrayDataSet.php on line 59
    
    Warning: array_key_exists() expects parameter 2 to be array, null given in .../public_html/wp-content/plugins/give/src/Helpers/ArrayDataSet.php on line 59
    
    Warning: array_key_exists() expects parameter 2 to be array, null given in .../public_html/wp-content/plugins/give/src/Helpers/ArrayDataSet.php on line 59
    
    Warning: array_key_exists() expects parameter 2 to be array, null given in .../public_html/wp-content/plugins/give/src/Helpers/ArrayDataSet.php on line 59
    
    Warning: array_key_exists() expects parameter 2 to be array, null given in .../public_html/wp-content/plugins/give/src/Helpers/ArrayDataSet.php on line 59
    
    Warning: array_key_exists() expects parameter 2 to be array, null given in .../public_html/wp-content/plugins/give/src/Helpers/ArrayDataSet.php on line 59
    
    Notice: Trying to access array offset on value of type null in .../public_html/wp-content/plugins/give/src/Session/SessionDonation/SessionObjects/Donation.php on line 155
    
    Notice: Trying to access array offset on value of type null in .../public_html/wp-content/plugins/give/src/Session/SessionDonation/SessionObjects/Donation.php on line 155
    
    Warning: array_intersect_key(): Expected parameter 1 to be an array, null given in .../public_html/wp-content/plugins/give/src/ValueObjects/DonorInfo.php on line 61
    
    Fatal error: Uncaught InvalidArgumentException: Invalid DonorInfo object, must have the exact following keys: wpUserId, firstName, email, honorific, address in .../public_html/wp-content/plugins/give/src/ValueObjects/DonorInfo.php:64 Stack trace: #0 .../public_html/wp-content/plugins/give/src/Session/SessionDonation/SessionObjects/Donation.php(106): Give\ValueObjects\DonorInfo::fromArray(NULL) #1 .../public_html/wp-content/plugins/give/src/Session/SessionDonation/DonationAccessor.php(77): Give\Session\SessionDonation\SessionObjects\Donation::fromArray(Array) #2 .../public_html/wp-content/plugins/give/src/Session/Accessor.php(139): Give\Session\SessionDonation\DonationAccessor->convertToObject(Array) #3 .../public_html/wp-content/plugins/give/src/Session/Accessor.php(128): Give\Session\Accessor->set() in .../public_html/wp-content/plugins/give/src/ValueObjects/DonorInfo.php on line 64

    The target URL thats called from paypal is ...../?giveDonationAction=showReceipt&payment-confirmation=paypal&payment-id=13588
    The payment was successful, the donation is marked as finished, but where normally the donation confirmation step in the multiform process will be shown the error occurred.

    With Chrome and FireFox in normal mode it is working, even FireFox private mode is working fine. Only with Chrome incognito window the described issue occurred.

    • This topic was modified 3 years, 9 months ago by mazze5.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Rick Alday

    (@mrdaro)

    Hi @mazze5,

    I have not been able to replicate this behavior in my test site.
    You can try it here: https://test.rickalday.com/donations/test-for-login-error/

    It’s in test mode so be sure to use Paypal Sandbox credentials to process the payment.

    It might be something specific to your Chrome settings and/or Chrome extensions.

    Try it on a different machine if you can.

    Thread Starter mazze5

    (@mazze5)

    Hi @mrdaro,

    thank you for your reply. I have tried it with your test site, it works. But I can see a difference you do not use the paypal standard gateway. I think in this combination is the problem. Do u have a test site with paypal standard gateway?

    Regards
    mazze

    Plugin Support Rick Alday

    (@mrdaro)

    Hi @mazze5,

    I was finally able to replicate this issue.
    I have filed a report and you can track the progress here: https://feedback.givewp.com/bug-reports/p/donation-confirmation-made-with-paypal-standard-fails-with-chrome-incognito

    Our feedback site is designed to be the single source for all updates on particular issues. If any movement has happened, it will be displayed there for both the public and our team internally.

    If specific feedback only has a handful of votes, that influences the priority we place on it. The more votes, the faster things get worked on!

    Thanks!

    Hi @mrdaro,

    I am also having this issue with Chrome browser (not incognito). This is what I get on the confirmation page when returning from PayPal:

    Warning: Invalid argument supplied for foreach() in .../public_html/wp-content/plugins/give/src/Session/SessionDonation/SessionObjects/Donation.php on line 170
    
    Warning: array_key_exists() expects parameter 2 to be array, null given in .../public_html/wp-content/plugins/give/src/Helpers/ArrayDataSet.php on line 23
    
    Warning: array_intersect_key(): Expected parameter 1 to be an array, null given in .../public_html/wp-content/plugins/give/src/ValueObjects/DonorInfo.php on line 61
    
    Fatal error: Uncaught InvalidArgumentException: Invalid DonorInfo object, must have the exact following keys: wpUserId, firstName, email, honorific, address in .../public_html/wp-content/plugins/give/src/ValueObjects/DonorInfo.php:64 Stack trace: #0 .../public_html/wp-content/plugins/give/src/Session/SessionDonation/SessionObjects/Donation.php(106): Give\ValueObjects\DonorInfo::fromArray(NULL) #1 .../public_html/wp-content/plugins/give/src/Session/SessionDonation/DonationAccessor.php(77): Give\Session\SessionDonation\SessionObjects\Donation::fromArray(Array) #2 .../public_html/wp-content/plugins/give/src/Session/Accessor.php(139): Give\Session\SessionDonation\DonationAccessor->convertToObject(Array) #3 .../public_html/wp-content/plugins/give/src/Session/Accessor.php(128): Give\Session\Accessor->set() #4 .../pu in .../public_html/wp-content/plugins/give/src/ValueObjects/DonorInfo.php on line 64

    I tried a transaction in Safari and the confirmation page displayed normally. I am using GiveWP 2.9.7 with the multi-step form.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Donation Confirmation fails with Chrome Incognito since Give 2.9.6’ is closed to new replies.