• Resolved mariusz86

    (@mariusz86)


    Hello,

    After Update CF7 to version 5.4.1 forms not working on my 2 Websites.

    Website number 1 show this console error: https://ibb.co/tzDxxZd

    Website number 2 show false request for admin-ajax.php. SEND button not working. Validation does not work. I installed an earlier version of CF7 on this site to allow customers to contact me.

    Errors only appear on pages where CF7 has been added. JS Combine and Minify is deactivated.

    • This topic was modified 4 years ago by mariusz86.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can we see the website in question?

    Thread Starter mariusz86

    (@mariusz86)

    I reinstalled CF7 and now everything works. It must have been some error during the update.

    pca2014

    (@pca2014)

    @mariusz86)

    CF7 version 5.4. has a conflict with caching combining JavaScript and deferring Javascript. If you have WP-Rocket they have a fix. But that’s only half the problem. CF7 now uses nonces (security token) and it has to be refresh every 12 or 24 hours, which means you’ll have to clear your cache once or twice a day.

    Look down the forum and you’ll see tons of comments about this.

    Be forewarned that if you’re logged in as admin it will always work because you’re likely bypassing the cache. You either need to be logged out of WordPress or access it through a web browser in private mode to test if it’s working for other users.

    Thread Starter mariusz86

    (@mariusz86)

    @pca2014

    Thank you for your reply. I can confirm the problem. After 24 hours CF7 stops working and console shows error. After clearing the cache the problem stops. I am using LiteSpeed Cache and so far no knowledge of any update. Do you know a solution to this problem?

    Best Regards

    pca2014

    (@pca2014)

    @mariusz86

    CF7 stops after 24-hours because the “nonce” (security token) becomes invalid. The only solution is to refresh the cache every 24-hours. I did read in one post that it’s possible to change the lifespan of the nonce but I’m not sure what the broader security implications would be for general site security.

    Either way I don’t see this as a long term solution, since refresh the cache every 24-hours can cause a serious performance hit, especially if your using Cloudflare or a similar service and modifying the nonce life may result in security implications beyond CF7.

    The plugin should have been designed not to conflict with the cache and the use of nonces should be optional.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘After update to 5.4.1 send not working – console errors’ is closed to new replies.