Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comments
Comment #1
adamwhite CreditAttribution: adamwhite commentedIt 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).
Comment #2
mogop CreditAttribution: mogop commentedI have the library downloaded and it's in the correct libraries folder
Comment #3
Anybody7.x-1.x is not supported anymore. Please switch to 7.x-2.x. Closing as outdated.
Comment #4
Anybody7.x-1.x is not supported anymore. Please switch to 7.x-2.x. Closing as outdated.