Item13623: SQL Plugin breaks with a hash reference error

pencil
Priority: Urgent
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component: SqlPlugin
Branches: master
Reported By: HenroRitchie
Waiting For:
Last Change By: MichaelDaum
SQL Plugins breaks with the following error:

Not a HASH reference at /var/www/foswiki/lib/Foswiki/Plugins/SqlPlugin/Core.pm line 47

Fixed it by removing the outer [] of

$Foswiki::cfg{SqlPlugin}{AccessControl} = [{'id' => 'foswiki','queries' => ['SELECT * FROM TABLE1','UPDATE TABLE1'],'who' => 'WikiUserOrGroup'}];

in LocalSite.cfg

-- HenroRitchie - 18 Aug 2015

Confirmed. Looks like the code expects an hash ref, but the configuration is an array of hashes ???

-- Main.GeorgeClark - 18 Aug 2015 - 15:32

 

ItemTemplate edit

Summary SQL Plugin breaks with a hash reference error
ReportedBy HenroRitchie
Codebase trunk
SVN Range
AppliesTo Extension
Component SqlPlugin
Priority Urgent
CurrentState Closed
WaitingFor
Checkins SqlPlugin:56d720e6a440
ReleasedIn n/a
CheckinsOnBranches master
trunkCheckins
masterCheckins SqlPlugin:56d720e6a440
ItemBranchCheckins
Release01x01Checkins
Topic revision: r3 - 28 Sep 2015, MichaelDaum
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