2

I have get an error on my website: http://anthologymdjs.com/ I have tried to deactivate all plugin except contact form 7, and activate 2019 theme, but this error is still existed. The error is :

GET http://anthologymdjs.com/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=5.0.5 net::ERR_ABORTED 409 (Conflict)

GET http://anthologymdjs.com/wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=5.0.5 net::ERR_ABORTED 409 (Conflict)

Has anyone received this type of error, and if so, can you tell me how you fixed it and what was the root cause? Any help is greatly appreciated. Thanks!!

  • 1
    I'm having this same problem. I tried reinstalling CF7 as well as reverting to several versions prior (5.0.3 and 4.9.2) and neither worked. I also reset my .htaccess file with no luck either. So far the only answers to this post are to disable JavaScript which are not acceptable solutions. We need the JavaScript to work. I'm hoping someone has an idea. In the WP plugin support forums, the plugin developer has not had any recommendations outside of what @anurup and myself have already tried. – GreatBlakes Apr 23 '19 at 04:15
  • This is happening in all browsers, but Firefox clarified the message with "The script from “.../wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=5.1.1” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type." Perhaps this is a clue? – GreatBlakes Apr 23 '19 at 04:26
  • This is something related to mod_security. Check the configuration. – Davison Joseph Jan 21 '22 at 12:09
  • Check my answer https://stackoverflow.com/a/63085929/3611648 – Mustafa sabir Sep 02 '22 at 07:43

6 Answers6

5

You can use config.php

define ('WPCF7_LOAD_JS', false );
define('WPCF7_LOAD_CSS', false);
HMD
  • 2,202
  • 6
  • 24
  • 37
Purnendu Sarkar
  • 332
  • 2
  • 12
1

Add the below line in .htaccess file:

RewriteCond %{REQUEST_URI} !^/wp-json
Samvel Aleqsanyan
  • 2,812
  • 4
  • 20
  • 28
Vikas Jain
  • 11
  • 2
  • 2
    Vikas, thanks for contributing to StackOverflow. If you could please provide more context around why this answer should solve the question, that would go a long way toward educating other users why this should be an accepted answer to this particular case. – Jonathan Kempf Dec 31 '18 at 17:29
  • can you please try to install a plugin called "disable rest api" and in the settings check all the options under "contact-form-7/v1". You might need this due to the rest apis permission issue. – Vikas Jain Jan 02 '19 at 17:16
  • 1
    @VikasJain: Tried this plugin. No benefit. The same error continues. – KoolPal May 27 '19 at 12:06
1

Add this lines in wp-config.php.

  add_filter( 'wpcf7_load_js', '__return_false' );
  add_filter( 'wpcf7_load_css', '__return_false' );
Dhruv
  • 1,960
  • 1
  • 6
  • 6
  • It solved the 409 conflicts but still shows the example.com/contact page as 409 conflicts (4XX page) in the Ahref report. – WPDevotion Jan 09 '23 at 12:21
0

See exact error by enabling error reporting edit wp-config.php edit below code

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', true);

see what error is showing then resolve it.

Pukhraj Suthar
  • 168
  • 2
  • 10
0

This fixed my issue . This might not work for all , but you can give it a try..

Clear Cookies using Edit Cookie Chrome Extension or Using Clear Site data from Dev tools...

Then, Re login to Wordpress and Clear WP cache, if you are using any plugin or if clear hosting cache, Now check your contact forms .

Srinivas08
  • 974
  • 10
  • 21
-1

Just Add this line in your wp-config.php

define ('WPCF7_LOAD_JS', false );
zeeshan
  • 31
  • 6
  • It helps, but it would be nice if you add some details. Here it's how to add the script only in the contact page: https://contactform7.com/loading-javascript-and-stylesheet-only-when-it-is-necessary/ – Liko Apr 17 '19 at 11:29