Hi,

After some updates I did, chosen stop working on some pages and this error appear.

--
[14:12:17.169] TypeError: $(...).chosen is not a function @ example.com/sites/all/modules/contrib/chosen/chosen.js?v=1.0:42

I'm trying to digg what's happing this error.

I have jquery_update (dev) and admin site with 1.8.2 jQuery and jQuery UI 1.10.2.

Comments

killua99’s picture

Now I understand why is missing chosen.

Is because the path https://github.com/harvesthq/chosen/tree/v0.10.0. So you're looking for this path

$library_path = module_exists('libraries') ? libraries_get_path('chosen') : 'sites/all/libraries/chosen';

But the zip file when you unzip that the real path is chosen/public/... So you have to support drush make files, or at least explain that you need this one. https://github.com/harvesthq/chosen/releases/download/1.0.0/chosen_v1.0....

hydra’s picture

Status: Active » Fixed

Hey killia99! Sry for the problems you had. There is a drush command downloading the library, a chosen.make.example and a note in UPDATE.txt and README.txt on which version is required. I'm not a native english speaker, so you are very welcome to improve those texts! Thanks for reporting on how you find a solution for your problem, this will help leading other people having same issues.

Status: Fixed » Closed (fixed)

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

edurenye’s picture

Category: Bug report » Support request
Issue summary: View changes
markusd1984’s picture

I had the exact same issue with v 1.8.6 and 1.8.7 that I could not get to work, where would I need to change the path?

I tried #4 package which works fine, thanks!