Item13391: CLI extension installer fails with Can't call method "addChild" on an undefined value

pencil
Priority: Normal
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Engine
Component: Configure
Branches: master Item13391
Reported By: GeorgeClark
Waiting For:
Last Change By: GeorgeClark
Can't call method "addChild" on an undefined value at /var/www/foswiki/distro/core/lib/Foswiki/Configure/Package.pm line 456.

tools/extender.pl doesn't load and pass along the $spec, and has no way to save the configuration.

-- GeorgeClark - 02 May 2015

I think the solution here might be to change tools/extender.pl to call the wizard to install extensions:
tools/configure -save -wizard InstallExtensions -method add -args ControlWikiWordPlugin=Foswiki.org

Works fine, but with one change. Package.pm incorrectly locates the lib directory when run from tools/configure The issue is that lib/setlib.cfg is not executed, and $Foswiki::foswikiLibPath configuration is not set.

-- GeorgeClark - 02 May 2015

Crawford, I checked in some major changes to extender.pl and some to tools/configure as well, See the Item13391 branch. Most of it is probably very safe, but wasn't sure if you wanted the tools/configure change that changes the output from dumps of perl hashes to a simple print to STDERR.

-- GeorgeClark - 03 May 2015
 
Topic revision: r6 - 05 Jul 2015, 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