After upgrading to 7.x-1.0 an admin message appeared indicating that permissions needed to be rebuilt.

Rebuilding permissions halted on a 500 error:

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=1580&op=do StatusText: Service unavailable (with message) ResponseText:

The drupal log recorded the 4 following messages:

1. Theme hook token_help not found.

2. Warning: Invalid argument supplied for foreach() in _tac_lite_get_terms() (line 517 of /sites/all/modules/tac_lite/tac_lite.module).

3. Notice: Trying to get property of non-object in tac_lite_node_get_terms() (line 581 of /sites/all/modules/tac_lite/tac_lite.module).

4. PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'gid' at row 2: INSERT INTO {node_access} (nid, realm, gid, grant_view, grant_update, grant_delete) 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, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9, :db_insert_placeholder_10, :db_insert_placeholder_11); Array ( [:db_insert_placeholder_0] => 13 [:db_insert_placeholder_1] => all [:db_insert_placeholder_2] => 0 [:db_insert_placeholder_3] => 1 [:db_insert_placeholder_4] => 0 [:db_insert_placeholder_5] => 0 [:db_insert_placeholder_6] => 13 [:db_insert_placeholder_7] => tac_lite [:db_insert_placeholder_8] => [:db_insert_placeholder_9] => 1 [:db_insert_placeholder_10] => 0 [:db_insert_placeholder_11] => 0 ) in node_access_write_grants() (line 3546 of /modules/node/node.module).

I uninstalled and reinstalled clearing caches in between but the same result occurred.

CommentFileSizeAuthor
#3 2181939-tac_lite.diff1.03 KBDave Cohen

Comments

grahamshepherd’s picture

After disabling and uninstalling the TAC-Lite module the message to rebuild permissions remained. Permissions this time rebuilt without error messages.

JBecker’s picture

I can confirm this bug report. I have noticed the same behaviour after upgrading today.

Dave Cohen’s picture

Status: Active » Needs review
StatusFileSize
new1.03 KB

Here's a patch I hope fixes this.

Please let me know.

schmidtk’s picture

Had the same problem, patch in #3 fixed things for me.

Dave Cohen’s picture

Status: Needs review » Fixed

Thanks for the review. Tagged the fix as release 1.1.

Status: Fixed » Closed (fixed)

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