Support » Plugin: Contact Form 7 » After updating WordPress CF7 stopped working

  • After updating WordPress on all my sites, CF7 stopped working

    WordPress v5.7
    Contact Form 7 – v5.4
    PHP – 7.4.16

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

Viewing 12 replies - 1 through 12 (of 12 total)
  • Mr_sordum

    (@paulcityhopper)

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Can you be more specific what you mean by “stopped working”? Do you get any error response message?

    Hi,

    had contact with our hoster saying that wordpress 5.7 has a change on sendmail (or jquery) function. They said i wait for the plugin to be updated or rollback to 5.6.2

    It the error with the red outline tho forms can not be send.

    kind regards
    andre

    • This reply was modified 3 months, 1 week ago by bekkadebokka.

    The issue on my end is that apparently the .initForm function has been removed, and I get a console error.

    Is there an alternative to reinit the forms? Because I can no longer find .initForm in the current version of the plugin.

    I can confirm that CF7 can’t send mails after updating to WP 5.7, CF7 latest version. Happens on several websites that use this combination

    Thread Starter Denis Creative

    (@denis-creative)

    I do not know how to explain it.

    – On several sites everything works as it should.
    – A spinner spins on several sites and the form is not submitted, there are no errors.
    – On one site, the form started submitting after Akismet was disabled.
    – On one site, instead of a success popup, a page refresh started happening.
    – One site displays an error “There was an error trying to send your message. Please try again later.” and the console is blank. https://denis-creative.com/kontakty/

    Behavior is completely different until I found the system.

    Enabling / disabling various caching or captcha plugins gave nothing on problem sites.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Each site has a different problem and different cause. You need to address them one by one in a different approach. All my responses in this topic is about https://denis-creative.com/kontakty/ Create a new topic if you want to ask about other sites’ problems.

    The “There was an error trying to send your message. Please try again later.” message is explained in this FAQ:

    FAQ > After submitting the form, I get an error message stating “There was an error trying to send your message.” What is wrong?

    Which border color do you see? Red or orange?

    Thread Starter Denis Creative

    (@denis-creative)

    @takayukister The border is red.

    Another site from this server with the same settings has no problem submitting the form.

    The console is clean with errors.

    Enabling / disabling various caching or captcha plugins gave nothing.

    Thread Starter Denis Creative

    (@denis-creative)

    jQuery version is 1.8.3

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    @takayukister – I do not receive any error message, when Submit is pressed on my website the wheel spins but the form does not submit. If I clear the cache on my website then the Contact Form will start working but only for a short period of time before the problem starts again. I am running WP 5.7 and Contact Form 7 v5.4.

    pca2014

    (@pca2014)

    The conflict caused by CF7 v5.4 is two fold.

    One, if your caching plugin is derring JavaScript then it breaks CF7. If you have WP-Rocket they have issued a fix for the conflict. The WP-Rocket fix can be replicated in other caching plugins by excluding the deferral of this JavaScript script.

    /wp-includes/js/dist/(.*).js

    But even with this fix in WP-Rocket or another caching program, CF7 forms will fail after 24 hours due to the author’s use of nonces (security tokens). The only way to workaround the problem is to refresh your page cache every 24-hours or uncache the page.

    I don’t consider this a solution, just a workaround due to the performance implications. Both fixes will degrade performance and hurt SEO.

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.