Hi,

I've just installed filefield source plupload, and I have the following error :

Notice : Undefined index: status in filefield_sources_plupload_element_value() (line 136 in /public_html/sites/all/modules/filefield_sources_plupload/filefield_sources_plupload.module).

Strange : first time I see this error. I use this module on other websites which work like a charm... but here and now, I have this error.
I choose "multiple file" upload, and I drag some png files. Upload and progress bar work like a charm, but at the end of upload, I've this error :
Upload of filename.png failed.

What should I do ?
Any patch?

Thank you,

Comments

webkomplize’s picture

Had the same problem with 7.x-1.7 of this module.

For me it was a suhosin restriction in combination with mod php and ispconfig.
In my /var/log/syslog there were entries like these

suhosin[1396]: ALERT - configured request variable name length limit exceeded - dropped variable 'edit-field-slideshow-images-und-0-filefield-plupload-pud_0_tmpname' (attacker 'xxxx', file 'xxxxxx')

after changing the default values in suhosin.ini from

suhosin.request.max_varname_length = 64
suhosin.post.max_name_length = 64

to

suhosin.request.max_varname_length = 128
suhosin.post.max_name_length = 128

it works now.

sambonner’s picture

Confirm #1 as a fix for this, I was experiencing the same problem. I think plupload writes a temporary file longer than 64 characters which causes the error in code. Perhaps this might be noted somewhere in the documentation/readme?

Thanks,
Sam

atlea’s picture

I have added the recommended Suhosin settings (set in php.ini-file) to the README.txt-file. Thanks! :)

---------------

php.ini:
suhosin.request.max_varname_length = 128
suhosin.post.max_name_length = 128

atlea’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

organicwire’s picture

Issue summary: View changes

Same problem exists for the module plupload_integration (see issue #2512636.