3
votes

Contact Form 7 - WordPress - Contact form 7 is not working for the first time when it is submitted but when I submits the same form second time it works fine. Error occurred for the first time is "There was an error trying to send your message. Please try again later."

1
You need to give more information for anyone to be able to help you.BlackPearl
Exactly the same error here... any solutions to this?Alen Šimunic
Are you using browser private window? only this problem came in private windowvadivel a

1 Answers

0
votes

It seems to check the invisible recaptcha first and on success, halt any further events (ie checking the form validation and submitting).

((null !== cf7SubmitElm) && (typeof jQuery != 'undefined')) ? jQuery(frm).submit() : HTMLFormElement.prototype.submit.call(frm);

to

((null !== cf7SubmitElm) && (typeof jQuery != 'undefined')) ? jQuery(cf7SubmitElm).trigger('click') : HTMLFormElement.prototype.submit.call(frm);

in file /Applications/MAMP/htdocs/pakulska/wp-content/plugins/invisible-recaptcha/engine/PublicEngine.php around line 78.