[英]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.