View Full Version : Error with Lightbox Image Viewer 2.03a

03-05-2010, 06:11 AM
1) Script Title: Lightbox image viewer 2.03a

2) Script URL (on DD): http://dynamicdrive.com/dynamicindex4/lightbox2/index.htm

3) Describe problem:

I've installed this script on two different servers now. The first one went without a hitch. The second one hasn't worked and upon checking the error log in firefox, I receive the following error:

Effect is not defined.
lightbox.js (line 374)

I added the javascript includes in the same order as the instructions, and I've clicked each link (again through firefox, source code) and verified that all of the files are there. Can someone tell me what's going on? I didn't think that javascript could differ between servers like PHP or MySQL versions could, however I just can't figure out why it doesn't work for me.

Here's the link in case you need it: http://www.hystericalwebdesign.com/about/

03-05-2010, 06:29 AM
Lightbox 2.03a requires the effects.js file. Yours should be here:


But it's a 404 not found. This file comes in the distribution archive (lightbox2.03a.zip) that you should already have. Or you could download it from here:


(right click and 'save as'). However you get it, upload it to your:


folder and that error will go away.

I know this file can be easy to miss because it's not specifically linked to from the external script tags that you put on your page. Its link is created by the scriptaculous.js script when scriptaculous.js is invoked like so:

<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>

In any case, you need it, so get it up there.

03-05-2010, 06:33 AM
Well I can't believe I spent an hour on something so simple. Thank you, I can't believe I missed that.