Priority: Low
Current State: Closed
Released In:
Target Release: n/a
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