After upgrading lightbox2 to 5.x-2.10, I received the following error with IE8.

Line: 1133
Column: 7
Error: Expected identifier, string or number
Code: 0
URL: http:///sites/all/modules/lightbox2/js/lightbox.js

The lightbox2 image popup does not work with IE. But it seems to works with Firefox, Chrome, Opera.

I got similar error with 6.x-1.10 and IE.

CommentFileSizeAuthor
#1 920094.patch886 bytesstella
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stella’s picture

Status: Active » Needs review
FileSize
886 bytes

Try the attached patch.

bkenro’s picture

Thank you very much for the quick reply and the patch.

After applying 920094.patch, the error changed,

Line: 147
Column: 5
Error: Object doesn't support this property or method
Code: 0
URL: .../sites/all/modules/lightbox2/js/lightbox.js

and the lightbox2 links stopped to work -- i.e., nothing happen when click the image links.

stella’s picture

bkenro’s picture

Many thanks for the help.

920094.patch plus operation in #920020: Lightbox2 no longer working after upgrade to 5.x.2.10 greatly resolved the error.

After applying 920094.patch, I replaced all lines that calls Drupal.t in lightbox.js (not lightbox2.js) with the corresponding lines in previous version, then applied the change in http://drupal.org/node/920020#comment-3481774 by hand.

After all the treatment, my site restarted to work fine.

Thank you so much.

ralfvk’s picture

Same problem here... even with Firefox
Downgraded to 2.9 again and wating for an unbuggy release...

blueskipper’s picture

downgraded to previous version...working fine

stella’s picture

disable the G2 filter

stella’s picture

Status: Needs review » Fixed
ralfvk’s picture

2.11 is working fine again, thank you !

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

borgvall’s picture

I'm still having this problem with 2.11.

zmz’s picture

the same problem
error on IE8

>Posted by stella on September 24, 2010 at 12:42am
>disable the G2 filter

where and how?