Its a bit off track, but if possible please help

arnabnaha wrote on Thursday, July 02, 2015:

Hi all,

I have a website - www.nahahealthclinic.org
it is based on drupal and I use webform modules in it for various forms. I webforms which have the field to upload files/pictures, suddenly I am noticing an error message and the file upload donot work (The “choose file” button and the “upload button” simply vanished). The error which is shown is-

Warning: array_merge(): Argument #1 is not an array in _webform_render_file() (line 354 of /home/arnabnaha/public_html/sites/all/modules/webform/components/file.inc).

The LINE 354 from the code is this-

'#pre_render' => array_merge(element_info_property('managed_file', '#pre_render'), array('webform_file_allow_access')),

I know its a bit off track, but can anybody please help in this regard. I have posted in drupal webform issues forum too, but no replies till now

Thanks in advance

Regards,
Arnab

arnabnaha wrote on Thursday, July 02, 2015:

Hi…

I just fixed it…:slight_smile:

Database upgrade was the only thing needed. Thanks