Item10405: DatabasePlugin fails if ConfigSource is remote
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
The DatabasePlugin fails if it is configured to use a remote ConfigSource. Logfiles show
Can't call method "prepare" on an undefined value at lib/Foswiki/Plugins/DatabasePlugin.pm line 58.
.
The respective line of code uses
$dbinfo->{db}
as a database connection handle, but
$dbinfo->{db}
is
undef
while the connection handle is stored in
$db
.
Hotfix: Replacing
$dbinfo->{db}
with
$db
in
lib/Foswiki/Plugins/DatabasePlugin.pm
, line 58, works for me.
--
KerstinPuschke - 24 Feb 2011