Hello,

Seems that the version alpha3 of module chosen breaks the upload image (core module)

Steps to reproduce the bug
- Create a content type with a body and an image field
- Apply chosen on any select (or on .node-form select)
- The select list of text format (under the body field) might use chosen
- Try upload an image

You get an ajax error

An error occurred while attempting to process /file/ajax/field_illustration/und/0/form-X3RYSVhY30EiPukoyMDJNUp6AogI7SEOiAGniP0J7wI/x-progress-id%3A1994835582: params is undefined

If you disable chosen, the upload works fine
If you use the module Better format in order to limit the text format allowed (and then you don't have anymore the select list under the body field), the upload image works fine too.

Any idea ?
thanks

Comments

flocondetoile’s picture

In the chosen settings, i apply chosen on the following elements

.field-type-taxonomy-term-reference select

instead of

.node-form select

Uploading image works fine. Seems that chosen breaks upload image if you apply chosen on .node-form select

junedkazi’s picture

Can you give some more information as to which version of jquery and chosen plugin you are running.

flocondetoile’s picture

I am running the latest chosen plugin (chosen v1.0.0) with jquery 1.7 (via jquery_update)

hydra’s picture

Version: 7.x-2.0-alpha3 » 7.x-2.x-dev
Status: Active » Fixed

I was able to reproduce this. I removed the text format selection from chosen when using WYSIWYG, because this was causing the trouble. If this did not fix the issue, please reopen! You can find the fix in the latest dev, this will be soon in beta-1

qandeel’s picture

address field module breaks if install I chosen alpha4, its an ajax error, please attach a patch so that i can test if this also fixes the address field issue

hydra’s picture

Please download the dev version, it should be fixed in it. I could post a patch, but you would need to test it against dev anyways :) So just try it, thx

qandeel’s picture

This is what I am getting "An error occurred while attempting to process /system/ajax: params is undefined
actually I dont want to test the whole dev release thats why i was asking for patch, so that I can manually update the module and test on my server

hydra’s picture

Qandeel: Well this is usaly not the way how to test a patch, but whatever. You can just take the "patch" from git, this should be what you are searching for: http://drupalcode.org/project/chosen.git/blobdiff/32dcc6d20e1ff057d75eb7...

Status: Fixed » Closed (fixed)

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

qandeel’s picture

@Hydra: this fixes the issue but I have one question is this patch in latest release??

Lex-DRL’s picture

Issue summary: View changes
Status: Closed (fixed) » Reviewed & tested by the community

Facing the same issue with Chosen 7.x-2.0-alpha4
No matter which version is selected in jQuery Update module, this error appears if Chosen module enabled. I tried jQuery 1.5 and 1.7 - both didn't work.

However, the patch do solve the problem. So marking the issue as tested by the community.

dave reid’s picture

Status: Reviewed & tested by the community » Closed (fixed)

It was added after the 7.x-2.0-alpha4 release but will be included in the next release.