when I enable the module I get this error while browsing around the site (on Ubuntu 13.04 with last versions of Firefox and Chrome):

Error: TypeError: klass is not a function
Source File: http://localhost/sweetdreams/sites/all/libraries/photoswipe/code.photoswipe.jquery-3.0.5.js?mnro0v
Line: 2052

when I navigate to a page where the module is used the images just open in the browser window. and this the second error message:

Error: TypeError: $(...).find(...).photoSwipe is not a function
Source File: http://localhost/sweetdreams/sites/all/modules/photoswipe/js/photoswipe.jquery.js?mnro0v
Line: 10

Drupal 7.22, jQuery Update 2.3 in the Options I tried jQuery v.1.7 and 1.8, Theme Omega 3.1


adamwhite’s picture

It sounds like you don't have the library present.

As per the README you'll need to download and install the third party PhotoSwipe library, which doesn't come packaged with the module. Once you get it (download from http://www.photoswipe.com/ or https://github.com/codecomputerlove/PhotoSwipe) unarchive it into your libraries folder (sites/all/libraries) and rename the directory which you unarchived "photoswipe" (all lower case).

mogop’s picture

I have the library downloaded and it's in the correct libraries folder