Tags:
create new tag
, view all tags

Question

I've just installed the Calendar Plugin and my web hosting service has just installed the HTML::CalendarMonthSimple CPAN module at my request. I'm getting this error (with the result that the Calendar Plugin isn't running at all):

Software error:Undefined subroutine & TWiki::Plugins::CalendarPlugin::handleCalendar called at ../lib/TWiki/Plugins/CalendarPlugin.pm line 126.

On the Dev page for the PLugin Norbert Gawor had this problem in 2002 but with line 107, and received a message back saying that it was a CPAN module problem. The 3 modules required are, according to that posting, are:

  • Bit::Vector
  • Date::Calc (needs Bit::Vector)
  • HTML::CalendarMonthSimple (needs Date::Calc)

The current plugin page doesn't identify a dependency for Bit::Vector (which isn't installed on my server) but maybe that's assumed? Can someonme confirm before I go off and ask for another CPAN module to be installed.

ALSO can anyone enlighten me on the use of the pub directory?

Environment

TWiki version: TWikiRelease01Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version: 5.005
Client OS:  
Web Browser:  
Categories: Plugins

-- SueLocke - 17 Nov 2004

Answer

Sorry - came straight over from the Dev page to the Support page and forgot to look at answered questions. Saw the previous Support.CalendarPluginUndefinedSubroutine iteration of this problem. Can see that there isn't going to be an easy way to solve this problem. Such a pity - a really vital plugin that just seems to have a whole lot of problems with it. I'm going to give up after having read through all the ways people have tried to fix this and still came across problems. Upgrade to Perl 5.8 as one of the solutions? This isn't a viable solution for a lot of people I would think.

Why is this one so hard? I'm going to link a yahoogroup calendar (from the yahoogroup mailing list I use for technical support for people using our Twiki) into one of our TWiki pages, and keep an eye on the Calendar Plugin to see if a rewrite turns up.

-- SueLocke - 18 Nov 2004

called at ../lib/TWiki/ is an indication that you have a relative path in twiki/bin/setlib.cfg. Change that to an absolute path.

Replace all occurances of our variable declaration with my declaration.

Possibly try an older Plugin version available at http://TWiki.org/cgi-bin/attach/Plugins/CalendarPlugin?filename=CalendarPlugin.zip&revInfo=1

Let us know your progress.

-- PeterThoeny - 18 Nov 2004

Sue - I would really like to see CalendarPlugin developed to it's potential also. However, short of that, you might have a look at Plans as an alternative to Yahoo. It has all the features and I've integrated into a TWiki installation using iFrame. Since it's a perl application, this is the kind of situation that makes me wish we had more options for integrating external scripts into TWiki.

-- LynnwoodBrown - 18 Nov 2004

Thanks for the suggestions. I'm away from my computer for a few days, but as soon as I'm back I'll try the above and let you know.

-- SueLocke - 18 Nov 2004

Installing an earlier version worked. Thanks. Now to try it out fully smile

-- SueLocke - 22 Nov 2004

Sue - onto what in pub do you want us to shine the enlightenment?

-- MartinCleaver - 22 Nov 2004

Martin thanks for picking that up. The fine details of the install of my TWiki was done by a perl programmer and I remember him saying something about not using a pub directory. Hence I don't have such a directory. I put any /pub/files from plugins into the lib directory and they work from there. But I'd like to know something more about this rather than working from an "act of faith" space.

-- SueLocke - 22 Nov 2004

Ok - have got the calendar working. The documentation for the plugin is not that obvious for a newbie like me. A good night's sleep gave me the waking insight that I need to put the events to be listed on a separate topic page and add the syntax topic="Topic Name" (as per that separate topic page) into the attributes statements for the plugin. All then fell into place. Nice! As usual once one has such a breakthrough its hard to look back and see what the problem was - but this one is tricky - maybe an example in the TWiki Sandbox might help. I'll do that myself I think in gratitude for the support I received here. Uh hah! The calendar plugin is not installed on TWiki. Scratch that last thought.

-- SueLocke - 22 Nov 2004

Cross posting from the CalendarPluginDev page. Brand new TWiki 4.2 installation and upacked and moved CalendarPlugin files to the right places. Set all the permissions. Then tried to run the script from the /twiki/ top level with : sudo perl CalendarPlugin_installer.pl I get the error >>>>Can't locate object method "findUser" via package "TWiki::Users" at CalendarPlugin_installer.pl line 563. <<<< Now, I've dorked around with that line, even set it so that the user was {RedByer} and then it sort of worked but failed elsewhere. Is there anywhat to Manually do the install, since it seems like the script is broken all over?

-- RedByer - 06 May 2008

It is better to open a new support question, stating the exact environment.

-- PeterThoeny - 06 May 2008

All good. The answer to my problem was found in CantLocateFindUser

-- RedByer - 10 May 2008

 
Topic revision: r13 - 2008-05-10 - RedByer
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.