I create a new content type "album", when I change the image-field widget to Multiupload, the page "node/add/album" shows the notice.

Notice:Undefined index: #size 於 file_managed_file_process() (/var/www/drupal/modules/file/file.module line:446)

Drupal 7.14 on Ubuntu 12.04 / PHP 5.3.10

CommentFileSizeAuthor
#2 undefined_index_fix-1628576-0.patch669 bytesjpwarren00

Comments

emberhxc’s picture

Getting the exact same error here, with both 1.0 and 1.x-dev.
Also returns the same error when i try to upload images, and when i remove them. It always displays a notice for each image i try to upload (if i try to upload 10 images, i get 10 notices all at once).
The images seem to upload fine, however. But it'll be a real nightmare when users get to try and do it...

jpwarren00’s picture

Issue tags: ++patch
StatusFileSize
new669 bytes

Found the source of this bug in Multiupload Filefield Widget module where the missing element index is being passed to file_managed_file_process() which throws the error. This patch adds the index if it's missing with a NULL value, might not be the best way to fix it, but it does work.

I'm surprised this didn't show up in the Multi Filefield issue queue as it definitely happens there as well.

NOTE: This is the patch for the dependency where the bug is, not for Multiupload Imagefield Widget.

emberhxc’s picture

thanks jpwarren00, worked for me :)

woop_light’s picture

Thanks jpwarren00

thatjustin’s picture

+1. Thanks, worked for me.

pomliane’s picture

Status: Active » Closed (duplicate)