You are here: Foswiki>Tasks Web>Item13843 (02 Mar 2016, MichaelDaum)Edit Attach

Item13843: Include a section containnig a digraph doesn't work

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: GraphvizPlugin
Branches: master
Reported By: MichelMallejac
Waiting For:
Last Change By: MichaelDaum
Since 2.0.2, viewing a topic containing a %INCLUDE{"TopicWithDigraph" section="aSection" }% throws the following :

Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.

unknown parameter name FORMAT

And error.log contains the following warning : unknown parameter name FORMAT at /home/data/www/doc.4next.ch/lib/Foswiki/Sandbox.pm line 374.

Viewing the included topic itself works just fine.

-- MichelMallejac - 10 Nov 2015

Hot fix:

diff --git a/lib/Foswiki/Plugins/GraphvizPlugin/Config.spec b/lib/Foswiki/Plugins/GraphvizPlugin/Config.spec
index aaf11df..5e0a416 100644
--- a/lib/Foswiki/Plugins/GraphvizPlugin/Config.spec
+++ b/lib/Foswiki/Plugins/GraphvizPlugin/Config.spec
@@ -3,7 +3,7 @@
 # This is the configuration used by the <b>GraphvizPlugin</b>.
 
 # **STRING**
-$Foswiki::cfg{GraphvizPlugin}{DotCmd} = '/usr/bin/dot -K%RENDERER|S% -T%FORMAT|S% -o%OUTFILE|F% %INFILE|F%';
+$Foswiki::cfg{GraphvizPlugin}{DotCmd} = '/usr/bin/dot -K%RENDERER|S% -T%TYPE|S% -o%OUTFILE|F% %INFILE|F%';

You will have to fix this setting in your LocalSite.cfg as well (change FORMAT to TYPE)

-- MichaelDaum - 10 Nov 2015

Many thanks ! works fine now smile

-- MichelMallejac - 11 Nov 2015
 
Topic revision: r4 - 02 Mar 2016, MichaelDaum
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