Closed (fixed)
Project:
Internationalization
Version:
4.6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jun 2005 at 13:36 UTC
Updated:
8 Aug 2005 at 13:57 UTC
The search module doesn't work.
Not unique table/alias: 'n' query: SELECT DISTINCT i.sid, i.type FROM search_index i INNER JOIN node n ON n.nid = i.sid INNER JOIN node n USING (nid) INNER JOIN users u ON n.uid = u.uid WHERE n.status = 1 AND (n.language ='de' or n.language = '') AND (i.word = 'logo') in /var/www/goool/includes/database.mysql.inc on line 66.
What can I do?
Comments
Comment #1
killes@www.drop.org commentedDo you run the i18n module?
Comment #2
pumi77 commentedyes.
Comment #3
pumi77 commentedis there a problem with using i18n and the search.module?
Comment #4
pumi77 commentedThe search module doesn't work anymore, since I installed the i18n module.
Not unique table/alias: 'n' query: SELECT DISTINCT i.sid, i.type FROM search_index i INNER JOIN node n ON n.nid = i.sid INNER JOIN node n USING (nid) INNER JOIN users u ON n.uid = u.uid WHERE n.status = 1 AND (n.language ='de' or n.language = '') AND (i.word = 'logo') in /var/www/goool/includes/database.mysql.inc on line 66.
What can I do?
Comment #5
megamuch commentedIs there (besides primal77) and me, anyone else with this problem.
I've been trying to see what goes wrong, but since I don't know what the correct query would be, it's kind of a shot in the dark.
Search and multilingualism (scrabble) are 2 cornerstones of my current website and without these two, I cannot go 'live'. Any help would be greatly appreciated!
Comment #6
megamuch commentedAlrighty then.. I've seem to have a fix.
Running WAMP and drupal 4.6.1 with I18n.
Open up i18n.inc in your modules/i18n/ directory
Go to line 38
it says
Change it to
Upload the new file and voila.. Search works :) (at least for me...)
I'd advise you to keep a copy of the original code because I just tested this but I am unsure as to what the implications are. For now my search seems to work, but who knows what I've broken.
Hope this helps :)
Comment #7
jose reyero commentedSure you got rid of the error message. But also the node selection by language feature should have stop working :-)
I've just committed a fixed version of i18n.inc
Comment #8
jose reyero commented