简体   繁体   English

Drupal-7发生AJAX HTTP错误:HTTP结果代码:200

[英]Drupal-7 An AJAX HTTP error occurred: HTTP result code: 200

I am running a very simple program on a new clean drupal installation. 我在新的干净Drupal安装上运行一个非常简单的程序。 However, I am getting a small popup on the browser saying: 但是,我在浏览器上看到一个小的弹出窗口,说:

An AJAX HTTP error occurred 发生AJAX HTTP错误

I have not installed much modules except views, ctools modules on top of basic Drupal installation. 除了基本的Drupal安装之外,除了视图和ctools模块之外,我还没有安装太多模块。

I don't know why it happen through this little information. 我不知道为什么通过这些小信息会发生这种情况。 But you can prevent it using a module Prevent JS alerts . 但是您可以使用“ 阻止JS警报”模块来阻止它。

This module completely suppresses ALL JavaScript alerts and instead prints them to console via console.error! 该模块完全禁止显示所有JavaScript警报,而是通过console.error将它们打印到控制台! Important: It does NOT ONLY suppress the core alerts, but also custom alerts. 重要提示:它不仅会抑制核心警报,还会抑制自定义警报。

For more info go through module documentation. 有关更多信息,请查阅模块文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在自动保存模块中还原内容时-发生Ajax HTTP错误。 HTTP结果代码:404 - while restoring content in auto save module - An Ajax HTTP error occurred. HTTP Result Code : 404 循环代码不适用于Drupal-7 - Cyclic code not working on Drupal-7 Dropwizard / Jackson从函数返回HTTP代码200但AJAX POST获取错误 - Dropwizard / Jackson returns HTTP code 200 from function but AJAX POST gets error 当http状态代码为“200 OK”时,为什么$ .ajax调用json数据会触发错误回调? - Why does $.ajax call for json data trigger the error callback when http status code is “200 OK”? 即使HTTP 200状态,jQuery Ajax也会失败 - jQuery Ajax fails even with the HTTP 200 status JQuery AJAX:为什么发送了 HTTP 代码 200 并且 AJAX 请求仍然被视为失败 - JQuery AJAX: Why is HTTP-code 200 sent and still AJAX request is considered as failed jQuery $ .get / $。ajax传递HTTP状态代码200而不是预期的状态代码201或202 - jQuery $.get/$.ajax passes HTTP status code 200 instead of expected status code of 201 or 202 Ajax错误:200响应码 - Ajax Error: 200 Response Code 我如何从 ajax 调用中获取 HTTP 状态代码 200 而不是 202 - How do i get HTTP status code 200 instead of 202 from an ajax call 即使响应http状态为200,也会执行jQuery ajax错误回调 - Jquery ajax error callback is executed even though the response http status is 200
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM