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 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

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2006-03-24 - AndyGlew
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.