Closed (duplicate)
Project:
Mollom
Version:
7.x-2.1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jun 2012 at 02:53 UTC
Updated:
4 Jul 2012 at 15:22 UTC
When using mollom on a webform that has a file upload component, I get a white screen of death when submitting the form. Disabling webform module fixes the issue.
Kim
Comments
Comment #1
safetypinIf I understand things correctly, this issue has been discussed #1515158: Webform with file upload fatal error/WSOD when used with mollom: Cannot unset string offsets in ... form.inc on line 2146 and it looks to me like quicksketch has suggested that mollom should change the way it processes forms instead of webform changing the way it works. It would be really great if you guys could work this out and decide who needs to change so we can have functioning protected forms with file attachments.
Thanks for all your work!
Comment #2
acbramley commented+1 getting this error on a form with a file upload, submits fine as an admin user (i.e no Mollom), getting fatal error when trying to do it as an anonymous user. Definitely seems like something wrong with the Mollom module...
Comment #3
sunSo I tested this myself and found out that this is apparently a bug in Drupal core:
#1090198: managed_file form item in system settings form causes error in form_state_values_clean()
#635046: form_state_values_clean() is polluting form values (followup)
The Mollom module just calls the form_state_values_clean() function of Drupal core, and the fatal error happens within that function.
While the Mollom module might be able to implement a workaround for that, it makes much more sense to fix the actual bug in core. Especially, since the bug was already fixed for D8, so it only needs to be backported and tested properly for D7.