return FALSE; $r = well_tag_thread__update(array('id' => $id), $update); return $r; } function well_tag_thread_find($tagid, $page, $pagesize) { $arr = well_tag_thread__find(array('tagid' => $tagid), array('id' => -1), $page, $pagesize); return $arr; } function well_tag_thread_find_by_tid($tid, $page, $pagesize) { $arr = well_tag_thread__find(array('tid' => $tid), array(), $page, $pagesize); return $arr; } ?>javascript - Failed to load resource: the server responded with a status of 409 - Stack Overflow
最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Failed to load resource: the server responded with a status of 409 - Stack Overflow

programmeradmin2浏览0评论

After an automatic WordPress update the plugin forms (Contact Form 7) now display a slash just below them and are no longer firing the wpcf7mailsent listener event, so it is no longer being redirected to the thanks page after submitting the form. This error: “the server responded with a status of 409 or also known as net :: ERR_ABORTED 409” from what I see is a problem loading styles.css and scripts.js files. This must be the reason why it is not issuing the wpcf7mailsent listener event and a slash just below the forms.

Strangely if on the same page I manually click and open the styles.css file via URL, the file starts to load on the page and it stops showing that bar just below the form.

For this reason I am saying that you are not loading the styles.css and scripts.js files, as they do not even appear in the uploaded files folder, just after I open them by URL.

Here’s the test I did to show it:

The error happening:

Did not load CSS file and JS file:

After I open the CSS style link that says it didn’t load:

You no longer see the error that you did not upload the CSS file and now the file has been uploaded to the folder showing the contents. The same will happen with the JS file if I manually load it as the CSS file.

What I already tried to do to fix, but it didn’t work: – I disabled several plugins – I updated the plugin – I reinstalled the plugin – I tested in other browsers, the error persists

Other sites with Contact Form 7 are also experiencing the same.

Environment Settings: Theme: Javelin WordPress: 5.2.4 PHP: 7.1.24 Hosting: Hostgator

The page I need help with: /

After an automatic WordPress update the plugin forms (Contact Form 7) now display a slash just below them and are no longer firing the wpcf7mailsent listener event, so it is no longer being redirected to the thanks page after submitting the form. This error: “the server responded with a status of 409 or also known as net :: ERR_ABORTED 409” from what I see is a problem loading styles.css and scripts.js files. This must be the reason why it is not issuing the wpcf7mailsent listener event and a slash just below the forms.

Strangely if on the same page I manually click and open the styles.css file via URL, the file starts to load on the page and it stops showing that bar just below the form.

For this reason I am saying that you are not loading the styles.css and scripts.js files, as they do not even appear in the uploaded files folder, just after I open them by URL.

Here’s the test I did to show it:

The error happening: https://ibb.co/Vvm8jwG

Did not load CSS file and JS file: https://ibb.co/kHszgW9

After I open the CSS style link that says it didn’t load: https://ibb.co/FXcLRXQ https://ibb.co/997nMgK

You no longer see the error that you did not upload the CSS file and now the file has been uploaded to the folder showing the contents. The same will happen with the JS file if I manually load it as the CSS file. https://ibb.co/jGPQ2MH https://ibb.co/chVjRTQ

What I already tried to do to fix, but it didn’t work: – I disabled several plugins – I updated the plugin – I reinstalled the plugin – I tested in other browsers, the error persists

Other sites with Contact Form 7 are also experiencing the same.

Environment Settings: Theme: Javelin WordPress: 5.2.4 PHP: 7.1.24 Hosting: Hostgator

The page I need help with: https://verdecia..br/central-de-atendimento/

Share Improve this question edited Oct 17, 2019 at 15:16 sao 1,8216 gold badges26 silver badges45 bronze badges asked Oct 17, 2019 at 13:14 WillianWillian 311 gold badge1 silver badge5 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 4

For anyone who is facing this issue, this is a known issue in bluehost and hostgator hosting. Basically the root reason for this seems to be that they are blocking image/js/css or other assets in any path with contact string.

The reason that contact form 7 assets are randomly blocked is probably also due to this same reason.

I had html websites running on my server where contact (or any other) page with assets in for example /images/contact/ folder also did not load with 409 conflict error, due to the contact path in the assets folder.

Unfortunately I found no solution to this just like many many users out there. Check out these links: Link 1 Link 2

What is the solution?

  • Well wasting time with hosting provider support is of no use. I just use hostgator/bluehost for development purpose. There are many hosting providers out there, so next time you can choose some other one, especially for live websites.

  • For custom websites, avoid naming your assets folder to anything that has contact in it.

  • For CF7 in wordpress stop loading the assets in wp-config file using define( 'WPCF7_LOAD_JS', false ); define( 'WPCF7_LOAD_CSS', false ); and manually load the files in the header by separately downloading the files and importing them.

EDIT:

I have been using a simpler fix recently when using CF7, just rename the plugin folder from contact-form-7 to anything without contact keyword, like cf7. This will start loading all assets without the conflict.

发布评论

评论列表(0)

  1. 暂无评论