Javascript error in IE8
| Project: | Lightbox2 |
| Version: | 6.x-1.x-dev |
| Component: | Javascript |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | patch (to be ported) |
When loading my site using IE8 I get the following JS error:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Message: Invalid property value.
Line: 184
Char: 5
Code: 0
URI: http://app.o-festivalen.com/dp6/sites/all/modules/lightbox2/js/lightbox....
I does not get any lightbox effects clicking on images.
In Firefox I don't get any error on page loading, and the lightbox effect works well on some images (but not with others - not sure if this problem is related to the JS-error - will do some more testing before I might file separate issue...)
By the way: Images i s handled using Image Assist together with Wysiwyg/TinyMCE (all latest dev versions).

#1
I have the same problem but on line 181. It works flawlessly at Firefox and Chrome. Yet, on IE8 it doesn't.
#2
I have the same problem but on line 181. It works flawlessly at Firefox and Chrome. Yet, on IE8 it doesn't.
#3
Hi all,
Same problem for me on IE8 on line 181.
Works fine on Firefox.
Best regards,
#4
Same problem with dev version and IE7, line 185 : 'invalid property value'.
This bug seems critical as it prevents at least some uses of the module with IE.
For example, the login functionality is totally broken : no popup and form displayed without styling in a normal window.
I also had to disable it on some pages because it prevented one custom script of mine to work.
#5
subscribing
#6
Same problem here with dev version and IE7, lightbox is not working and I get the following error message:
Line:185
Character:5
'Invalid property value'
Hope someone can help.
Thanks in advance.
#7
I have the same problem for IE8 and IE6
Subscribing...
#8
I've tracked the problem down to the skin settings of lightbox2 - this is only an assumption, but I think that the default values for this section are invalid (empty) and jQuery is freaking out (undefined values). At least for IE7/8 of course (argh...)
Just go to /admin/settings/lightbox2 Advanced settings/ Skin settings and set the options:
- border size,
- lightbox color,
- font color
to some values (can't be empty).
#9
Thanks Mixman! Had the same problems here, setting the skin border size and colors solved it right away, now the lightbox plays without js-errors in IE 6, 7 and 8 :) I'm using lightbox2-6.x-1.9.
#10
As mixman has said, the options - border size, lightbox color and font color must be set in the admin area, if not checked, returns a js error in IE8.
I actually made some update in the "lightbox.js" to prevent that, so, it checks if the respective variables really exists:
Lightbox.borderSize
Lightbox.boxColor
Lightbox.fontColor
And checking that, if undefined variables, prevents to make an invalid js call.
version: lightbox2-6.x-1.9
thx
leandro nunes