Adding a file field to a webform doesn't work for anonymous users. On form submission, the following error occurs:

 PHP Fatal error:  Cannot unset string offsets in /var/www/sites/powerofacting.org/includes/form.inc on line 2157

The error occurs in form.inc in form_state_values_clean(), and it looks as if the form value for the file field is not in the expected format.

Registered users don't get this error.

Comments

quicksketch’s picture

Status: Active » Closed (duplicate)

Looks like this is probably related to #1515158: Webform with file upload fatal error/WSOD when used with mollom: Cannot unset string offsets in ... form.inc on line 2146 (meaning it only happens for anonymous users because mollom is active).