I do a fresh install of this module on a D7 module that already has content.
On the admin panel I get the message
"The content access permissions need to be rebuilt. Rebuild permissions."
When I click Rebuild Permissions I am presented with the following error:
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?render=overlay&id=23&op=do StatusText: Service unavailable (with message) ResponseText: PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '))' at line 4: SELECT t.* FROM {taxonomy_index} r INNER JOIN {taxonomy_term_data} t ON r.tid = t.tid INNER JOIN {taxonomy_vocabulary} v ON t.vid = v.vid WHERE (r.nid = :db_condition_placeholder_0) AND (t.vid IN ()) ; Array ( [:db_condition_placeholder_0] => 13 ) in _tac_lite_get_terms() (line 460 of /var/vhosts/friendsandheroes.com/web/sites/all/modules/tac_lite/tac_lite.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | tac_lite-7.x-1.x-dev-empty-vids.patch | 1.44 KB | garethsprice |
| #8 | tac_lite-7.x-1.x-proposed_fix_for_1078720-1.patch | 480 bytes | thekevinday |
Comments
Comment #1
Dave Cohen commentedWhile this certainly needs to be fixed, I suspect if you configure at least one scheme on the tac_lite admin pages, then rebuild permissions it might succeed, just as a workaround.
Comment #2
matthewdolman commentedwonderful, thanks
Comment #3
esculcar commented+1 suscribing
Comment #4
mcaden commentedI can confirm both the problem and the workaround in #1
Comment #5
shadowmihai commentedI confirm both the problem and the workaround in #1
Comment #6
shadowmihai commentedsubscribe
Comment #7
anthonyR commentedGreat temporary fix in #1
Comment #8
thekevinday commentedThe problem seems to be that there are duplicate resets on terms with the same ID.
Here is a proposed fix that solves the problem by directly specifying the array id to be the term id.
The problem is that this feels like a work-around of the real problem.
How exactly are duplicate tids happening and should this be allowed?
Please review that this patch neither hides any real issue nor breaks any existing functionality.
Comment #9
mikel.artaso commentedHi.
I am a newbie to drupal but I got the same error and none of the above solves the issue for me. Any info I can post so you can help me to try to solve it?
Bests,
Mikel
Comment #10
FrequenceBanane commentedThe problem seems to be in tac_lite.module where :
After creating a scheme and applying the proposed patch, the value of my 'tac_lite_categories' variable is a:1:{i:11;s:2:"11";} but permission reconstruction encounter an unknown issue each time I try to do it, although there is no issue in the issue report of my website !
Any idea ?
Comment #11
schultetwin commentedPossibly related to this?
http://blog.richardknop.com/2009/10/sqlstate42000-syntax-error-or-access...
So I believe Dave is correct.
Comment #12
garethsprice commentedThe module is blowing up if there are no tac_lite vocabularies defined, it's running "AND (t.vid IN ())" where the IN is empty, and MySQL does not like that.
Fixed by adding an if(empty()) check in _tac_lite_get_terms() around line 453.
Note that the attached patch also includes the previous patch posted to this thread, which I had tried as a first-fix.
Comment #13
Dave Cohen commentedThis is an old issue that I lost track of. Looking it over, I'm pretty sure that patch is reversed.
At any rate, I believe the problem was fixed some time ago.