Closed (fixed)
Project:
filedepot
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
21 Feb 2012 at 11:44 UTC
Updated:
10 Oct 2012 at 12:51 UTC
Jump to comment: Most recent file
Hallo , filedepot remains at the "Please wait..." screen when trying to open a folder. JSON is enabled and the scripts mentioned in the readme are loaded. I think there is a code-related error. The attached screenshot shows that somehow mysql queries are used instead of postgresql specific ones. Can someone give a hint where I can change the query? Thx in advance
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | filedepot-postgresql_errors-1447970-4.patch | 1.79 KB | rocketeerbkw |
| filedepot_error.png | 106.85 KB | de_chris |
Comments
Comment #1
de_chris commentedHello I'm afraid filedepot is NOT supposed to deal with Postgresql, right?
I found the usage of the mysql specific "LIMIT" clause in several php-files, e.g. lib-theme.php, lib-ajaxserver.php, ajaxserver.php. Can anyone give a statement if postgresql was considered in filedepot? Since Drupal is also desinged for Postgresql I think this should be stated somewhere.
Comment #2
jaypark commentedThought POSTGRESQL supported LIMIT clause... anyway, just ran into the LIMIT clause issue when installing filedepot on drupal site running with sql server, which definitely doesn't support LIMIT (uses TOP instead). This was surprising as I'd seen several articles at nextide about drupal on WISP.
LIMIT statements should be abstracted to db_query_range()
http://api.drupal.org/api/drupal/includes%21database%21database.inc/func...
Comment #3
_timpatrick commentedComment #4
rocketeerbkw commentedIt looks like filedepot was in fact developed with postgresql in mind but the API changed in Drupal 7 that determines which database is being used.
Instead of
$GLOBALS['db_type']there is adb_driver()function.Here is a patch that fixes this in
lib-ajaxserver.php. This was the only file that came up in a "find all" search.Comment #5
_timpatrick commentedThanks :) Tested and committed to dev