当我尝试在Magento上编辑现有产品时,点击“保存并继续编辑”按钮后,它根本不保存任何内容,只是转到管理仪表板。
所以我检查了Chrome浏览器的inspect元素中的“网络”标签,看到了这个错误:
以下是包含1739的突出显示的文件(prototype.js):
try {
var response = new Ajax.Response(this);
if (this.options.onCreate) this.options.onCreate(response);
Ajax.Responders.dispatch('onCreate', this, response);
this.transport.open(this.method.toUpperCase(), this.url,
this.options.asynchronous);
if (this.options.asynchronous) this.respondToReadyState.bind(this).defer(1);
this.transport.onreadystatechange = this.onStateChange.bind(this);
this.setRequestHeaders();
this.body = this.method == 'post' ? (this.options.postBody || params) : null;
/* line 1739 */ this.transport.send(this.body);
/* Force Firefox to handle ready state 4 for synchronous requests */
if (!this.options.asynchronous && this.transport.overrideMimeType)
this.onStateChange();
}
那么我该如何解决这个问题呢?这有什么问题?
答案 0 :(得分:1)
我有同样的错误。问题出在mod_secure中。 .htaccess中的更改对我没有帮助,我从cpanel为域禁用了它,问题就消失了。
请注意,只有当网站在https下工作时以及我在内容中使用单个HTML标记(静态块,cms页面,产品属性)时,才会出现此问题。
有关详细信息,请查看此处http://maxrice.com/magento-fixing-please-wait-error-adding-editing-products-categories/
答案 1 :(得分:0)
上面的图片暗示,问题不是直接与代码相关的forsay,而是与资产相关。缺少简单的css文件,并且您手头有其他与网络相关的错误。看来原型没有加载到上面,当引用库不存在的函数时会引起问题..什么时候开始发生?