I have a multi-page webform. I get the above error when I "Save Draft" on Page 1.

Along with the above error, I also get the below error:
warning: mysql_real_escape_string() expects parameter 1 to be string, array given in public_html/test/includes/database.mysql.inc on line 321.

The error-pair (the two errors above) goes away if I don't set the field for the "Other" option (i.e) uncheck Allow "Other..." option for the field. Also, the error-pair (the two errors above) appears as many times as there are multi-select fields that have Allow "Other..." option checked on page 1. For example, if there are two such fields on page 1, I get the following errors when I "Save Draft".

warning: Illegal offset type in isset or empty in /home/YYYYY/public_html/test/sites/all/modules/webform/components/select.inc on line 480.
warning: Illegal offset type in isset or empty in /home/YYYYY/public_html/test/sites/all/modules/webform/components/select.inc on line 480.
warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/YYYYY/public_html/test/includes/database.mysql.inc on line 321.
warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/YYYYY/public_html/test/includes/database.mysql.inc on line 321.

I don't face this problem with submitting a single page Webform. I face it only when I "Save Draft" on Page 1 in a multi-page form.

I initially thought that is an issue with the "Webform" module but I now think it is a problem with the the "Select (or other)" given my observations above.

Thanks in advance for any help!

Comments

danielb’s picture

I can't help with this. The problem is happening in a particular use case for webform. This module just provides the form element.

kamgd’s picture

Thanks for looking into this! I'll ask again on the Webform forum.

danielb’s picture

Status: Active » Closed (fixed)