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

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/ line 456.

tools/ 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/ to call the wizard to install extensions:
tools/configure -save -wizard InstallExtensions -method add -args

Works fine, but with one change. 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 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 - This page was cached on 17 Sep 2021 - 18:56.

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