This question about Using an extension: Task closed

configure install failure for TopicClassificationAddOn

Running FS 1.1.2 on current OSX, I tried installing TopicClassificationAddOn via configure.

I got this error

Use of uninitialized value $tweb in concatenation (.) or string at /www/w/lib/Foswiki/Configure/Package.pm line 1084, <$fh> line 266.

This add-on would be very useful to me. Anyone got any ideas?

-- FilSalustri - 25 Jan 2011

This has just shown up with FS 1.1.2 and may have to do with other issues with Package.pm. In any case, I would recommend just downloading the archive and unpacking it in your installation. Also check that you have the dependencies installed.

-- LynnwoodBrown - 26 Jan 2011

Okay. I'll give it a try. I consider this question answered and will change the status.

-- FilSalustri - 26 Jan 2011

It's definitely an issue with the Package Installer. The regular expression that extracts the web name from the manifest cannot handle files installed into webs that are not a topic. It fails on:=data/TCAO/changes=. The installer is looking to install .txt files into webs. Not sure yet if the bug is that the installer doesn't support non-standard files like this, or if the extension should not be installing unreachable files into the web directories.

A simple fix would be to have the Installer skip any files that don't result in extraction of a valid web name. More complex - adjust the regex to support non-standard filenames within webs. Changing status to needs task filed.

-- GeorgeClark - 26 Jan 2011

Digging a little further, there are two files that break the install.
  • data/TCAO/changes
  • data/TCAO/mailnotify
Looking at the contents, I suspect that they should not have been included in the MANIFEST file. mailnotify appears to be a leftover "last mail notification timestamp" file that would normally be kept in the working directory. And changes would normally be created by edits local to the site and named .changes (leading period). So the Package.pm needs some changes to be a bit more robust, and the extension should probably remove these files from the MANIFEST to avoid clutter in the web.

-- GeorgeClark - 26 Jan 2011

Task filed: Tasks.Item10290

-- GeorgeClark - 26 Jan 2011

The latest release of TopicClassificationAddOn avoids the issues with the package installer. This should install fine now. A fix is also in the pipeline to make the Extensions installer more robust as well.

-- GeorgeClark - 26 Jan 2011

Wow! That was fast! Thanks everyone!

-- FilSalustri - 26 Jan 2011

Fil - Make sure you update to this latest version as it includes a few additional little fixes. Thanks to GeorgeClark for helping me get this latest version published so quickly!

-- LynnwoodBrown - 27 Jan 2011

Yup; done. Works fine now!

-- FilSalustri - 27 Jan 2011

QuestionForm edit

Subject Using an extension
Extension TopicClassificationAddOn
Version Foswiki 1.1.2
Status Task closed
Topic revision: r9 - 27 Jan 2011, FilSalustri
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