NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item11383 for general documentation changes for release 1.1.5. Use
Item9693 for docu changes for release 2.0.
Item2189: GenPDFWebkitPlugin references $Foswiki::cfg{ToolsDir} which is still 'waiting for release'
Unless a user explicitly sets
$Foswiki::cfg{GenPDFWebkitPlugin}{WebkitCmd},
$Foswiki::cfg{ToolsDir} (currently
'waiting for release' according to
Item1789) is used to locate the
wkhtmltopdf binary, which currently is unlikely to be defined.
Users trying to access a dynamically generated PDF are presented with an empty page, while the apache log will show the following error:
Use of uninitialized value in concatenation (.) or string at /opt/www/hosts/blog/lib/Foswiki/Plugins/GenPDFWebkitPlugin.pm line 70
Suggested workaround: Add a short note to the plugin topic reminding the user to check the definition of either variable.
--
MarkusUeberall - 30 Sep 2009
Addendum: For dumber users like me, it should be made clear that
WebkitCmd is actually supposed to be a
template containing the arguments "
%INFILE|F%" and "
%OUTFILE|F%". If you only provide the path of the binary, bad things happen (i.e., the '
template' argument in
Sandbox::sysCommand() holds a 'raw' version of the html file generated from the topic in question) which most likely leads to the following error:
Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.
unknown parameter name MAKETEXT{"View"}
--
MarkusUeberall - 01 Oct 2009