NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item9693 for docu changes for 1.2 and 2.0.
Item8072: Error in Bridge between TWiki::Time and Foswiki::Time
Error in
lib/TWiki/Time.pm breaks DateTimePlugin (and possibly all TWiki Plugins using Time):
System.InstalledPlugins lists DateTimePlugin as disabled, section Plugin Diagnostics shows the following message:
TWiki::Plugins::DateTimePlugin could not be loaded. Errors were:
Global symbol "@MON2NUM" requires explicit package name at lib/TWiki/Time.pm line 14.
Compilation failed in require at lib/TWiki/Plugins/DateTimePlugin.pm line 22.
BEGIN failed--compilation aborted at lib/TWiki/Plugins/DateTimePlugin.pm line 22.
Compilation failed in require at (eval 58) line 2.
BEGIN failed--compilation aborted at (eval 58) line 2.
To reproduce, make sure the TWikiCompatibilityPlugin is installed and enabled. Install the DateTimePlugin from the TWiki Extensions Repository and enable it with configure. If you cannot load System.DateTimePlugin, you may have to fix
Tasks.Item8073. If you can load System.DateTimePlugin, go to InstalledPlugins and check if DateTimePlugin is disabled and the section Plugin Diagnostics shows the above error message.
Suggested Fix:
In
lib/TWiki/Time.pm, line 14, replace
@MON2NUM = @Foswiki::Time::MON2NUM;
with
%MON2NUM = @Foswiki::Time::MON2NUM;
--
KerstinPuschke - 11 Mar 2009
Thanks, Kerstin. Fixed.
--
CrawfordCurrie - 16 Mar 2009