Item13843: Include a section containnig a digraph doesn't work
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
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
--
MichelMallejac - 11 Nov 2015