加载资源失败:服务器响应状态为 409 [英] Failed to load resource: the server responded with a status of 409

查看:128
本文介绍了加载资源失败:服务器响应状态为 409的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在自动 WordPress 更新后,插件表单(联系表单 7)现在在它们下方显示一个斜杠,并且不再触发 wpcf7mailsent 侦听器事件,因此在提交表单后不再重定向到感谢页面.这个错误:服务器响应状态为 409 或也称为 net :: ERR_ABORTED 409",我看到的是加载 style.css 和 scripts.js 文件的问题.这一定是它没有发出 wpcf7mailsent 侦听器事件和表单正下方的斜杠的原因.

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.

奇怪的是,如果我在同一页面上手动单击并通过 URL 打开styles.css 文件,该文件开始加载到页面上并停止显示表单正下方的栏.

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.

出于这个原因,我说您没有加载styles.css和scripts.js文件,因为它们甚至没有出现在上传的文件夹中,就在我通过URL打开它们之后.

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:

发生的错误:https://ibb.co/Vvm8jwG

未加载 CSS 文件和 JS 文件:https://ibb.co/kHszgW9

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

在我打开显示未加载的 CSS 样式链接后:https://ibb.co/FXcLRXQhttps://ibb.co/997nMgK

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

您不再看到未上传 CSS 文件的错误,现在文件已上传到显示内容的文件夹.如果我手动将其加载为 CSS 文件,JS 文件也会发生同样的情况.https://ibb.co/jGPQ2MHhttps://ibb.co/chVjRTQ

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

其他带有联系表 7 的网站也遇到了同样的情况.

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

环境设置:主题:标枪WordPress:5.2.4PHP:7.1.24托管:Hostgator

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

我需要帮助的页面:https://verdecia.com.br/central-de-atendimento/

推荐答案

对于任何面临此问题的人,这是 bluehosthostgator 托管中的已知问题.基本上,其根本原因似乎是他们使用 contact 字符串阻止了 image/js/css 或任何路径中的其他资产.

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.

联系表 7 资产被随机屏蔽的原因可能也是出于同样的原因.

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

我在我的服务器上运行了 html 网站,其中包含在例如 /images/contact/ 文件夹中的资产的联系人(或任何其他)页面也没有加载 409 冲突错误code>,由于assets文件夹中的联系人路径.

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.

不幸的是,我像许多用户一样找不到解决方案.查看这些链接:链接 1链接 2

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

解决方案是什么?

  • 在托管服务提供商的支持上浪费时间是没有用的.我只是用hostgator/bluehost 用于开发目的.那里有许多托管服务提供商,所以下次你可以选择其他的,尤其是直播网站.

  • 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.

对于自定义网站,请避免将资产文件夹命名为包含 contact 的任何内容.

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

对于 CF7 在 wordpress 中,停止使用 define( 'WPCF7_LOAD_JS', false ) 加载 wp-config 文件中的资产;define( 'WPCF7_LOAD_CSS', false ); 并通过单独下载文件并导入它们来手动加载标头中的文件.

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.

这篇关于加载资源失败:服务器响应状态为 409的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆