• Resolved cyriac1993

    (@cyriac1993)


    Hi,
    The contact form 7 is working in every browser except IE. The contact form is showing an error while submitting the form in Internet Explorer. Could you please provide a solution in fixing this?

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

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

    (@takayukister)

    The contact form is showing an error while submitting the form in Internet Explorer.

    What does the error say?

    Thread Starter cyriac1993

    (@cyriac1993)

    It redirects to same page and appends /contact/#wpcf7-f83-o1 to the end.
    The error says There was an error trying to send your message. Please try again later..

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Thread Starter cyriac1993

    (@cyriac1993)

    Thanks for the information.

    @cyriac1993

    They removed IE support however it’s possible to get it to work again on IE 11.

    Add this to your themes functions.php to get the wp-admin back end to work again:

    
    function load_ie_11_trident_scripts(){ 
    	wp_deregister_script('jquery');
    	wp_enqueue_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js');
        wp_enqueue_script('wp-polyfill-dom-rect'); 
    	wp_enqueue_script('wp-polyfill-element-closest'); 
    	wp_enqueue_script('wp-polyfill-fetch'); 
    	wp_enqueue_script('wp-polyfill-formdata'); 
    	wp_enqueue_script('wp-polyfill-node-contains'); 
    	wp_enqueue_script('wp-polyfill-object-fit'); 
    	wp_enqueue_script('wp-polyfill-url'); 
    	wp_enqueue_script('regenerator-runtime');
    }
     	add_action( 'admin_enqueue_scripts', 'load_ie_11_trident_scripts');
    

    Add this to your themes functions.php to get the front-end to work again:

    
    function load_ie_11_trident_scripts_frontend(){ 
    	wp_deregister_script('jquery');
    	wp_enqueue_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js');
        wp_enqueue_script('wp-polyfill-dom-rect'); 
    	wp_enqueue_script('wp-polyfill-element-closest'); 
    	wp_enqueue_script('wp-polyfill-fetch'); 
    	wp_enqueue_script('wp-polyfill-formdata'); 
    	wp_enqueue_script('wp-polyfill-node-contains'); 
    	wp_enqueue_script('wp-polyfill-object-fit'); 
    	wp_enqueue_script('wp-polyfill-url'); 
    	wp_enqueue_script('regenerator-runtime');
    }
     	add_action( 'wp_enqueue_scripts', 'load_ie_11_trident_scripts_frontend');

    `

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Contact form 7 not working in IE’ is closed to new replies.