When enabling the Webform Validation Module in a Drupal 7 website, the following error code was received after attempting to delete a node (page):
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'weight' in 'field list': SELECT ruleid, rulename, nid, validator, data, error_message, negate, weight FROM {webform_validation_rule} WHERE nid = :nid ORDER BY weight ASC, ruleid DESC; Array ( [:nid] => 61 ) in webform_validation_get_node_rules() (line 24 of /home/mperform/public_html/sites/all/modules/webform_validation/webform_validation.rules.inc).
Disabling the Webform Validation module solved the problem, at least as being able to delete pages is concerned.
Comments
Comment #1
Liam MorlandHave you run update.php? You are missing a database column.
Comment #2
spanzers CreditAttribution: spanzers commentedWe're having the same issue and our databases are up to date. Running updatedb shows no updates needed.
Comment #3
Liam MorlandI don't know how that could happen. A fresh install should create the column or webform_validation_update_7105() should have created it. To fix it, you'll need to create the column, either manually or by running webform_validation_update_7105().
Comment #4
Liam MorlandI cannot work on fixing this without steps to reproduce the problem.
Comment #5
Liam MorlandIf you are still having problems, please re-open and provide steps to reproduce.