Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
After updating from 2.0-rc1 to 2.0, I created a new webform node and got:
Notice: Undefined property: stdClass::$weight_weight in weight_node_insert() (line 342 of /var/www/mysite/sites/all/modules/contrib/weight/weight.module).
- My webform content type is not set up to be using weight. However I have previously noticed that there is no way to have weight mdisabled for a node type. Even if it is disabled it still displays on the node edit form (although I'm getting off topic a bit now).
Comments
Comment #1
rooby CreditAttribution: rooby commentedJust checked this and it seems to no longer be an issue with the new version.
Comment #2
rooby CreditAttribution: rooby commentedThis has been fixed. See commit http://drupalcode.org/project/weight.git/commit/8415722
Marking as duplicate of #1589932: Weight not saving default value
Comment #3
felubraThe problem persists even after 7x2.0 release.
After install the module, if I insert a node, I get this error. If I try to update this node, I get the follow error:
PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'weight' at row 1: INSERT INTO {weight_weights} (entity_id, entity_type, weight) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => 221 [:db_insert_placeholder_1] => node [:db_insert_placeholder_2] => ) in _weight_set_weight() (line 434 of weight.module).
Comment #4
rooby CreditAttribution: rooby commentedThere has not been a release since it was fixed so you currently have to use the dev version until 2.1 comes out.
This is a duplicate of the issue mentioned in #2 so that is the issue with more information on the fix.