Question
I recently installed TWiki on RHEL4 and I got everything working as it should. However, I added the calendar plugin and I can't seem to get it working. I added all of the necessary CPAN modules and there aren't any errors on the diagnostics page. I get the following error:
TWiki detected an internal error - please check your TWiki logs and webserver logs for more information.
missing HTML::CalendarMonthSimple
I checked the logs and can't seem to find anything to help me out. The error seems fairly obvious, but as you can tell, it is causing me a problem. I ran a find and found the following:
[root@localhost ~]# find / -name
CalendarMonthSimple*
/usr/lib/perl5/vendor_perl/5.8.5/HTML/CalendarMonthSimple.pm
/usr/lib/perl5/site_perl/5.8.5/HTML/CalendarMonthSimple.pm~
/usr/lib/perl5/site_perl/5.8.5/HTML/CalendarMonthSimple.pm
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/HTML/CalendarMonthSimple
/root/.cpan/build/HTML-CalendarMonthSimple-1.25/CalendarMonthSimple.pm
/root/.cpan/build/HTML-CalendarMonthSimple-1.25/blib/lib/auto/HTML/CalendarMonthSimple
/root/.cpan/build/HTML-CalendarMonthSimple-1.25/blib/lib/HTML/CalendarMonthSimple.pm
/root/.cpan/build/HTML-CalendarMonthSimple-1.25/blib/arch/auto/HTML/CalendarMonthSimple
Any other ideas would be greatly appreciated.
Environment
--
RobKruciak - 07 Oct 2007
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.
Check the file permissions of
CalendarMonthSimple.pm as well as the directory permissions. Possibly not readable by the web server user?
--
PeterThoeny - 07 Oct 2007
Based on your comments, the user and group should be set to apache?
--
RobKruciak - 07 Oct 2007
Not necessarily owned by the Apache user, it just needs to be readable. Find out the Apache cgi user by running the
configure script.
--
PeterThoeny - 07 Oct 2007
I ran the configure script and found that apache was the CGI user.
CGI user userid = apache groups = apache,apache
Your CGI scripts are executing as this user.
So, I ran a find and found the following:
[root@localhost ~]# find / -name
CalendarMonthSimple.pm
/usr/lib/perl5/vendor_perl/5.8.5/HTML/CalendarMonthSimple.pm
/usr/lib/perl5/site_perl/5.8.5/HTML/CalendarMonthSimple.pm
/root/.cpan/build/HTML-CalendarMonthSimple-1.25/CalendarMonthSimple.pm
/root/.cpan/build/HTML-CalendarMonthSimple-1.25/blib/lib/HTML/CalendarMonthSimple.pm
I modified each of these locations so that apache owns all of them. Still no luck. Any ideas?
--
RobKruciak - 08 Oct 2007
I found some errors that may be leading to my problems. They are found below:
[Mon Oct 08 21:25:06 2007] [error] [client 192.168.73.186] [Mon Oct 8 21:25:06 2007] view: Operator or semicolon missing before %RED at /usr/lib/perl5/site_perl/5.8.5/HTML/CalendarMonthSimple.pm line 272., referer:
http://192.168.73.186/twiki/bin/view/TWiki/InstalledPlugins
[Mon Oct 08 21:25:06 2007] [error] [client 192.168.73.186] [Mon Oct 8 21:25:06 2007] view: Ambiguous use of % resolved as operator % at /usr/lib/perl5/site_perl/5.8.5/HTML/CalendarMonthSimple.pm line 272., referer:
http://192.168.73.186/twiki/bin/view/TWiki/InstalledPlugins
[Mon Oct 08 21:25:06 2007] [error] [client 192.168.73.186] missing HTML::CalendarMonthSimple at /usr/lib/perl5/5.8.5/CGI/Carp.pm line 314., referer:
http://192.168.73.186/twiki/bin/view/TWiki/InstalledPlugins
[Mon Oct 08 21:25:06 2007] [error] [client 192.168.73.186] at /usr/lib/perl5/5.8.5/CGI/Carp.pm line 314, referer:
http://192.168.73.186/twiki/bin/view/TWiki/InstalledPlugins
[Mon Oct 08 21:25:06 2007] [error] [client 192.168.73.186] \tCGI::Carp::realdie('missing HTML::CalendarMonthSimple') called at /usr/lib/perl5/5.8.5/CGI/Carp.pm line 385, referer:
http://192.168.73.186/twiki/bin/view/TWiki/InstalledPlugins
[Mon Oct 08 21:25:06 2007] [error] [client 192.168.73.186] \tCGI::Carp::die('missing HTML::CalendarMonthSimple') called at /var/www/twiki/lib/TWiki/Plugins/CalendarPlugin.pm line 286, referer:
http://192.168.73.186/twiki/bin/view/TWiki/InstalledPlugins
[Mon Oct 08 21:25:06 2007] [error] [client 192.168.73.186] \tTWiki::Plugins::CalendarPlugin::handleCalendar('month="2" year="2002" bgcolor="cyan"', 'SCALAR(0x8d7bfb4)', 'CalendarPlugin', 'TWiki') called at /var/www/twiki/lib/TWiki/Plugins/CalendarPlugin.pm line 152, referer:
http://192.168.73.186/twiki/bin/view/TWiki/InstalledPlugins
[Mon Oct 08 21:25:06 2007] [error] [client 192.168.73.186] \tTWiki::Plugins::CalendarPlugin::commonTagsHandler('---+!! Calendar Plugin (version 1.020)\\x{a}\\x{a}The CalendarPlug...', 'CalendarPlugin', 'TWiki', 0) called at /var/www/twiki/lib/TWiki/Plugin.pm line 245, referer:
http://192.168.73.186/twiki/bin/view/TWiki/InstalledPlugins
[Mon Oct 08 21:25:06 2007] [error] [client 192.168.73.186] \tTWiki::Plugin::invoke('TWiki::Plugin=HASH(0x8fd3a60)', 'commonTagsHandler', '---+!! Calendar Plugin (version 1.020)\\x{a}\\x{a}The CalendarPlug...', 'CalendarPlugin', 'TWiki', 0) called at /var/www/twiki/lib/TWiki/Plugins.pm line 333, referer:
http://192.168.73.186/twiki/bin/view/TWiki/InstalledPlugins
[Mon Oct 08 21:25:06 2007] [error] [client 192.168.73.186] \tTWiki::Plugins::_dispatch('TWiki::Plugins=HASH(0x8deee98)', 'commonTagsHandler', '---+!! Calendar Plugin (version 1.020)\\x{a}\\x{a}The CalendarPlug...', 'CalendarPlugin', 'TWiki', 0) called at /var/www/twiki/lib/TWiki/Plugins.pm line 470, referer:
http://192.168.73.186/twiki/bin/view/TWiki/InstalledPlugins
[Mon Oct 08 21:25:06 2007] [error] [client 192.168.73.186] \tTWiki::Plugins::commonTagsHandler('TWiki::Plugins=HASH(0x8deee98)', '---+!! Calendar Plugin (version 1.020)\\x{a}\\x{a}The CalendarPlug...', 'CalendarPlugin', 'TWiki', 0) called at /var/www/twiki/lib/TWiki.pm line 2605, referer:
http://192.168.73.186/twiki/bin/view/TWiki/InstalledPlugins
[Mon Oct 08 21:25:06 2007] [error] [client 192.168.73.186] \tTWiki::handleCommonTags('TWiki=HASH(0x86b2668)', '---+!! Calendar Plugin (version 1.020)\\x{a}\\x{a}The CalendarPlug...', 'TWiki', 'CalendarPlugin') called at /var/www/twiki/lib/TWiki/UI/View.pm line 375, referer:
http://192.168.73.186/twiki/bin/view/TWiki/InstalledPlugins
[Mon Oct 08 21:25:06 2007] [error] [client 192.168.73.186] \tTWiki::UI::View::_prepare('---+!! Calendar Plugin (version 1.020)\\x{a}\\x{a}The CalendarPlug...', 'TWiki=HASH(0x86b2668)', 'TWiki', 'CalendarPlugin', 'TWiki::Meta=HASH(0x9100e98)', 0) called at /var/www/twiki/lib/TWiki/UI/View.pm line 359, referer:
http://192.168.73.186/twiki/bin/view/TWiki/InstalledPlugins
[Mon Oct 08 21:25:06 2007] [error] [client 192.168.73.186] \tTWiki::UI::View::view('TWiki=HASH(0x86b2668)') called at /var/www/twiki/lib/TWiki/UI.pm line 159, referer:
http://192.168.73.186/twiki/bin/view/TWiki/InstalledPlugins
[Mon Oct 08 21:25:06 2007] [error] [client 192.168.73.186] \tTWiki::UI::__ANON__() called at /var/www/twiki/lib/CPAN/lib//Error.pm line 379, referer:
http://192.168.73.186/twiki/bin/view/TWiki/InstalledPlugins
[Mon Oct 08 21:25:06 2007] [error] [client 192.168.73.186] \teval {...} called at /var/www/twiki/lib/CPAN/lib//Error.pm line 371, referer:
http://192.168.73.186/twiki/bin/view/TWiki/InstalledPlugins
[Mon Oct 08 21:25:06 2007] [error] [client 192.168.73.186] \tError::subs::try('CODE(0x869bde8)', 'HASH(0x9134f60)') called at /var/www/twiki/lib/TWiki/UI.pm line 199, referer:
http://192.168.73.186/twiki/bin/view/TWiki/InstalledPlugins
[Mon Oct 08 21:25:06 2007] [error] [client 192.168.73.186] \tTWiki::UI::run('CODE(0x86b27d0)', 'view', 1) called, referer:
http://192.168.73.186/twiki/bin/view/TWiki/InstalledPlugins
[Mon Oct 08 21:25:06 2007] [error] [client 192.168.73.186] File does not exist: /var/www/html/favicon.ico
--
RobKruciak - 08 Oct 2007
Sorry, closing this after more than 30 days of inactivity. Please feel free to re-open if needed.
--
PeterThoeny - 03 Dec 2007