Item15050: Can't use an undefined value as a HASH reference at Publisher.pm line 220.

pencil
Priority: Normal
Current State: Being Worked On
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: PublishPlugin
Branches:
Reported By: BramVanOosterhout
Waiting For: BramVanOosterhout
Last Change By: BramVanOosterhout
-- BramVanOosterhout - 20 Nov 2021 Publishing a web/topic with the config topic like:
<a class='foswikiPopUp' href='%SCRIPTURLPATH{"rest"}%/PublishPlugin/publish?configtopic=%BASEWEB%.%BASETOPIC%'>Publish this page with configtopic</a>

   * Set PUBLISH_TOPICS = %BASEWEB%.%BASETOPIC%
   * Set PUBLISH_FORMAT = file
leads to an internal server error:
ERROR: (500) Internal server error - Can't use an undefined value as a HASH reference at /home/bram/devfoswiki/core/lib/Foswiki/Plugins/PublishPlugin/Publisher.pm line 220.
 at /home/bram/devfoswiki/core/lib/Foswiki/Plugins/PublishPlugin/Publisher.pm line 220.
   Foswiki::Plugins::PublishPlugin::Publisher::_loadParams(Foswiki::Plugins::PublishPlugin::Publisher=HASH(0x2900ab4), CODE(0x2903348)) called at /home/bram/devfoswiki/core/lib/Foswiki/Plugins/PublishPlugin/Publisher.pm line 389
(...)

The problem is exactly at line 220
            &$data->{config_topic} );
should be:
            &$data('config_topic') );
as in the condition at line 117.

 

ItemTemplate edit

Summary Can't use an undefined value as a HASH reference at Publisher.pm line 220.
ReportedBy BramVanOosterhout
Codebase 2.1.6
SVN Range
AppliesTo Extension
Component PublishPlugin
Priority Normal
CurrentState Being Worked On
WaitingFor BramVanOosterhout
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic revision: r1 - 20 Nov 2021, BramVanOosterhout
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