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
--
SeanCMorgan - 03 Nov 2008
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.
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