Item13623: SQL Plugin breaks with a hash reference error
Priority: Urgent
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component: SqlPlugin
Branches: master
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