Today my form which was working a few weeks ago started producing errors and not allowing files to be uploaded. Every time a user uploads a file. 3 errors appear in Drupal's log:
Notice: Undefined index: #suffix in file_ajax_upload() (line 280 of /var/www/html/forms/modules/file/file.module).
Notice: Undefined index: upload_audition_materials in file_ajax_upload() (line 271 of /var/www/html/forms/modules/file/file.module).
Notice: Undefined offset: 7 in webform_client_form() (line 1992 of /var/www/html/forms/sites/all/modules/webform/webform.module).
Any help would be greatly appreciated. The only thing I have touched on the site recently is I updated to the latest version of Token this morning. I would also like to note that there are multiple file fields on the page, it is a multipage form, and other file uploads on other forms are working on the site. If you need any other information let us know.
Thanks
Comments
Comment #1
ComboPrime commentedWe're getting the same problem in 7.x-3.18.
1st error message in log is:
LOCATION /file/ajax/submitted//a4_file/form-l5I9OWvfbkVne4PDN41Vvmjuvdys784l81eyXdSoc6c
MESSAGE Notice: Undefined offset: 2 in webform_client_form() (line 1994 of \modules\webform\webform.module).
2nd error message in log is:
LOCATION /file/ajax/submitted//a4_file/form-l5I9OWvfbkVne4PDN41Vvmjuvdys784l81eyXdSoc6c
MESSAGE Notice: Undefined index: in file_ajax_upload() (line 271 of \modules\file\file.module).
3rd error message in log is:
LOCATION /file/ajax/submitted//a4_file/form-l5I9OWvfbkVne4PDN41Vvmjuvdys784l81eyXdSoc6c
MESSAGE Notice: Undefined index: #suffix in file_ajax_upload() (line 280 of \modules\file\file.module).
After the errors, submission fails (data is not saved)
Comment #2
quicksketchHi @ComboPrime, thanks for your update. It's likely the original poster meant to set the version to 7.x-3.x also, since the file.module doesn't exist in Drupal 6. Can you provide steps to reproduce this problem on a clean install of Drupal? The most likely problem is a module conflict of some kind. You might try disabling modules that modify file upload fields or Webforms until the problem can be narrowed down to a particular module.
Comment #3
quicksketchPlease reopen if more information can be provided on this issue.
Comment #4
zach.bimson commentedIm getting a similar error, I've created a theme based off mothership... The form works fine in Bartik
Comment #5
liam morlandI am having this problem too. Steps to reproduce:
Expected result: The file uploads.
Actual result: Error messages:
Comment #6
liam morlandThe problem remains if I upgrade to Webform 4.
Comment #7
liam morlandDuplicate of #1789040: File upload does not work with conditional rules