You are here: Foswiki>Tasks Web>Item2189 (17 Nov 2009, MichaelDaum)Edit Attach

Item2189: GenPDFWebkitPlugin references $Foswiki::cfg{ToolsDir} which is still 'waiting for release'

Priority: Low
Current State: Closed
Released In:
Target Release: n/a
Applies To: Extension
Component: GenPDFWebkitPlugin
Reported By: MarkusUeberall
Waiting For: Main.MichaelDaum
Last Change By: MichaelDaum
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/ 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

ItemTemplate edit

Summary GenPDFWebkitPlugin references $Foswiki::cfg{ToolsDir} which is still 'waiting for release'
ReportedBy MarkusUeberall
Codebase 1.0.7
SVN Range Foswiki-1.0.7, Sun, 20 Sep 2009, build 5061
AppliesTo Extension
Component GenPDFWebkitPlugin
Priority Low
CurrentState Closed
WaitingFor MichaelDaum
Checkins GenPDFWebkitPlugin:19ad39e14bdf
TargetRelease n/a
Topic revision: r3 - 17 Nov 2009, MichaelDaum - This page was cached on 13 Aug 2019 - 22:43.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy