Item15050: Can't use an undefined value as a HASH reference at Publisher.pm line 220.
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
--
BramVanOosterhout - 20 Nov 2021
Pushed to github. Package to be released 14 Dec 2021. Done 19 Dec.
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.