Item8072: Error in Bridge between TWiki::Time and Foswiki::Time

pencil
Priority: Normal
Current State: Closed
Released In: 1.0.4
Target Release: patch
Applies To: Extension
Component: TWikiCompatibilityPlugin
Branches:
Reported By: Foswiki:Main.KerstinPuschke
Waiting For:
Last Change By: KennethLavrsen
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

ItemTemplate edit

Summary Error in Bridge between TWiki::Time and Foswiki::Time
ReportedBy Foswiki:Main.KerstinPuschke
Codebase 1.0.0
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component TWikiCompatibilityPlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:98b6eb71faa5 distro:d130a63df077
TargetRelease patch
ReleasedIn 1.0.4
Topic revision: r6 - 19 Mar 2009, KennethLavrsen
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy