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.
The newly released Drupal 7.23 release breaks the integration with plupload. It is still possible to select 'advanced upload' and drop images onto it to upload, but after uploading instead of displaying the individual images you get a second upload selector and a weight selection. I've attached screenshots to demonstrate what I mean.
Downgrading back to 7.22 works as temporary work-around.
Comment | File | Size | Author |
---|---|---|---|
#15 | 2063161-plupload-id-14.patch | 573 bytes | hefox |
#5 | plupload.module.patch | 563 bytes | mfgering |
failure.png | 28.22 KB | Amon_Re | |
multi uploads.png | 29.25 KB | Amon_Re | |
begin.png | 17.83 KB | Amon_Re |
Comments
Comment #1
drclaw CreditAttribution: drclaw commentedI can confirm this issue...
Comment #2
Greenman77 CreditAttribution: Greenman77 commentedAlso confirmed recent upgrade to Drupal 7.23 seems to break PLUpload. Symptoms exactly as Amon_Re has detailed.
Comment #3
oboz CreditAttribution: oboz commentedConfirm this. Now no ideas...
Comment #4
mfgering CreditAttribution: mfgering commentedNot sure what the cause is yet, but I can see that the code in plupload.module:121 is not finding its form elements. It is trying to match an element id, e.g. edit-upload-und-0-filefield-plupload-pud--2, to values that look like "edit-upload-und-0-filefield-plupload-pud_0_tmpname". The element id has "--2" appended where the regular expression is not expecting it, in this example.
I created a patch that works so far for me.
Comment #5
mfgering CreditAttribution: mfgering commentedThis patch changes the way the plupload module looks for form elements. It excludes a uniqueness component of the element id that Drupal puts in to support ajax.
Comment #6
NitraM CreditAttribution: NitraM commentedmfgering your patch at #5 works for me! Thanks
Comment #7
Amon_Re CreditAttribution: Amon_Re commentedPatch seems to work here too. Running it on my staging site atm.
Comment #8
atlea CreditAttribution: atlea commentedComment #9
icampanaI tested this patch in a big site and works perfectly, thanks a lot!
Comment #10
oboz CreditAttribution: oboz commentedmfgering, Thank you very much!!!
Comment #11
slashrsm CreditAttribution: slashrsm commentedCommitted. I'll rolll new release shortly.
Thanks!
Comment #13
tea.time CreditAttribution: tea.time commentedMarked #1841868: AJAX submits -- plupload_element_value()'s use of $element['#id'] breaks due to drupal_html_id() incrementation as duplicate.
Comment #15
hefox CreditAttribution: hefox commentedPatch against 1.0 for use in make files