Item14452: Not a HASH reference at .../lib/Foswiki/Plugins/PublishPlugin/Publisher.pm line 208
Priority: Urgent
Current State: Closed
Released In: n/a
Target Release:
using a config topic,
PublishPlugin barfs at me
ERROR: (500) Internal server error - Not a HASH reference at .../lib/Foswiki/Plugins/PublishPlugin/Publisher.pm line 208.
at .../lib/Foswiki/Plugins/PublishPlugin/Publisher.pm line 208.
Foswiki::Plugins::PublishPlugin::Publisher::_loadParams(Foswiki::Plugins::PublishPlugin::Publisher=HASH(0x3cc93b0), CODE(0x3dc4250)) called at .../lib/Foswiki/Plugins/PublishPlugin/Publisher.pm line 409
...
So after
PublishPlugin has acertained that $data is a code reference, it should use it as such, and not like a hashref:
--- a/lib/Foswiki/Plugins/PublishPlugin/Publisher.pm
+++ b/lib/Foswiki/Plugins/PublishPlugin/Publisher.pm
@@ -207,7 +207,7 @@ sub _loadParams {
if ( &$data('configtopic') ) {
my ( $cw, $ct ) =
Foswiki::Func::normalizeWebTopicName( $Foswiki::cfg{UsersWebName},
- $data->{config_topic} );
+ &$data('configtopic') );
my $d = _loadConfigTopic( $cw, $ct );
$data = sub { return $d->{ $_[0] }; };
}
BTW I haven't had any success to keep using old config topics or commandline invocations of
PublishPlugin. Apparently previous ways of specifying topics to include or rather exclude are no longer effective. Switching to
topics
seems to be the way to go.
--
FlorianSchlichting - 01 Aug 2017
I can confirm this fixes the issue.
--
MichaelDaum - 10 Oct 2017
Thanks Florian!
--
Main.CrawfordCurrie - 12 Oct 2017 - 13:09