• Resolved KerriKMS

    (@kerrikms)


    Using the donation form is not completing. All goes through, then we get errors on the screen like:
    “An unexpected error occurred while processing the donation. Please try again or contact the site administrator”. The error log showed this as what was causing the problem: Payment Gateway /
    PayPal order id is missing. (which I understand we’ll need to contact PayPal about)

    Then just today, received an email via WordPress with the following error:
    (Since the error thrown out is coming from your plugin, looks like you better take a look at it).

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 6.5.2
    Active theme: Rico (version 1.0.0)
    Current plugin: Give - Donation Plugin (version 3.9.0)
    PHP version 8.0.30
    
    Error Details
    =============
    An error of type E_ERROR was caused in line 155 of the file /home/playsafe/public_html/wp-content/plugins/give/src/Framework/Support/ValueObjects/Money.php. Error message: Uncaught TypeError: Give\Framework\Support\ValueObjects\Money::fromDecimal(): Argument #2 ($currency) must be of type string, null given, called in /home/playsafe/public_html/wp-content/plugins/give/src/Donations/DataTransferObjects/DonationQueryData.php on line 159 and defined in /home/playsafe/public_html/wp-content/plugins/give/src/Framework/Support/ValueObjects/Money.php:155
    Stack trace:
    #0 /home/playsafe/public_html/wp-content/plugins/give/src/Donations/DataTransferObjects/DonationQueryData.php(159): Give\Framework\Support\ValueObjects\Money::fromDecimal()
    #1 /home/playsafe/public_html/wp-content/plugins/give/src/Donations/Models/Donation.php(281): Give\Donations\DataTransferObjects\DonationQueryData::fromObject()
    #2 /home/playsafe/public_html/wp-content/plugins/give/src/Framework/Models/ModelQueryBuilder.php(130): Give\Donations\Models\Donation::fromQueryBuilderObject()
    #3 /home/playsafe/public_html/wp-content/plugins/give/src/Framework/Models/ModelQueryBuilder.php(86): Give\Framework\Models\ModelQueryBuilder->getRowAsModel()
    #4 /home/playsafe/public_html/wp-content/plugins/give/src/Donations/Repositories/DonationRepository.php(556): Give\Framework\Models\ModelQueryBuilder->get()
    #5 /home/playsafe/public_html/wp-content/plugins/give/includes/admin/tools/views/html-admin-page-exports.php(83): Give\Donations\Repositories\DonationRepository->getFirstDonation()
    #6 /home/playsafe/public_html/wp-content/plugins/give/includes/admin/tools/class-settings-export.php(100): include_once('/home/playsafe/...')
    #7 /home/playsafe/public_html/wp-includes/class-wp-hook.php(324): Give_Settings_Export::render_export_field()
    #8 /home/playsafe/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #9 /home/playsafe/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #10 /home/playsafe/public_html/wp-content/plugins/give/includes/admin/class-admin-settings.php(1016): do_action()
    #11 /home/playsafe/public_html/wp-content/plugins/give/includes/admin/class-admin-settings.php(439): Give_Admin_Settings::prepare_settings_field()
    #12 /home/playsafe/public_html/wp-content/plugins/give/includes/admin/abstract-admin-settings-page.php(242): Give_Admin_Settings::output_fields()
    #13 /home/playsafe/public_html/wp-includes/class-wp-hook.php(324): Give_Settings_Page->output()
    #14 /home/playsafe/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #15 /home/playsafe/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #16 /home/playsafe/public_html/wp-content/plugins/give/includes/admin/views/html-admin-settings.php(172): do_action()
    #17 /home/playsafe/public_html/wp-content/plugins/give/includes/admin/class-admin-settings.php(264): include('/home/playsafe/...')
    #18 /home/playsafe/public_html/wp-includes/class-wp-hook.php(324): Give_Admin_Settings::output()
    #19 /home/playsafe/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #20 /home/playsafe/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #21 /home/playsafe/public_html/wp-admin/admin.php(259): do_action()
    #22 /home/playsafe/public_html/wp-admin/edit.php(10): require_once('/home/playsafe/...')
    #23 {main}
    ? thrown

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

Viewing 1 replies (of 1 total)
  • Hi Kerri,

    Glad you reached out. Happy to help!

    Thanks for the information, the PHP error helps ??.

    For the PHP error, here are some recommendations I’d like you to go through:

    The error you are having usually happens when there are one or more donations with missing data.

    Could you go to the Donations -> Donations and switch to the legacy view. See screenshot below:

    legacyview.png

    Go through all your donations to see if any of them are missing the donor (“donor missing”) or are not attached to any donation form (Untitled). Usually, but not always, these donations are the oldest. Delete these donations and see if the error still shows up.

    Let me know once you’ve implemented and tested the above.

    For the PayPal issue I’d first like you to go through these steps:

    There’s a wide variety of reasons why you might struggle to get PayPal Donations connected correctly. Some of those reasons we can solve and some are things that PayPal needs to solve, but I’m here to help you as completely as I possibly can.

    The first thing you should do is confirm that you do not have GiveWP in “Test Mode.” If GiveWP is in test mode, it will attempt to connect PayPal Donations to the PayPal sandbox instead of your live PayPal account. In live mode, GiveWP connects to your live PayPal account. You can disable test mode by going to Donations > Settings > Payment Gateways.

    If you still have trouble connecting to PayPal, it’s possible something is cached in your browser. Some GiveWP users have had success by logging into their WordPress site in an incognito window and then connecting to PayPal there. After you make the connection incognito, you should be fine moving forward.

    If neither of those two things gets you connected, then most likely there’s an issue with your PayPal account and we want to get you connected with PayPal directly to resolve it. We created this intake form to give you more details about this problem and for you to get in touch with PayPal directly. Please make sure you complete the form as completely as possible: https://givewp.com/paypal-onboarding-reports/

    The form on that page sends an email directly to PayPal, to a team that we have been told is aware of any issues, and can walk you through connecting. We’re here to help as much as we can, but ultimately they’ll have to help if none of the steps above resolve things.

    However: there is a bug report about the PayPal order ID issue. I’ll link you to the report. Our Head of Support pinned a reply that I think is worthwhile reading. https://feedback.givewp.com/bug-reports/p/paypal-order-id-missing-error-should-not-prevent-donations-using-paypal-donation

    Let us know about deleting donations and if it resolves that issue ??.

    Have a good day!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.