Topic on Extension talk:Diagrams

Clickable URLs on Graphviz images stop working after a while

4
Omerzu (talkcontribs)

I am using this extension to create graphviz diagrams with clickable URLs.

After creation of the image, everything works fine. But after returing to the page on the next day, the automatically created imagemap has vanished from the page and the image is not clickable any more. It can be restored by doing some major edits to the page, though the same issue will occur again later on.

When renaming the wiki page, the URLs in the graphic stop working immediately.

What is going on here and how do I avoid this?

This is Mediawiki 1.39.3, Diagrams 0.9.4, graphviz 2.43.0.

Sample code:

<graphviz caption="Supportprozess" format="svg">
digraph procsupp {
node [shape=box,style=filled,fillcolor=cornflowerblue];
 
Entwicklungsprozess [URL="[[I2023/Entwicklungsprozess]]",fillcolor=yellow];
xx [URL="[[xx]]"];  

Entwicklungsprozess -> xx
} 
</graphviz>
Update

To me it looks like that the imagemap is not recreated correctly after the page has been deleted from the Parser Cache:

If I increase $wgParserCacheExpireTime, the previously observed problem on the next day vanishes.

With the standard $wgParserCacheType, the imagemap vanishes on a restart of the wiki server. By making the Parser Cache persistant by setting $wgParserCacheType = CACHE_DB, the imagemaps will survive a server restart.

I also noticed that image maps will not be available when the page content is included using a {{:xxxx}} construct. I assume this is due to the same problem of Diagrams not parsed correctly when done in the background instead of after an active edit of the page.

Samwilson (talkcontribs)
Omerzu (talkcontribs)

Yes, indeed, it is. Thanks for solving it!

Role-end (talkcontribs)

Hi

I have a similar issue. If I make a graphviz diagram with links the svg and the cmapx file are created in /images/diagrams. but if I use <uml> the cmapx file is not created.

Are Links in <uml> diagrams suported or is this still an open topic? If so I would have to rewrite all uml diagrams with links to graphviz.


MW Version 1.41

Reply to "Clickable URLs on Graphviz images stop working after a while"