WSOD with this in logs:
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'max_length' cannot be null: INSERT INTO {tribune_local} (nid, max_length, nofollow, target, filter_format, users, reload_rate) 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, :db_insert_placeholder_6); Array#012(#012 [:db_insert_placeholder_0] => 44#012 [:db_insert_placeholder_1] => #012 [:db_insert_placeholder_2] => #012 [:db_insert_placeholder_3] => #012 [:db_insert_placeholder_4] => #012 [:db_insert_placeholder_5] => a:0:{}#012 [:db_insert_placeholder_6] => 30#012)#012 in tribune_local_node_insert() (line 133 of /modules/all/tribune/backends/tribune_local/tribune_local.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | tribune_local.module.zip | 6.67 KB | Leeteq |
| #2 | 2876814-max_length-undefined.patch | 1.28 KB | socialnicheguru |
Comments
Comment #2
socialnicheguru commentedHere is a patch
Comment #3
Leeteq commented#2: there are two more occurances of that check in that file...
Attached is a version of that module file with this patch manually applied on all 3 places, plus also including the patch reported in #2830628: Notice: Undefined property. I have tested it on a site with Drupal Commons 3.45, set as a node inside a closed, invite-only Organic Group. Seems to work fine, but not a lot of testing done yet.
Comment #4
socialnicheguru commentedI did a search on a new tribune install from git and found only one reference to 256 which my patch takes care of.
cd tribune
grep -in "'max_length' => '256'" -d recurse *
tribune.module:1072: 'max_length' => '256',
Comment #6
nickdickinsonwildeThanks for the report and patch work!