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

Comments

SocialNicheGuru created an issue. See original summary.

socialnicheguru’s picture

Status: Active » Needs review
StatusFileSize
new1.28 KB

Here is a patch

Leeteq’s picture

StatusFileSize
new6.67 KB

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

socialnicheguru’s picture

I 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',

  • NickWilde committed 68c077e on 7.x-3.x
    Issue #2876814 by SocialNicheGuru, Leeteq: Column 'max_length...
nickdickinsonwilde’s picture

Status: Needs review » Fixed

Thanks for the report and patch work!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.