You are here: Foswiki>Tasks Web>Item14534 (28 Mar 2018, GeorgeClark)Edit Attach

Item14534: PublishPlugin: uninitialized value $text while processing InterwikiPlugin.pm line 90

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: PublishPlugin
Branches: master
Reported By: StefanH
Waiting For:
Last Change By: GeorgeClark
When executing ./rest /PublishPlugin/publish on the command line the following error occurs:

Use of uninitialized value $text in substitution (s///) at .../lib/Foswiki/Plugins/InterwikiPlugin.pm line 90.

I debugged this a little bit. The corresponding code block is executed twice. The first time the variables get set correctly the second time $text is not set correctly.

        my ( $meta, $text ) =
          Foswiki::Func::readTopic( $interWeb, $interTopic );
No idea why it works only the first time though.

-- StefanH - 20 Nov 2017

There is a bug when PublishPlugin re-inits the enabled extensions. It calls it using "Main" as the install web. This causes the plugin to read the interrwiki strings from a missing topic.

-- GeorgeClark - 20 Nov 2017
 
Topic revision: r5 - 28 Mar 2018, GeorgeClark
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