I've been using the colorbox module and would love to replace it with Photoswipe for iOs compatibility on larger-image Views, but when I installed the script and module as described in the readme.txt file bundled with the module just now, and then set a View to load images with any of the Photoswipe/imagecache settings ([all]/[field]/[nid]) I get a string of error messages and it looks as if the photoswipe javascript isn't doing anything:

warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/vhosts/site.com/httpdocs/includes/bootstrap.inc on line 856.
warning: strpos() expects parameter 1 to be string, array given in /var/www/vhosts/site.com/httpdocs/includes/common.inc on line 1607.
warning: strip_tags() expects parameter 1 to be string, array given in /var/www/vhosts/site.com/httpdocs/includes/common.inc on line 1608.
warning: htmlspecialchars() expects parameter 1 to be string, array given in /var/www/vhosts/site.com/httpdocs/includes/bootstrap.inc on line 856.

Any suggestions?

Qasim

Comments

designguru’s picture

I've placed the downloaded package from photoswipe.com into 'sites/all/libraries' such that code.photoswipe-2.0.0.js is located at 'sites/all/libraries/photoswipe/code.photoswipe-2.0.0.js' and yet when I go to my site's status report at 'admin/reports/status' I'm seeing " Third party PhotoSwipe software not properly installed
PhotoSwipe was not found in the 'libraries' folder (e.g. sites/all/libraries)."

Have you missed anything in your documentation about renaming the downloaded script or something?

Thanks,

Qasim

designguru’s picture

Status:Active» Fixed

It looks like this error was because the code in the .install file for this module references a specific older version os a .js file - editing this value to represent the new version of photoswipe I am using made the module useable.

q./

julou’s picture

Thanks for reporting.
I just fixed and commited it: to be available soon in the dev version.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary:View changes

name