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'

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Low Closed Extension GenPDFWebkitPlugin Main.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/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

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 Foswikirev:5547
TargetRelease n/a
ReleasedIn
Topic revision: r3 - 17 Nov 2009 - 14:32:04 - MichaelDaum
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads