• Resolved paolabozhilova

    (@paolabozhilova)


    Hi, I can’t find the reason all forms of Contact Form 7 stopped working. When you press the submit button, a gray circle starts spinning and nothing happens, no email is sent or received. An error is displayed in the console status 403. This error occurs only if the user of the site is a guest, if the user is inside his account, everything is sent and received.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

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

    Hi,

    As many other sites, one of my client’s site fails too with CF7 v5.4. Latest WP version and PHP 7.4.

    Disabling WP Fastest Cache v0.9.1.7 plugin, all seems to work fine. Probably many other cache plugins causes the same failure.

    Console messages after loading page with the form:

    /wp-json/contact-form-7/v1/contact-forms/3799/refill?_locale=user:1 Failed to load resource: the server responded with a status of 403 ()
    /wp-admin/admin-ajax.php?action=rest-nonce:1 Failed to load resource: the server responded with a status of 400 ()
    index.js?ver=5.4:1 Responsebody: (...)bodyUsed: falseheaders: Headers?{}ok: falseredirected: falsestatus: 400statusText: ""type: "basic"url: "https://myclientsite.com/wp-admin/admin-ajax.php?action=rest-nonce"__proto__: Response
    (anonymous) @ index.js?ver=5.4:1

    After trying to submit:

    /wp-json/contact-form-7/v1/contact-forms/3799/feedback?_locale=user:1 Failed to load resource: the server responded with a status of 403 ()
    /wp-admin/admin-ajax.php?action=rest-nonce:1 Failed to load resource: the server responded with a status of 400 ()
    index.js?ver=5.4:1 Response
    (anonymous) @ index.js?ver=5.4:1

    None of these errors appears when it works.

    Best regards.

    • This reply was modified 3 years, 7 months ago by ABCdatos.
    • This reply was modified 3 years, 7 months ago by ABCdatos.
    Thread Starter paolabozhilova

    (@paolabozhilova)

    Thanks for the answers!
    We found the problem in the B2B for WooCommerce plugin we use. Once we deactivate it, all forms work.

    Thread Starter paolabozhilova

    (@paolabozhilova)

    Hello again. I thought the problem was solved but it is not.
    @abcdatos I tried and turned off the caching plugin that we use NitroPack, but again no result.
    @takayukister The theme we use is BeTheme, and the plugins are:
    -All-in-One WP Migration
    -B2B for WooCommerce
    -Contact Form 7
    -Contact Form 7- Dynamic Text Extension
    -Contact Form 7 Multilingual
    -CopyPoison
    -EWWW Image Optimizer
    -Facebook for WooCommerce
    -File Manager
    -Force Regenerate Thumbnails
    -GDPR Cookie Compliance (CCPA, PIPEDA ready)
    -NitroPack
    -Slider Revolution
    -String Locator
    -TI WooCommerce Wishlist
    -Woo Product Shortcodes (Free)
    -WooCommerce
    -WooCommerce Multilingual
    -WordPress Importer
    -WPBakery Visual Composer
    -WPML Media
    -WPML Multilingual CMS
    -WPML String Translation
    -WPML Translation Management
    -Yoast SEO
    -Класически редактор

    Interesting coincidence, affected site also uses BeTheme. After cache plugin deactivation, no more failures experienced.

    Maybe you deactivated cache plugin but not emptied the cache? Every time I update Be, I clear the cache like this:

    rm -rf /var/www/mysite.com/web/wp-content/cache/all/

    It means to empty the contents of the wp-content/cache/all/ folder, it’s harmless.

    Thread Starter paolabozhilova

    (@paolabozhilova)

    @abcdatos Yes, I cleared the whole folder, I cleared the browser cache too, but no result.
    I even Rollback to an older version of the plugin because I realized that there was a problem with the new one, which was reported.

    @takayukister why is this still marked resolved? @paolabozhilova said it’s not.

    I’ve experienced the same problem, it happens when a “nonce” (a small validity token) expires. The form that crashes completely, with no feedback to the user, see https://github.com/takayukister/contact-form-7/issues/421

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Cookie nonce is invalid with status 403’ is closed to new replies.