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

Version:6.x-3.9» 7.x-3.18
Component:User interface» Code

We'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)

Priority:Critical» Normal
Status:Active» Postponed (maintainer needs more info)

Hi @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.

Status:Postponed (maintainer needs more info)» Closed (cannot reproduce)

Please reopen if more information can be provided on this issue.

Im getting a similar error, I've created a theme based off mothership... The form works fine in Bartik

Category:support» bug
Status:Closed (cannot reproduce)» Active

I am having this problem too. Steps to reproduce:

  1. Create a form with these components:
    1. A select options component
    2. A page break which conditionally displays only for some values of the select.
    3. A file component on the second page.
  2. Attempt to complete the form. Make a selection which shows the page break.
  3. Choose a file and click the Upload button.

Expected result: The file uploads.

Actual result: Error messages:

Notice: Undefined offset: 3 in webform_client_form() (line 1992 of [...]/webform/webform.module).
Notice: Undefined index: file in file_ajax_upload() (line 271 of /var/www/drupal7/modules/file/file.module).
Notice: Undefined index: #suffix in file_ajax_upload() (line 280 of /var/www/drupal7/modules/file/file.module).

Version:7.x-3.18» 7.x-4.x-dev

The problem remains if I upgrade to Webform 4.

Status:Active» Closed (duplicate)