Topic on Project:Support desk

MediaWiki GraphViz Extension not rendering images

4
87.139.209.139 (talkcontribs)

Hello!

I'm trying to set up a XAMPP Server PHP v5.6 which is supposed to run MediaWiki v.1.28.2 and GraphViz v.2.38.

I installled the GraphViz and ImageMap extension and set $wgGraphVizSettings (execPath) to the bin.exe. If I edit an article, the added GraphViz Code won't render the image. It throws an empty <p class="error"></p> tag. I'm having trouble figuring out where exactly the problem is and where I'm missing something. There is no error code, no message, just an empty blank box. Rendering externally and uploading via edit works though.

I spent some time researching but it's hard to find answers to this specific problem.

So any idea how to resolve this problem will be much appreciated.

If you need any more information feel free to ask.

Link to my Dropbox with three log screenshots

Greetings

Ciencia Al Poder (talkcontribs)

Do you have a GraphViz on your main page? because otherwise the screenshots are of no use.

The extension provides several logs that should appear in the debug log if the extension is actually doing anything on the page being rendered. To be sure it doesn't get cached, try to preview a page that contains a GraphViz and see what the logs say.

Since logs are plain text, you can share them by pasting it in http://dpaste.de/ or pastebin, and providing the link here.

87.139.209.139 (talkcontribs)

Thanks for being so patient with me. So I edited the Main Page and added a GraphViz Code.

Here's the log: https://dpaste.de/R8S5

Ciencia Al Poder (talkcontribs)

From the logs I see MediaWiki is trying to execute this command:

"C:/Users/Lucas/Documents/release/bin/dot.exe" -T "gif" -o "C:\XAMPP\apps\mediawiki\htdocs\images\graphviz\images\File_graph_GraphVizExtensionDummy_dot.gif" "C:\XAMPP\apps\mediawiki\htdocs\images\graphviz\File_graph_GraphVizExtensionDummy.src"

(and other variants, with jpg, jpeg and png extensions).

It first creates the file C:\XAMPP\apps\mediawiki\htdocs\images\graphviz\File_graph_GraphVizExtensionDummy.src, I guess that's a plain text file with the contents of the GraphViz tags. Try to create it yourself, open a command line and issue the command, to see if it errors out or something. The log says it returns an exit code of 1.