We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You must opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
You are here: TWiki> Support Web>InitPluginErrorinTreePlugin (24 Mar 2006, AndyGlew)
Tags:
create new tag
, view all tags

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

TWiki version: TWikiRelease2005x11x06x7338beta
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Fedora Core 3
Web server: Apache 2.0.54
Perl version: Perl 2.0.2
Client OS: Windows XP
Web Browser: Firefox 1.5
Categories: Plugins

-- ChenghuanJia - 01 Jan 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list 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

 
Topic revision: r6 - 24 Mar 2006 - 03:33:29 - AndyGlew
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback