• Resolved sasdts

    (@sasdts)


    Hi,

    I’m getting a fatal error when using Turnstile with “Contact Form 7 Multi-Step Forms”. Validation is triggered before the form is submit, so the Turnstile Plugin is generating an error.

    PHP Fatal error: Uncaught Error: Call to a member function get_posted_data() on null

    The solution is pretty simple – in simple-cloudflare-turnstile/inc/contact-form-7.php, line 37 before getting the posted data, check if the Submission exists.

    	$post = WPCF7_Submission::get_instance();
    	if ( !empty( $post ) ) {
    		$data = $post->get_posted_data();
    		// the rest of the code...

    It would be great if you could update the plugin to ensure compatibility with CF7 Multi-Step Forms.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fatal Error with CF7 Multi-Step Forms’ is closed to new replies.