Item10405: DatabasePlugin fails if ConfigSource is remote

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: DatabasePlugin
Branches: trunk
Reported By: KerstinPuschke
Waiting For:
Last Change By: FlorianSchlichting
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

 
Topic revision: r4 - 19 Dec 2011, FlorianSchlichting
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy