Question
InstalledPlugins keeps reporting "TWiki::Plugins::TreePlugin::initPlugin did not return true (0)".
I am not familiar with Perl/CGI, but taking a look at the file TreePlugin.pm, which has initPlugin function. There are only three places where will return from this function. It seems that the second return returns zero, which means the CGI check failed ... Then, I have no idea about what is going on here ...
BTW, this is my first time to install plugin for my TWiki. So it might be some how-to problems. I already check the permissions of the files of
TreePlugin.
Environment
--
ChenghuanJia - 01 Jan 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
TreePlugin is kind of a bad example plugin to try installing the first time around. I did not run into any problems when I did it but the plugin is not supported any longer and is very poorly written and I seriously doubt that anyone has bothered to update it. Have you tried a plugin that is certified to run under the version of Twiki that you are running?
--
SteveRJones - 19 Jan 2006
I agree that TreePlugin has issues, but it is nonetheless one of the most useful plugins.
I therefore hacked away until it seemed to run... basically I commented out all of the cgi related code. I then had to patch TWiki::Meta, restoring functions findOne and _key - which I found by googling "twiki meta findOne". I conjecture they were present when TreePlugin was originally coded, but were then removed.
Q: has anyone coded up a clean replacement for
TreePlugin?
--
AndyGlew - 14 Mar 2006
Follow-up in
TreePluginDev
--
PeterThoeny - 14 Mar 2006