I recently updgraded to 3.16 and now all my forms are blank and showing the following errors:
Notice: Undefined index: total_submit_limit in webform_node_view() (line 1471 of .../sites/all/modules/webform/webform.module).
Notice: Undefined index: total_submit_limit in _webform_submission_total_limit_check() (line 878 of.../sites/all/modules/webform/includes/webform.submissions.inc).
Notice: Undefined index: total_submit_interval in _webform_submission_total_limit_check() (line 887 of .../sites/all/modules/webform/includes/webform.submissions.inc).
Notice: Undefined index: total_submit_interval in _webform_submission_total_limit_check() (line 888 of .../sites/all/modules/webform/includes/webform.submissions.inc).
Notice: Undefined index: total_submit_limit in _webform_submission_total_limit_check() (line 894 of .../sites/all/modules/webform/includes/webform.submissions.inc).
Notice: Undefined index: total_submit_interval in theme_webform_view_messages() (line 1614 of .../sites/all/modules/webform/webform.module).
I also noticed that by default the form settings are set to limit the form to a certain number of submissions instead of unlimited. If I try to edit the settings to unlimited I get the following errors:
Notice: Undefined index: total_submit_limit in webform_configure_form() (line 89 of .../sites/all/modules/webform/includes/webform.pages.inc).
Notice: Undefined index: total_submit_limit in webform_configure_form() (line 96 of .../sites/all/modules/webform/includes/webform.pages.inc).
Notice: Undefined index: total_submit_limit in webform_configure_form() (line 96 of .../sites/all/modules/webform/includes/webform.pages.inc).
Notice: Undefined index: total_submit_interval in webform_configure_form() (line 107 of .../sites/all/modules/webform/includes/webform.pages.inc).
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'total_submit_limit' in 'field list': UPDATE {webform} SET confirmation=:db_update_placeholder_0, confirmation_format=:db_update_placeholder_1, redirect_url=:db_update_placeholder_2, status=:db_update_placeholder_3, block=:db_update_placeholder_4, teaser=:db_update_placeholder_5, allow_draft=:db_update_placeholder_6, auto_save=:db_update_placeholder_7, submit_notice=:db_update_placeholder_8, submit_text=:db_update_placeholder_9, submit_limit=:db_update_placeholder_10, submit_interval=:db_update_placeholder_11, total_submit_limit=:db_update_placeholder_12, total_submit_interval=:db_update_placeholder_13 WHERE (nid = :db_condition_placeholder_0) ; Array ( [:db_update_placeholder_0] => [:db_update_placeholder_1] => full_html [:db_update_placeholder_2] => [:db_update_placeholder_3] => 1 [:db_update_placeholder_4] => 0 [:db_update_placeholder_5] => 0 [:db_update_placeholder_6] => 0 [:db_update_placeholder_7] => 0 [:db_update_placeholder_8] => 1 [:db_update_placeholder_9] => [:db_update_placeholder_10] => -1 [:db_update_placeholder_11] => -1 [:db_update_placeholder_12] => -1 [:db_update_placeholder_13] => -1 [:db_condition_placeholder_0] => 333 ) in drupal_write_record() (line 6975 of .../includes/common.inc).
I found this issue for version 3.15 (http://drupal.org/node/1367930), but I am using the latest drupal core (7.12) and I ran the database upgrade and it still doesn't work. I even tried installing the 3.15 version but I get the same errors. Any help would be appreciated.
Comments
Comment #1
quicksketchI think you're on the right track here. The problem is that (as mentioned in the errors), the "total_submit_limit" column is missing from the "webform" database table. Running update.php should fix this problem. The new column was added in webform_update_7316().
Which version of Webform were you upgrading from? I don't think it matters too much, the solution in all cases is that update.php needs to be run. If running it doesn't help, we'll need to figure out why webform_update_7316() isn't getting run (sometimes this happens when upgrading to a version and then downgrading again, which is never supported. That's why update.php tells you to backup your database before you run it).
Comment #2
laroccadahouse commentedi upgraded from 3.12
Comment #3
quicksketchClosing after lack of activity.
Comment #4
jutior01 commentedYes, I encountered this problem as well.
I then typed my website.com/update and saw that I have 27 things to be updated.
After clicked it, it brought all the warning from the form page. Thanks!
ps. this is error i had; Notice: Undefined index: total_submit_limit in webform_node_view() (line 1511 of /home/content/../..../html/drupal1/sites/all/modules/webform/webform.module).