Closed (fixed)
Project:
Filebrowser
Version:
6.x-1.1-beta1
Component:
Miscellaneous
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Feb 2008 at 21:20 UTC
Updated:
17 May 2008 at 22:11 UTC
Installed the module on fairly stock drupal 6 rc3 on Postgres. The following errors are what I get when I enable the module.
* warning: pg_query() [function.pg-query]: Query failed: ERROR: argument of WHERE must be type boolean, not type integer in C:\wamp\www\WxPortal\includes\database.pgsql.inc on line 138.
* user warning: query: SELECT path, location FROM filebrowser WHERE 1 in C:\wamp\www\WxPortal\modules\filebrowser\filebrowser.module on line 8.
I have seen other modules have issues because of postgres SQL being different from expected.
Comments
Comment #1
Susurrus commentedHave you tried changing the query in line 8 to read "
SELECT path, location FROM filebrowser WHERE true"?Also, to improve readability throw code and error message into <code> tags.
Comment #2
spydmobile commentedNo I didnt. I was just providing feedback. - I will use code tags henceforth :)
Comment #3
Susurrus commentedCould you try changing that line I specified? I don't have PgSQL and don't have the resources or skills to thoroughly test this on that DB.
Comment #4
spydmobile commentedchanged existing code from:
$qry = db_query('SELECT path, location FROM {filebrowser} WHERE 1');to:
$qry = db_query('SELECT path, location FROM filebrowser WHERE true');then enabled the module in D6.1 and got the no errors, but when I copnfigured the module at:
admin/settings/filebrowser
I got:
Changed the 1 to a true on line 113 (112 in original file) and error was gone.
Tried to configure with my directories and got:
The directories are valid windows directories.
Comment #5
Susurrus commentedThe last set of errors looks like the insert SQL statement failed, not that the directory was invalid. I'll see if I can look into that statement later.
Comment #6
spydmobile commentedok cool, FYI the line numbers in the error are one line higher than in your file because I put a comment in the file to note my changes.
Comment #7
spydmobile commentedbump?
Comment #8
Susurrus commentedComment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.