Bug: Admin Log can't be viewed, when database is Postgres
Posted: Mon Aug 29, 2005 2:07 pm
Problem: "Admin Log" never shows any info!
PHP LOG:
PHP Fatal error: Call to a member function on a non-object in /usr/local/www/www.example.com/admin/adminlog.php on line 94
POSTGRES LOG:
ERROR: LIMIT #,# syntax is not supported
HINT: Use separate LIMIT and OFFSET clauses.
Looking in adminlog.php backwards from line 94, I'm guessing the SQL code that caused this was:
$query = "SELECT * from ".cms_db_prefix()."adminlog ORDER BY timestamp DESC limit $from, $limit";
$result = $db->Execute($query);
I'm out of my depth here! Is it possible to adjust adminlog.php to avoid using "limit" in this way?
Thanks!
- Martin
PHP LOG:
PHP Fatal error: Call to a member function on a non-object in /usr/local/www/www.example.com/admin/adminlog.php on line 94
POSTGRES LOG:
ERROR: LIMIT #,# syntax is not supported
HINT: Use separate LIMIT and OFFSET clauses.
Looking in adminlog.php backwards from line 94, I'm guessing the SQL code that caused this was:
$query = "SELECT * from ".cms_db_prefix()."adminlog ORDER BY timestamp DESC limit $from, $limit";
$result = $db->Execute($query);
I'm out of my depth here! Is it possible to adjust adminlog.php to avoid using "limit" in this way?
Thanks!
- Martin