• Hi,

    we are using Contact Form 7 on our website and we have the following problem: when I update the plugin to the newest version and also active Recaptcha V3, the form doesn’t send and does not provide any message to the user. The error message I’m getting in the console is the following:

    Uncaught TypeError: Cannot set properties of null (setting 'innerText')
        at s (index.js:1)
        at index.js:1
        at index.js:1
        at index.js:1
        at index.js:1
        at n (index.js:1)
        at Object.c [as submit] (index.js:1)
        at HTMLFormElement.<anonymous> (index.js:1)

    When I remove the Recaptcha, everythings works as expected. When I roll back the plugin to an older version (i.e. version 5.2 works for me) and also set up the Recaptcha, everythings also works fine.

    I have removed the Recaptcha right now so that our users can still use the form.

    I’d appreciate any input. Thanks!

    • This topic was modified 2 years, 10 months ago by sarahkautumn.

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

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

    (@takayukister)

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

    Thread Starter sarahkautumn

    (@sarahkautumn)

    The theme is custom. There isn’t anything regarding CF7 in there though, except a little snippet to remove the <br> between formfields:

    add_filter('wpcf7_form_elements', function($content) {
    	$content = str_replace('<br />', '', $content);
    			
    	return $content;
    });

    I tried removing the code, didn’t change anything.

    We are using the following plugins:

    – ACF
    – ACF Multilingual
    – ACF Font Awesome
    – Classic Editor
    – Filebird
    – Safe SVG
    – Wordfence Security
    – WP Fastest Cache
    – WPML Multilingual CMS
    – WPML SEO
    – WPML String Translation
    – Yoast SEO

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Try switching to the default theme, deactivating all plugins excluding Contact Form 7, Classic Editor, Wordfence Security and Yoast SEO, and clearing all cache data.

    Why you are advised to deactivate plugins and switch to the default theme.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Update not possible when ReCaptcha is active’ is closed to new replies.