• we have a number of forms on the site and recently they stopped working they just spin on submission. Ive updated to all latest version of both plugins and whet through testing all the plugins on the site one by one.

    the result was when i deactivate woocommerce, the forms submit fine.

    ive downloaded and reinstalled CF 7 plugin manually to see.
    ive resaved permalinks

    CF7 version: 5.4
    Woocommerce version: 5.1.0 however issue existed with the previous version as well, i upgraded to see if it got solved but it did not

    in chrome inspector I see these errors
    /wp-json/contact-form-7/v1/contact-forms/1813/refill?_locale=user 403
    api-fetch.min.js?ver=a783d1f442d2abefc7d6dbd156a44561:2

    ———————-

    Response {type: "basic", url: "/wp-admin/admin-ajax.php?action=rest-nonce", redirected: false, status: 400, ok: false, …}body: (...)bodyUsed: falseheaders: Headers {}ok: falseredirected: falsestatus: 400statusText: ""type: "basic"url: "https://www.horseguardcanada.ca/wp-admin/admin-ajax.php?action=rest-nonce"__proto__: Response
    (anonymous) @ index.js?ver=5.4:1
    Promise.catch (async)
    p @ index.js?ver=5.4:1
    (anonymous) @ index.js?ver=5.4:1
    (anonymous) @ index.js?ver=5.4:1
    load (async)
    b @ index.js?ver=5.4:1
    (anonymous) @ index.js?ver=5.4:1
    (anonymous) @ index.js?ver=5.4:1

    ————–

    please let me know what i can do to get this working with contact form 7 again.
    cross posted in woocommerce support thread: https://www.ads-software.com/support/topic/contact-form-7-spins-with-woocommerce-enabled/#new-topic-0

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter ethical

    (@ethical)

    i should add if i add this function

    add_filter( ‘wpcf7_load_js’, ‘__return_false’ );

    the forms work but that doesnt really seem like a viable solution?

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    What other plugins and theme do you use on the site?

    Thread Starter ethical

    (@ethical)

    i have lots of other plugins, but i’ve tested and deactivated them all and the one thing holds true if i deactivate woocommerce, the forms work fine.. yes i tried different themes as well.

    Thread Starter ethical

    (@ethical)

    would love a reply from either plugin as to a solution, many others reporting the issue as well.

    i have added this code for now as cant have the forms not working
    add_filter( 'wpcf7_load_js', '__return_false' );

    but again thats just turning off JS not an ideal solution.

    John

    • This reply was modified 3 years, 8 months ago by ethical.
    Thread Starter ethical

    (@ethical)

    well the code i add allows the form to be submitted, however the thank you form has been sent message does not show up with this implemented.

    please help us solve this issue.

    Thread Starter ethical

    (@ethical)

    i should add the forms work fine if logged in as admin on wordpress, but not for the public

    Thread Starter ethical

    (@ethical)

    see work around posted here
    https://www.ads-software.com/support/topic/getting-http-403-and-http-400-responses-when-submitting-form-or-refreshing-nonce/
    appears to be an issue on the woocommerce side of things.

    I had this issue with WooCommerce being enabled. I added the following to my functions.php file in order to get it working again:

    add_filter( 'wpcf7_support_html5_fallback', '__return_true' );
    add_filter( 'wpcf7_load_js', '__return_false' );
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Contact form 7 spins with woocommerce enabled’ is closed to new replies.