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

rooby’s picture

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).

Just checked this and it seems to no longer be an issue with the new version.

rooby’s picture

Status: Active » Closed (duplicate)
felubra’s picture

The 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).

rooby’s picture

There 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.