简体   繁体   English

IE9中Magento的Lightbox JS错误-无法获取属性“ 0”的值:对象为null或未定义

[英]Lightbox JS Error on Magento in IE9 - Unable to get value of the property '0': object is null or undefined

Debug from IE 从IE调试

Line: 2 Character: 580 Code: 0 Error Message: Unable to get value of the property '0': object is null or undefined URL: http://100repupgrade.clubnetdev.com/fresh//media/js/skin/reprebate/js/lightbox_cp.js 行:2字符:580代码:0错误消息:无法获取属性“ 0”的值:对象为null或未定义URL: http : //100repupgrade.clubnetdev.com/fresh//media/js/skin/reprebate /js/lightbox_cp.js

URL where problem can be seen: http://100repupgrade.clubnetdev.com/fresh/featured/the-hundreds-mike-jacket-grey.html 可以看到问题的URL: http : //100repupgrade.clubnetdev.com/fresh/featured/the-hundreds-mike-jacket-grey.html

At the above URL, if you click on the 'Size' drop down box, the debug error pops up as copied above. 在上面的URL中,如果单击“大小”下拉框,则会弹出如上面复制的调试错误。 This is coming from a Magento extension that is apparently compatible with this version of Magento (1.6.2.0). 这来自Magento扩展,该扩展显然与此版本的Magento(1.6.2.0)兼容。 The section it appears to be referring to in the js file is:- 它似乎在js文件中引用的部分是:-

while(this.imageArray[imageNum][0]!=imageLink.href){imageNum++;}}

This is only an issue in IE9 (and possible other IE versions), there is no problem in Firefox, Chrome etc. 这仅是IE9(以及可能的其他IE版本)中的问题,而在Firefox,Chrome等中则没有问题。

When the problem occurs, clicking on the drop down box should just display the product size options but instead it is loading a dark overlay associated to the lightbox. 发生问题时,单击下拉框应仅显示产品尺寸选项,但它将装入与灯箱关联的深色覆盖层。

Would anybody be able to identify at all what the issue could be and how to fix at all please? 有人能完全确定问题是什么以及如何解决吗? This has had me stumped for about two hours now. 现在我已经为此难住了两个小时。

Any help greatly appreciated - thanks. 任何帮助,不胜感激-谢谢。

EDIT: More Info. 编辑:更多信息。

An exact replica of this site and code works fine at http://www.reprebate.com/featured/the-hundreds-mike-jacket-grey.html by the way. 顺便说一下,在http://www.reprebate.com/featured/the-hundreds-mike-jacket-grey.html上 ,此站点和代码的精确副本可以正常工作。 This issue has only become apparent since upgrading Magento from 1.4 to 1.6 but the lightbox extension developer definitely reckons his extension works on 1.6... Thanks 自从Magento从1.4升级到1.6之后,这个问题才变得明显,但是灯箱扩展程序开发人员肯定认为他的扩展程序可以在1.6上运行...谢谢

From what I can see, you are seeing an issue with Lightbox or Prototype, not the extension. 据我所知,您看到的是Lightbox或Prototype的问题,而不是扩展的问题。

My recommendation would be to ensure you have Lightbox 2.05 and the latest version of prototype - if you want to keep using the prototype version. 我的建议是,如果您想继续使用原型版本,请确保您拥有Lightbox 2.05和最新版本的原型。

If you are happy to move to a jQuery version, Lightbox 2.5 is your best bet 如果您愿意使用jQuery版本, Lightbox 2.5是最好的选择

Same problem here. 这里同样的问题。 Solved by upgrading from prototype.js 1.6 to 1.7. 通过从prototype.js 1.6升级到1.7解决。

暂无
暂无

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

相关问题 IE9 JS无法获取属性'display'的值:object为null或undefined - IE9 JS Unable to get value of the property 'display': object is null or undefined IE9兼容模式错误:无法获取属性“ 0”的值:对象为null或未定义 - IE9 Compatibility Mode Error: Unable to get value of the property '0': object is null or undefined IE9 JavaScript 错误:SCRIPT5007:无法获取属性“ui”的值:对象为空或未定义 - IE9 JavaScript error: SCRIPT5007: Unable to get value of the property 'ui': object is null or undefined 在IE9中加载页面时如何防止“无法获取属性'dir'的值:对象为空或未定义”错误 - How to prevent “Unable to get value of the property 'dir': object is null or undefined” error when loading pages in IE9 IE9中的Angular 1/2混合应用程序错误:“ TypeError:无法获取属性'ref'的值:对象为null或未定义” - Angular 1/2 hybrid app error in ie9: “TypeError: Unable to get value of the property 'ref': object is null or undefined” Microsoft JScript运行时错误:无法获取属性'checked'的值:对象为null或仅在IE9中未定义 - Microsoft JScript runtime error: Unable to get value of the property 'checked': object is null or undefined only in IE9 使用IE9设置表单输入值(出现错误-无法设置属性“值”的值:对象为null或未定义) - Setting a Form Input Value With IE9 (Getting An Error - Unable to set value of the property 'value': object is null or undefined) jQuery IE9:无法获取属性'val'的值:对象为null或未定义 - jQuery IE9: Unable to get value of the property 'val': object is null or undefined JS错误:无法获取属性0的值:对象为null或未定义 - JS error: unable to get value of property 0: object is null or undefined IE9无法获取未定义或空引用的属性“删除” - IE9 unable to get property 'remove' of undefined or null reference
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM