Replies: 1
We have many duplicated WP sites (different instances, but same plug-ins / code). Since updating to v5.4.1, getting js errors on page load and every time you try click the “Submit” button of the contact form (form has been working fine before v5.4.1 update). The form just hangs, nothing is submitted. Here is the site that is still broken: https://pl.faluninfo.net/contact-us/
We have Recaptcha v3 integration activated. If deactivated, the JS errors still happen, BUT the form submit works fine. Here is this site: https://es.faluninfo.net/contact-us
Oddly, if cf7 plugin is reverted to 5.4, the problem still exists. After reverting back to 5.3.2 everything works fine again (w/ recaptcha enabled, no js errors). Here is where it’s working fine with cf v5.3.2: https://faluninfo.net/contact-us/
**This is the JS error on load:**
index.js?ver=5.4.1:formatted:334 Uncaught TypeError: Cannot set property 'innerText' of null
at b (index.js?ver=5.4.1:formatted:334)
at index.js?ver=5.4.1:formatted:398
at d.reduceRight.c (index.js?ver=5.4.1:formatted:180)
at p (index.js?ver=5.4.1:formatted:229)
at Object.m [as reset] (index.js?ver=5.4.1:formatted:374)
at HTMLFormElement.<anonymous> (index.js?ver=5.4.1:formatted:581)
at index.js?ver=5.4.1:formatted:577
This looks like the line where the error occurs:
e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText = ""
**This is the JS error when clicking the submit button (just notice it’s at line 166 vs 334 above):**
index.js?ver=5.4.1:formatted:166 TypeError: Cannot set property 'innerText' of null
at b (index.js?ver=5.4.1:formatted:334)
at index.js?ver=5.4.1:formatted:326
at d.reduceRight.c (index.js?ver=5.4.1:formatted:180)
at index.js?ver=5.4.1:formatted:401
at d.reduceRight.c (index.js?ver=5.4.1:formatted:180)
at p (index.js?ver=5.4.1:formatted:229)
at v (index.js?ver=5.4.1:formatted:283)
at index.js?ver=5.4.1:formatted:163
Anybody have suggestions how to get rid of the javascript errors and/or make cf7 v5.4.1 reCAPTCHA integration work again?
Thanks!