'No site found!' error with external postgres DB

Re: 'No site found!' error with external postgres DB

by Petri Asikainen -
Number of replies: 0
Try commentig out line
"$CFG->prefix = "$CFG->dbname.$CFG->prefix";"
in auth/db/lib.php
for me it seems to help.

Cheers,

Petri

===================================================================
RCS file: /cvsroot/moodle/moodle/auth/db/lib.php,v
retrieving revision 1.11
diff -c -r1.11 lib.php
*** lib.php 26 Oct 2003 16:08:31 -0000 1.11
--- lib.php 21 Aug 2004 06:18:04 -0000
***************
*** 12,18 ****
// two databases of the same kind ... it seems to get confused when trying to access
// the first database again, after having accessed the second.
// The following hack will make the database explicit which keeps it happy
! $CFG->prefix = "$CFG->dbname.$CFG->prefix";

// Connect to the external database
$authdb = &ADONewConnection($CFG->auth_dbtype);
--- 12,18 ----
// two databases of the same kind ... it seems to get confused when trying to access
// the first database again, after having accessed the second.
// The following hack will make the database explicit which keeps it happy
! // $CFG->prefix = "$CFG->dbname.$CFG->prefix";

// Connect to the external database
$authdb = &ADONewConnection($CFG->auth_dbtype);