Download & Extend

Batax does not seem to function when used along with autotag module

Project:Big Autocomplete TAXonomy
Version:6.x-1.5
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Batax module works itself.
However, when Autotag module is activated, Batax does not seem to function and autocomplete functionality does not appear.

Thanks for clarification if this is a bug or I am doing something wrong

Comments

#1

I have installed the same version. My vocabulary has 400 terms. But Batax does not show any existing terms when I enable the Batax module and set it up for that vocabulary.

#2

What do you get if you visit the following URL on your site?

http://example.com/?q=batax/autocomplete/[vid]/[term name]

Where [vid] should be replaced with a Vocabulary VID from your site, and [term name] should be part of a term from that vocabulary.

#3

I have this happening as well, but it seems to be a permission thing. As when I am logged in as administrator it works, when as a normal user it doesn't.

The above test returned [  ].

I just found this message in my logs.

Type: php
Date: Friday, July 23, 2010 - 15:58
User: test
Location: http://guides.lib.umanitoba.ca/?q=batax/autocomplete/10/aging
Referrer:

Message: Unknown column 't.tid' in 'on clause' query: SELECT DISTINCT t.tid, CONCAT(t.name,':',t.tid) AS name FROM term_data t , term_lowername l LEFT JOIN forum_access fa ON t.tid = fa.tid LEFT JOIN acl acl_fa ON acl_fa.name = t.tid AND acl_fa.module = 'forum_access' LEFT JOIN acl_user aclu_fa ON aclu_fa.acl_id = acl_fa.acl_id AND aclu_fa.uid = 9 WHERE ((fa.grant_view >= 1 AND fa.rid IN (2, 4)) OR fa.tid IS NULL OR aclu_fa.uid = 9) AND ( t.vid = 10 AND l.tid = t.tid AND lowername LIKE LOWER('%aging%')) LIMIT 0, 10 in /var/www/drupal-6.17/sites/guides.lib.umanitoba.ca/modules/batax/batax.module on line 191.
Severity: error

#4

Looking at this again, it appears that forum access is injecting itself into the BATAX autocomplete code. Will check in their issue queue.

#5

Nothing in forum access issue queue, disabled forum access and BATAX complains about a missing parameter. Looks like a bigger issue. Will check back when there is an update as it works nice for a user will all permissions, just not for anybody else.

#6

I have the same problem. When I'm logged in as admin (not even user 1), /?q=batax/autocomplete/4/UNISON gives me
{ "UNISON:174": "UNISON:174 (unions)" }
However as authenticated user I get
[ ]
and the error message
Unknown column 't.tid' in 'on clause' query: SELECT t.tid, CONCAT(t.name,':',t.tid) AS name FROM term_data t , term_lowername l LEFT JOIN term_data tac_td ON t.tid = tac_td.tid WHERE (t.tid IN (0, 305, 1, 305) OR tac_td.vid NOT IN (1)) AND ( t.vid = 4 AND l.tid = t.tid AND lowername LIKE LOWER('UNISON%')) LIMIT 0, 10 in /htdocs/sites/default/modules/batax/batax.module on line 191.

P.S. I don't have the autotag installed