Closed (fixed)
Project:
Chosen
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Sep 2013 at 11:35 UTC
Updated:
5 Mar 2014 at 00:33 UTC
Jump to comment: Most recent
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
Comment #1
flocondetoileIn the chosen settings, i apply chosen on the following elements
.field-type-taxonomy-term-reference selectinstead of
.node-form selectUploading image works fine. Seems that chosen breaks upload image if you apply chosen on .node-form select
Comment #2
junedkazi commentedCan you give some more information as to which version of jquery and chosen plugin you are running.
Comment #3
flocondetoileI am running the latest chosen plugin (chosen v1.0.0) with jquery 1.7 (via jquery_update)
Comment #4
hydra commentedI 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
Comment #5
qandeel commentedaddress 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
Comment #6
hydra commentedPlease 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
Comment #7
qandeel commentedThis 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
Comment #8
hydra commentedQandeel: 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...
Comment #10
qandeel commented@Hydra: this fixes the issue but I have one question is this patch in latest release??
Comment #11
Lex-DRL commentedFacing 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.
Comment #12
dave reidIt was added after the 7.x-2.0-alpha4 release but will be included in the next release.