Looks like Wikitools isn't compatible with PostgreSQL:
warning: pg_query() [function.pg-query]: Query failed: ERROR: column "_" does not exist in /var/www/html/includes/database.pgsql.inc on line 139.
user warning: query: SELECT COUNT(DISTINCT(n1.nid)) FROM node n1, node n2 WHERE LOWER(REPLACE(n1.title, "_", " ")) = LOWER(REPLACE(n2.title, "_", " ")) AND n1.nid != n2.nid AND n1.type IN('page','story') AND n2.type IN('page','story') in /var/www/html/sites/all/modules/wikitools/wikitools.admin.inc on line 17.This occurred when I tried to modify the admin settings for this module.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 472188.patch | 1.47 KB | roychri |
| #3 | fix-wikitools-1.patch | 965 bytes | josh waihi |
Comments
Comment #1
cwgordon7 commentedHm. This is a problem. I'm not sure what's wrong. PostgreSQL people, any help?
Side note: this should only affect you on the duplicate node page?
Comment #2
illmnec commentedI fixed this bug locally by editing /var/www/html/sites/all/modules/wikitools/wikitools.admin.inc and changing the " to ' and the surrounding ' to " in lines 154, 155, 158 and 159.
Thus,
Became
I am not sure but this might break the MySQL side of things.
Comment #3
josh waihi commentedhere's a patch, not sure if its the complete fix but it fixes what is outlined above.
Comment #4
roychri commentedI will review the path.
Comment #5
roychri commentedAfter I applied this patch, the error was gone but another one appeared.
According to this thread: http://archives.postgresql.org/pgsql-sql/2007-02/msg00161.php
The SQL statement is incorrect.
Comment #6
roychri commentedHere is an updated patch which also fix the other error I mentioned in comment #5.
Comment #7
josh waihi commentedlooks good, I'm happy :)
Comment #8
cwgordon7 commentedThanks, committed and should be fixed on the development branch.