Lightbox works locally, but not when uploading to the server

I have a problem. I use jquery.lightbox-0.5 to display images, and everything works fine on my local machine. However, as soon as I upload to my server, it does not work.

Does anyone come across this?

As far as I can tell, this is not a capitalization problem.

I would be grateful if anyone could see!

Website: http://greendeco.ca/gallery.html

+3
source share
3 answers

always try to use firebug a great tool that can tell you the right way.

If you are not using, start using it.

You get the following error:

$ is not defined
[Break On This Error] $(function() { 

which means jquery is not enabled correctly,

, jquery

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /jquery-lightbox-0.5/js/jquery.js
on this server.</p>
<hr>
<address>Apache/2.0.54 Server at greendeco.ca Port 80</address>
</body></html>
+1

, , apache ( www-data)

0

when trying to access files in jquery-lightbox-0.5 folder:

view source: http://greendeco.ca/gallery.html

Forbidden

You don't have permission to access /jquery-lightbox-0.5/js/jquery.js 
on this server.

Apache/2.0.54 Server at greendeco.ca Port 80

which leads to a

Uncaught ReferenceError: $ is not defined

correct your server permissions in this folder

sort of:

<Directory "/home/domain/www/jquery-lightbox-0.5">
            Order allow,deny
        Allow from all
</Directory>

more details here and restart the server

0
source

All Articles