• Resolved benginear

    (@benginear)


    I’m using the latest version, and whenever I create a new form and test it, on submission I see this error:

    {"success":false,"data":{"type":"validation_error","errors":{"errors":{"formId":["Invalid Form ID, Form not found"]},"error_data":[]}}}

    I’ve set the relevant gateways for the visual and option-based form builder.

    I see the following in the apache error log:

    [Fri Dec 01 20:52:40.117082 2023] [proxy_fcgi:error] [pid 150266] [client 2a02:8012:8f28:0:210e:1f41:e896:1711:0] AH01071: Got error 'PHP message: PHP Warning:  Undefined array key "formId" in /home/storm/sites/mysite/public/shop/wp-content/plugins/give/src/DonationForms/DataTransferObjects/DonateFormRouteData.php on line 50PHP message: PHP Warning:  Undefined array key "gatewayId" in /home/storm/sites/mysite/public/shop/wp-content/plugins/give/src/DonationForms/DataTransferObjects/DonateFormRouteData.php on line 51PHP message: PHP Warning:  Undefined array key "originUrl" in /home/storm/sites/mysite/public/shop/wp-content/plugins/give/src/DonationForms/DataTransferObjects/DonateFormRouteData.php on line 52PHP message: PHP Warning:  Undefined array key "isEmbed" in /home/storm/sites/mysite/public/shop/wp-content/plugins/give/src/DonationForms/DataTransferObjects/DonateFormRouteData.php on line 53', referer: https://www.mysite.net/shop/donations/givewp-donation-form-2/

    Any pointers would be appreciated.

    Note that this is using the new Visual form builder. If I switch to the legacy builder, everything works as expected.

    • This topic was modified 11 months, 3 weeks ago by benginear.
    • This topic was modified 11 months, 3 weeks ago by benginear.
Viewing 1 replies (of 1 total)
  • Plugin Support Matheus Martins

    (@matheusfd)

    Hi, @benginear.

    Glad you reached out.

    We’ve seen this issue before when you put the PayPal gateway in test mode and try to complete a sandbox transaction on the new?donation form. In this case, you need to disconnect and connect PayPal again.

    However, there’s a funny thing with disconnecting from PayPal. You have to disconnect from your sandbox PayPal account?only?when GiveWP is in Test Mode (you can enable that at Donations >> Settings >> Payment Gateways), and only disconnect from the live account when GiveWP is in Live Mode. Could that be the issue here?

    If not, you might be running into an issue we had in the past. We fixed it but we also created a workaround. We made a screencast showing you how to resolve it in the meantime. The password to view the screencast is “PayPal” (no quotes, but capitalization matters) https://screencast-o-matic.com/watch/c3Q3qOVOGCs

    The video talks about being unable to disconnect from PayPal but the same process will fix your issue.

    Important notes from the screencast:

    1. The SQL Buddy plugin is super powerful, and you can really mess up your site if you don’t know what you’re doing. Have a backup ready if you’re unsure about things.
    2. If you are in GiveWP test mode, the option you are looking to remove is give_paypal_commerce_sandbox_account but if you are not in test mode, it’s give_paypal_commerce_live_account
    3. The table you should be looking at is the wp_options table. Your site may have a different prefix than wp_.

    I suggest you back up first, just in case. 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 us know if you have further questions or need additional assistance!

Viewing 1 replies (of 1 total)
  • The topic ‘Validation Error using new form builder’ is closed to new replies.