I was brought in to a project at work that had been underway for a few months. They were happily styling the drupal commerce and other components and wanted me to build the admin dashboard. I was unable to go to the new panel pages I was making because drush cc menu was clogged with an error:
WD menu: PDOException: SQLSTATE[23000]: Integrity constraint violation ... title cannot be NULL

after some googling and then reading through the trememdously long error message, I found this record:
...
[:db_insert_placeholder_115] =>
[:db_insert_placeholder_116] =>
[:db_insert_placeholder_117] =>
[:db_insert_placeholder_118] => user_access
[:db_insert_placeholder_119] => a:1:{i:0;s:14:"access content";}
[:db_insert_placeholder_120] => rules_linkevent_dispatch
[:db_insert_placeholder_121] => a:1:{i:0;s:0:"";}
[:db_insert_placeholder_122] =>
[:db_insert_placeholder_123] => 1
[:db_insert_placeholder_124] => 1
[:db_insert_placeholder_125] => 0
[:db_insert_placeholder_126] =>
[:db_insert_placeholder_127] =>
[:db_insert_placeholder_128] =>
[:db_insert_placeholder_129] => t
[:db_insert_placeholder_130] =>
[:db_insert_placeholder_131] =>
[:db_insert_placeholder_132] => a:0:{}
[:db_insert_placeholder_133] => 0
[:db_insert_placeholder_134] =>
[:db_insert_placeholder_135] =>
[:db_insert_placeholder_136] => 0
[:db_insert_placeholder_137] =>
[:db_insert_placeholder_138] => search
...
That is one complete entry to the database, I counted.
You will notice that placeholder 128, which should be holding what goes in to t() for the title, is empty. Also, holder 120 references this module.
With a quick grep and the prior googling, I found that rules_linkevent.module has the same trusting idea that also hurt http://drupal.org/node/619542 and http://drupal.org/node/1320634
Applying a similar remedy to your module cleared my router trouble. In that light, I offer this patch. I did not have your module in git, so this patch is made with diff -ur

CommentFileSizeAuthor
title.patch405 bytesdeveloperweeks

Comments

torgospizza’s picture

Status: Needs review » Reviewed & tested by the community

Patch above worked for me!

deggertsen’s picture

Works! Thanks!

deggertsen’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks @developerweeks!

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

spelling correction