Foswiki on GitHub is open for business! Next release meeting: Monday October 13, 1300Z

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

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Closed Extension TWikiCompatibilityPlugin  
Error in lib/TWiki/ 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/ line 14.
Compilation failed in require at lib/TWiki/Plugins/ line 22.
BEGIN failed--compilation aborted at lib/TWiki/Plugins/ 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/, line 14, replace
@MON2NUM = @Foswiki::Time::MON2NUM;
%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
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 CopyrightStatement. Creative Commons License