• Resolved Josh

    (@jmccallweb)


    We’re using GiveWP + Stripe on Dreamhost hosted website. Although all our settings look good, all donations are failing with this message: “The following error occurred when submitting the form: Something went wrong, please try again or contact support.”

    Some things I’ve tried that have no helped:

    DISABLE WP SUPER CACHE
    Donations still fail. I’m not seeing any caching via my Dreamhost admin (have not yet contacted support) but these are my cache exclusions for when the plugin is active:

    wp-.*.php
    index.php
    /donor-dashboard/
    /cart/
    /my-account/
    /checkout/
    /donor-dashboard/
    /donation-confirmation/
    /donation-failed/
    /donation-history/
    /recurring-donations/
    /thank-you-for-your-support/
    ?give-listener=stripe

    Switch from Stripe Modal to Stripe Redirect (Checkout 2.0)
    No effect on the error, though it also wasn't visibly obvious that the checkout had changed. Shouldn't the second option actually take me to stripe?

    Attempt Donation on Staging Copy of Site, Different Host
    Donations go through perfectly. Which suggests the issue is specific to the live site but I can't figure how.

    Here are some logs, in case they're helpful.

    Browser Console Errors:

    Unchecked runtime.lastError: Cannot create item with duplicate id XXXXXXXXXX https://givewp.com/documentation/resources/caching/
    Unchecked runtime.lastError: Cannot create item with duplicate id Fill - XXXXXXXXXX https://givewp.com/documentation/resources/caching/
    Unchecked runtime.lastError: Cannot create item with duplicate id Edit - XXXXXXXXXX https://givewp.com/documentation/resources/caching/
    Unchecked runtime.lastError: Cannot create item with duplicate id Copy first name - XXXXXXXXXX https://givewp.com/documentation/resources/caching/
    Unchecked runtime.lastError: Cannot create item with duplicate id Copy last name - XXXXXXXXXX https://givewp.com/documentation/resources/caching/
    Unchecked runtime.lastError: Cannot create item with duplicate id Copy address line 1 - XXXXXXXXXX https://givewp.com/documentation/resources/caching/
    Unchecked runtime.lastError: Cannot create item with duplicate id Copy city/town - XXXXXXXXXX https://givewp.com/documentation/resources/caching/
    Unchecked runtime.lastError: Cannot create item with duplicate id Copy ZIP/postal code - XXXXXXXXXX https://givewp.com/documentation/resources/caching/
    Unchecked runtime.lastError: Cannot create item with duplicate id Copy email address - XXXXXXXXXX https://givewp.com/documentation/resources/caching/
    Unchecked runtime.lastError: Cannot create item with duplicate id Copy phone number - XXXXXXXXXX https://givewp.com/documentation/resources/caching/
    Unchecked runtime.lastError: The page keeping the extension port is moved into back/forward cache, so the message channel is closed.

    GiveWP Tools > Logs
    (There are lots of these, for each failed donation. All look the same. I've removed all identifying information.)
    {
    "error_type": "unknown_error",
    "exceptionMessage": "Database Query",
    "formData": {
    "gatewayId": "stripe_payment_element",
    "requestData": {
    "givewp-route": "donate",
    "givewp-route-signature": "XXXXXXXXXXXXXXXXXXXX",
    "givewp-route-signature-id": "givewp-donate",
    "givewp-route-signature-expiration": "XXXXXXXX",
    "amount": "5",
    "currency": "USD",
    "donationType": "single",
    "formId": "12902",
    "firstName": "Josh",
    "lastName": "XXXXXXXX",
    "email": "XXXXXXXX",
    "gatewayId": "stripe_payment_element",
    "comment": "",
    "country": "US",
    "address1": "XXXXXXXX",
    "address2": "",
    "city": "XXXXXXXX",
    "state": "XX",
    "zip": "XXXXXXXX",
    "anonymous": "false",
    "donationBirthday": "",
    "originUrl": "https://www.XXXXXXXX.com/about-passager/donate/",
    "isEmbed": "true",
    "embedId": "give-form-shortcode-1",
    "locale": "en_US",
    "gatewayData": {
    "stripePaymentMethod": "card",
    "stripePaymentMethodIsCreditCard": "redacted",
    "formId": "12902",
    "stripeKey": "XXXXXXXX",
    "stripeConnectedAccountId": "XXXXXXXX"
    },
    "woocommerce-login-nonce": null,
    "_wpnonce": null,
    "woocommerce-reset-password-nonce": "redacted",
    "woocommerce-edit-address-nonce": null,
    "save-account-details-nonce": null
    },
    "formId": 12902,
    "originUrl": "https://www.XXXXXXXX.com/about-passager/donate/",
    "embedId": "give-form-shortcode-1",
    "isEmbed": true
    }
    }


    Thanks for your help!

    • This topic was modified 5 months, 3 weeks ago by Jan Dembowski. Reason: Formatting

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Matheus Martins

    (@matheusfd)

    Hi, @jmccallweb.

    I’m glad you reached out. I can certainly help you.

    That error message means that during the donation process, an error occurred but that the information is not public. Whenever there is a payment error (declined card, etc) GiveWP displays an error on the front end to the donor, and logs an error in the logs at Donations > Tools > Logs > Payment Errors.

    What errors are you seeing when you click on an individual error log entry there?

    Looking forward to helping you get to the bottom of this!

    Thread Starter Josh

    (@jmccallweb)

    Hi Matheus –

    The GiveWP logged error is in my post, just hard to see because a forum mod modified my formatting. 🙂

    Here it is again:

    {
    "error_type": "unknown_error",
    "exceptionMessage": "Database Query",
    "formData": {
    "gatewayId": "stripe_payment_element",
    "requestData": {
    "givewp-route": "donate",
    "givewp-route-signature": "XXXXXXXXXXXXXXXXXXXX",
    "givewp-route-signature-id": "givewp-donate",
    "givewp-route-signature-expiration": "XXXXXXXX",
    "amount": "5",
    "currency": "USD",
    "donationType": "single",
    "formId": "12902",
    "firstName": "Josh",
    "lastName": "XXXXXXXX",
    "email": "XXXXXXXX",
    "gatewayId": "stripe_payment_element",
    "comment": "",
    "country": "US",
    "address1": "XXXXXXXX",
    "address2": "",
    "city": "XXXXXXXX",
    "state": "XX",
    "zip": "XXXXXXXX",
    "anonymous": "false",
    "donationBirthday": "",
    "originUrl": "https://www.XXXXXXXX.com/about-passager/donate/",
    "isEmbed": "true",
    "embedId": "give-form-shortcode-1",
    "locale": "en_US",
    "gatewayData": {
    "stripePaymentMethod": "card",
    "stripePaymentMethodIsCreditCard": "redacted",
    "formId": "12902",
    "stripeKey": "XXXXXXXX",
    "stripeConnectedAccountId": "XXXXXXXX"
    },
    "woocommerce-login-nonce": null,
    "_wpnonce": null,
    "woocommerce-reset-password-nonce": "redacted",
    "woocommerce-edit-address-nonce": null,
    "save-account-details-nonce": null
    },
    "formId": 12902,
    "originUrl": "https://www.XXXXXXXX.com/about-passager/donate/",
    "embedId": "give-form-shortcode-1",
    "isEmbed": true
    }
    }

    Plugin Support Robin Joshua Del Mundo

    (@robindelmundo)

    Hi @jmccallweb ,

    Thanks for sending that along!

    I don’t have your system info, but the error that you sent happens when there are still pending database migrations on your website. For context, GiveWP is a complex plugin that extensively interfaces with your site’s database. From time to time, modifications to the database structure itself need to happen, whether to increase performance or to resolve issues. When that is the case, you will see a prompt on every admin (backend) page of your site.

    These updates to database structure have been tested on a wide variety of server setups and on extremely large datasets. But as is the case often in software development, unforeseen edge cases can slip through. The one variable the GiveWP team can’t control is the hosting environment your site has, and in a handful of cases, some server and database configurations have proven impossible to perform the updates.

    To solve this, go through the following steps within GiveWP on your website:

    1. Before taking any steps for troubleshooting or updating, I highly recommend taking a good backup of the site you can confidently restore from. Having a backup of your site is essential to a solid workflow, and will allow you to restore to a previous version of the site if you run into any issues. You can read more about our top recommendations for taking a backup here: https://givewp.com/backup-for-faster-troubleshooting/.
    2. Enable Advanced Database Updates in GiveWP→ Settings → Advanced.
    3. Next, go to the GiveWP→ Tools → Data page, and re-run any pending/failed updates.
    4. Check the logs at GiveWP→ Tools → Logs for errors. If there are any errors, pass those along here.
    5. Last, navigate back to GiveWP→ Settings → Advanced and disable Advanced Database Updates.

    You can also read more about this in here — https://givewp.com/documentation/core/frequent-troubleshooting-issues/handling-database-update-issues/.

    Before taking any steps for troubleshooting or updating, I highly recommend taking a good backup of the site you can confidently restore from. Having a backup of your site is essential to a solid workflow, and will allow you to restore to a previous version of the site if you run into any issues. You can read more about our top recommendations for taking a backup here: https://givewp.com/backup-for-faster-troubleshooting/.

    Please let me know once you implemented and tested the above. Try to do a test donation to see if the issue persists.

    Meanwhile, I’m here for further questions.

    Looking forward to helping you get to the bottom of this!

    Thread Starter Josh

    (@jmccallweb)

    Hi Robin – I went through those steps and all the DB updates were marked as successful. There are about 4 pages of items, all successful.

    Any other suggestions? Or info I could share that might help get to the bottom of this?

    Plugin Support Robin Joshua Del Mundo

    (@robindelmundo)

    Hi @jmccallweb ,

    Please excuse the slow turnaround here.

    When we encounter that error, it’s usually related to a database update that has failed or is still pending.

    Can you also share your system info?

    Navigate to GiveWP → Tools → System Info (tab) and click the button to “Get System Report” and copy/paste that in your reply here.

    That will give me some more context to be able to help.

    Looking forward to helping you get to the bottom of this!

    Thread Starter Josh

    (@jmccallweb)

    Here you go:

    WordPress Environment

    Home URL: https://www.passagerbooks.com
    Site URL: https://www.passagerbooks.com
    WP Version: 6.8.1
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: âś”
    Language: en_US
    Permalink Structure: /%postname%/
    Show on Front: page
    Page on Front: Home (#27)
    Page for Posts: Podcast: Burning Bright (#36)
    Table Prefix Length: wp_br723j_
    Table Prefix Length: 10
    Table Prefix Status: Acceptable
    Admin AJAX: Accessible
    Registered Post Statuses: publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed, acf-disabled, wc-pending, wc-processing, wc-on-hold, wc-completed, wc-cancelled, wc-refunded, wc-failed, wc-checkout-draft, refunded, failed, revoked, cancelled, abandoned, processing, preapproval, upgraded, tribe-ea-success, tribe-ea-failed, tribe-ea-schedule, tribe-ea-pending, tribe-ea-draft, tribe-ignored Server Environment

    Hosting Provider: DBH: mysql.passagerbooks.com, SRV: www.passagerbooks.com
    TLS Connection: Connection uses TLS 1.3
    TLS Connection: Probably Okay
    Server Info: Apache
    PHP Version: 8.4.2
    PHP Post Max Size: 512 MB
    PHP Time Limit: 500
    PHP Max Input Vars: 3000
    PHP Max Upload Size: 250 MB
    cURL Version: 7.81.0, OpenSSL/3.0.2
    SUHOSIN Installed: –
    MySQL Version: 8.0.28
    Default Timezone is UTC: âś”
    fsockopen/cURL: âś”
    SoapClient: âś”
    DOMDocument: âś”
    gzip: âś”
    GD Graphics Library: âś”
    Multibyte String: âś”
    Remote Post: âś”
    Remote Get: âś” GiveWP Configuration

    GiveWP Version: 4.3.2
    GiveWP Cache: Enabled
    Database Updates: All DB Updates Completed.
    Database Updates: All Database Migrations Completed.
    Database Tables: âś” wp_br723j_give_donorsâś” wp_br723j_give_donormetaâś” wp_br723j_give_commentsâś” wp_br723j_give_commentmetaâś” wp_br723j_give_sessionsâś” wp_br723j_give_formmetaâś” wp_br723j_give_sequential_orderingâś” wp_br723j_give_donationmetaâś” wp_br723j_give_revenueâś” wp_br723j_give_migrationsâś” wp_br723j_give_log
    GiveWP Cache: Enabled
    GiveWP Cache: ✔New Donation✔Donation Receipt✔Donation Processing Receipt✔New Offline Donation✔Offline Donation Instructions✔New User Registration✔User Registration Information✔Donation Note✔Email access
    Upgraded From: 4.3.1
    Test Mode: Disabled
    Currency Code: USD
    Currency Position: Before
    Decimal Separator: .
    Thousands Separator: ,
    Success Page: https://www.passagerbooks.com/thank-you-for-your-support/
    Failure Page: –
    Donation History Page: https://www.passagerbooks.com/donor-dashboard/
    GiveWP Forms Slug: /donations/
    Enabled Payment Gateways: Test Donation, Offline Donation, Stripe - Payment Element
    Default Payment Gateway: Test Donation
    PayPal IPN Notifications: N/A
    Donor Email Access: Enabled
    Stripe Webhook Notifications: N/A
    Platform Fee Amount: 2% Active GiveWP Add-ons Other Active Plugins

    Advanced Custom Fields PRO: by WP Engine – 6.4.2
    DreamHost Panel Login: by DreamHost, danielbachhuber – 1.0.0
    Kadence Blocks - PRO Extension: by Kadence WP – 2.7.10
    Kadence Blocks – Gutenberg Blocks for Page Builder Features: by Kadence WP – 3.5.10
    Kadence CAPTCHA: by Kadence WP – 1.3.5
    Kadence Custom Fonts: by Kadence WP – 1.1.5
    Kadence Pro - Premium addon for the Kadence Theme: by Kadence WP – 1.1.12
    Passager Custom Functionality Plugin: by Josh McCall – 1.0
    Post Types Order: by Nsp Code – 2.3.7
    PublishPress Authors: by PublishPress – 4.7.6
    Safe Redirect Manager: by 10up – 2.2.2
    Safe SVG: by 10up – 2.3.1
    Site Kit by Google: by Google – 1.154.0
    Starter Templates by Kadence WP: by Kadence WP – 2.2.9
    The Events Calendar: by The Events Calendar – 6.13.2.1
    UpdraftPlus - Backup/Restore: by TeamUpdraft, DavidAnderson – 1.25.6
    WooCommerce: by Automattic – 9.9.3
    WooCommerce Shipping: by WooCommerce – 1.7.3
    WooCommerce Stripe Gateway: by Stripe – 9.5.2
    WooCommerce Tax: by WooCommerce – 3.0.3
    Wordfence Security: by Wordfence – 8.0.5
    WP Super Cache: by Automattic – 3.0.0
    Yoast SEO: by Team Yoast – 25.3 Inactive Plugins Theme

    Name: Passager Theme 2024
    Version: 1.0.7
    Author URL: http://joshmccall.com/
    Child Theme: Yes
    Parent Theme Name: Kadence
    Parent Theme Version: 1.2.25
    Parent Theme Author URL: https://www.kadencewp.com/
    Thread Starter Josh

    (@jmccallweb)

    Hi – Still hoping to get help on this. I have a couple more bits of info.

    -We get the exact same error with PayPal as with Stripe.
    -If I put the site into Troubleshooting mode (with the Healthcheck plugin) and disable everything but GiveWP and the Twenty-Twenty-Five theme, we again get the same error.

    • This reply was modified 5 months, 1 week ago by Josh.
    Plugin Support Robin Joshua Del Mundo

    (@robindelmundo)

    Hi @jmccallweb ,

    In that case we would like to dig in to this deeper.

    To look further into this, please contact us in the following link – https://givewp.com/contact-us/. Then for the subject of the inquiry, select the option “I am responding to a request to contact you”.

    I’m marking this as resolved for now but please reach out to us so that we can take a look at this further.

    Please let me know if you have further questions.

    I’m always happy to help!

    Thread Starter Josh

    (@jmccallweb)

    Thanks. Message sent!

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

You must be logged in to reply to this topic.