Tags:
create new tag
view all tags

Question

It seems strange but I can't get EasyTimelinePlugin to work at all unless DEBUG = 1, otherwise I get these errors:

  • the plugin topic returns on a simple text page, "TWiki detected an internal error - please check your TWiki logs and webserver logs for more information. Couldn't untaint D:path".
  • the Apache log says, "Couldn't untaint D:/tmp/EasyTimelinePlugin6348 at D:/perl/lib/CGI/Carp.pm line 319"...

With DEBUG on, it generates the GIF (which it leaves in /tmp because of DEBUG), but not required the PNG (in the /pub directory). The debug log says, "PNG file not created (is nconvert.exe missing?)". That would be appear to be an undocumented dependency on nconvert. I installed nconvert in the ploticus directory (so that it would be in the system path), but that didn't help.

I modified tools/EasyTimeline.pl to show more debug info on nconvert:

  if ((-e $file_bitmap) && ($fmt eq "gif"))
  {
    print "Running nconvert to convert gif image to png format\n\n" ;
    print "---------------------------------------------------------------------------\n" ;
    $cmd = "nconvert.exe -out png " . EscapeShellArg($file_bitmap) ;
    print "$cmd\n";
    print system ($cmd) . "\n";
    print "---------------------------------------------------------------------------\n" ;

    if (! (-e $file_png))
    { print "PNG file not created (is nconvert.exe missing?)\n\n" ; }
  }
... tells me "256". Not much help I'm afraid:
Generating output:
Using ploticus command "D:/Common/Ploticus240win32/bin/pl.exe" (D:/Common/Ploticus240win32/bin/pl.exe)
Running Ploticus to generate svg file
"D:/Common/Ploticus240win32/bin/pl.exe"  -svg -o "D:\tmp\EasyTimelinePlugin8016\EasyTimelinePlugin8016.svg" "D:\tmp\EasyTimelinePlugin8016\EasyTimeline.txt.7808" -tightcrop
Running Ploticus to generate bitmap
"D:/Common/Ploticus240win32/bin/pl.exe"  -gif -o "D:\tmp\EasyTimelinePlugin8016\EasyTimelinePlugin8016.gif" "D:\tmp\EasyTimelinePlugin8016\EasyTimeline.txt.7808" -tightcrop
Running nconvert to convert gif image to png format

---------------------------------------------------------------------------
nconvert.exe -out png "D:\tmp\EasyTimelinePlugin8016\EasyTimelinePlugin8016.gif"
256
---------------------------------------------------------------------------
PNG file not created (is nconvert.exe missing?)

Environment

TWiki version: TWiki 4.2.3
TWiki plugins: EasyTimelinePlugin version: 22 Apr 2006 (v2.1)
Ploticus 2.40 (win32)
Server OS: MS Windows Server 2003 SP2, and Windows XP
Web server: Apache 2.2.4
Perl version: ActivePerl 5.8.8 build 820
Client OS: Windows XP
Web Browser: Internet Explorer 6 and 7
Categories:  

-- SeanCMorgan - 03 Nov 2008

Answer

ALERT! 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.

Got it: I had to edit /TWiki/tools/EasyTimeline.pl to have the full path for nconvert:
$cmd = "C:/TWiki/Ploticus240win32/bin/nconvert.exe -out png " . EscapeShellArg($file_bitmap) ;

-- SeanCMorgan - 03 Nov 2008

Change status to:
Topic revision: r1 - 2008-11-03 - SeanCMorgan
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.