Got the below error while updating Webform configuration.

PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'progressbar_page_number' at row 1: INSERT INTO {webform_steps_w3_progressbar} (nid, progressbar_bar, progressbar_page_number, progressbar_percent, progressbar_pagebreak_labels, progressbar_label_first) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5); Array ( [:db_insert_placeholder_0] => 822070 [:db_insert_placeholder_1] => 1 [:db_insert_placeholder_2] => [:db_insert_placeholder_3] => 1 [:db_insert_placeholder_4] => 1 [:db_insert_placeholder_5] => Start ) in webform_steps_w3_node_insert() (line 44 of /home/portaladmindevli/public_html/sites/all/modules/webform_steps/webform_steps_w3/webform_steps_w3.module).

To regenerate you should install "webform_steps" and its sub module "webform_steps_w3" as usual any other Drupal contributed module. Then, create a webform and go to its configure page something similar to [node/xxxx/webform/configure].
There on "PROGRESS BAR" section just do not check the "Show page number as number of completed (i.e. Page 1 of 10)" option and submit the configurations.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Juyal Ji created an issue. See original summary.

shobhit_juyal’s picture

There on line 44 in "webform_steps_w3.module" if we could change the sequence of parameters then it will fix this issue. Please find the patch as it worked for me.

shobhit_juyal’s picture

Status: Active » Needs review
pbattino’s picture

I had the same problem, but I think it's caused by the webform_steps_w3 which is a "compatibility module", it can be disabled once you have imported progressbar settings stored by it.
I did it: admin/config/content/webform (the section "Progress bar migration" is at the top of the page)
And the problem disappeared.

akash.deep’s picture

I faced the same problem. webform_steps_w3 is not required if you dont have to do the migration from W3 to W4, so I just disabled it and it worked well.

pbattino’s picture

Status: Needs review » Closed (works as designed)
M@ster’s picture

Still have this error. Just open default settings and save.

Invalid datetime format: 1366 Incorrect integer value: '' for column `webform_steps_w3_progressbar`.`progressbar_page_number` at row 1: UPDATE {webform_steps_w3_progressbar} SET ....

PetarB’s picture

Same experience on a clean site.

Tried uninstalling Steps, still got the error, referring to the module.

The Fix:

The only way I could get rid of the issue and configure my Webforms was to remove the module's folder from the codebase entirely.

torotil’s picture

Status: Closed (works as designed) » Needs review
FileSize
653 bytes

Here is a patch that should resolve the issue.

I’d still recommend to disable webform_steps_w3 soon after upgrading as it is only needed for webform3 backward compatibility.

torotil’s picture

Status: Needs review » Fixed

I just released #9 in version 2.4.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.