SID-00215: Publish::initPlugin is not defined - PublishContrib Issue
| Status: |
Answered |
TWiki version: |
4.1.1 |
Perl version: |
5.8.8 |
| Category: |
PublishContrib |
Server OS: |
LINUX 2.6.18-8 |
Last update: |
16 years ago |
I'm trying to use the
PublishContrib plugin to create a static view (HTML files) of our TWiki.
Per TWiki.pm the version and release we are on is:
$VERSION = '$Date: 2007/02/13 15:30:43 $ $Rev: 12770 $ ';
$RELEASE = 'TWiki-4.1.1';
When I hit the /twiki/bin/view/TWiki/InstalledPlugins page I get the following error:
"Plugins: could not fully register Publish, no plugin topic TWiki::Plugins::Publish::initPlugin is not defined"
I see that various other plugins that have been installed on our system have this function defined but not Publish.pm.
What's going on here?
Neither Google or the Q&A search here yielded anything obvious. I might add that I've never administered a TWiki environment before attempting to add this plugin. More to the point I could very well be lacking "tribal knowledge" that is par for the course once someone has a bit of experience with TWiki.
--
MarioPacheco - 24 Mar 2009
Discussion and Answer
Contribs and Plugins are not the same. Plugins live in the
twiki/lib/TWiki/Plugins directory. A FooBarPlugin for example needs to have a
twiki/lib/TWiki/Plugins/FooBarPlugin.pm module that contains an
initPlugin function, and
twiki/data/TWiki/FooBarPlugin.txt topic. Contribs are not that strict. Not sure why the author of the PublishContrib chose to mix contrib and plugin spec.
I suggest looking into the
PublishWebPlugin. As an example, content of
http://www.twiki.net/
fully maintained in the intranet TWiki using this plugin to push content to the website with a custom publish skin.
--
PeterThoeny - 24 Mar 2009
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2009-05-02
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.