Hello all,
I've had difficulty enabling EasyTimeline in MediaWiki.
It is on Windows Server 2003 with The Saint WAMP.
It appears to be activated, but I get the following error:
Timeline error: Executable not found. Command line was: "D:\Program
Files\TSW\Apache2\perl\bin\perl.exe" "D:\Program
Files\TSW\Apache2\htdocs\mediawiki\extensions\timeline\EasyTimeline.pl" -i
"D:\Program
Files\TSW\Apache2\htdocs\mediawiki\images\timeline\ |
d12a83ed39e720e3d4eb41241afdef3d"
-m -P "D:\Program Files\TSW\Apache2\bin\pl.exe" -T "D:\Program
Files\TSW\Apache2\htdocs\mediawiki\images\tmp" -A "/mediawiki/index.php/$1"
I'm a rank beginner with this stuff and I've found the whole forward slash
back slash thing difficult to navigate on the Windows system. I don't think
the scripts handle it seamlessly.
I've tweaked the scripts to try to get it to work, but I always get this
error - not surprising since it appears to be a catch all error message when
the command line returns "".
I eventually found the EasyTimeline.pl v1.12 and Timeline.php 1.7 in CVS.
Any hints on where I might have made a misstep would be greatly
appreciated...
For what it's worth, here's a snippet from the Timeline.php script as it
stands:
if ( ! ( file_exists( $fname.".png" ) || file_exists( $fname.".err" ) ) )
{
$handle = fopen($fname, "w");
fwrite($handle, $timelinesrc);
fclose($handle);
$cmdline = wfEscapeShellArg( $wgTimelineSettings->perlCommand,
"D:\\Program
Files\\TSW\\Apache2\\htdocs\\mediawiki\\extensions\\timeline\\EasyTimeline.pl")
.
" -i " . wfEscapeShellArg( $fname ) . " -m -P " . wfEscapeShellArg(
$wgTimelineSettings->ploticusCommand ) .
" -T " . wfEscapeShellArg( $wgTmpDirectory ) . " -A " .
wfEscapeShellArg( $wgArticlePath );
$ret = `{$cmdline}`;
unlink($fname);
if ( $ret == "" ) {
// Message not localized, only relevant during install
return "<div id=\"toc\"><tt>Timeline error: Executable not found. Command
line was: {$cmdline}</tt></div>";
}
Cheers,
Andrew