Extension talk:DrawioEditor/Flow

About this board

Aloist (talkcontribs)

Can someone please explain step by step how I can generate svg drawing and include them in the wiki pages? I always get .png images.


I also wonder where the drawing data are actually stored by this extension.

I use MW 1.39.5 on Linux (RHEL 9) Aloist (talk)

HoltzeDK (talkcontribs)

My solution is this:

  • I am using MediaWiki 1.39.2 with DrawioEditor 2.0.1
  • Also install NativeSvgHandler
  • Add 'http://www.w3.org/1999/xhtml' to $validNamespaces in ./includes/upload/UploadBase.php
  • Add 'svg' to $wgFileExtensions in LocalSettings.php
  • In the location where you want the svg insert: {{#drawio:figureName|type=svg}}
  • Click Edit
  • Create and save figure
  • Exit drawIO interface
  • You might get Fatal exception of type "Error"
  • Try adding $wgShowExceptionDetails = true; to LocalSettings.php
  • In my case the error then expands to Error: Call to undefined function MediaWiki\Extension\DrawioEditor\MXDocumentExtractor\gzinflate()
  • The fix for me is to add zlib to the php-profile of my web-service.
  • I am using a Synology Nas, so this is done in the Web Station interface --> Script Language Settings --> Extensions
Reply to "svg drawings"

Edit button does not work

7
Fledorze (talkcontribs)

I have 1.39.1 mediawiki version (backport on Debian bulleyes) and last Github version of DrawioEditor.

Wen I click on edit button, nothing happens. No trafic is generated to embed.diagrams.net.

What should I do ?

Dylan Banta (talkcontribs)

Same issue.

1.39.3

This build: Special:ExtensionDistributor?extdistname=DrawioEditor&extdistversion=REL1_39

I'm experiencing this with both the default $wgDrawioEditorBackendUrl and a self hosted one in Docker that works when I navigate to it.

Not sure how to fix it.

157.99.170.7 (talkcontribs)

The only working version is with mediawiki 1.35, tried 1.39, 1.40 nothing works.

Seems that there is a Content Type mismatch error while load.php only=scripts is loading.

Fledorze (talkcontribs)
82.64.11.200 (talkcontribs)

found that drawioeditor tag 2.01 (can be found on the github repo) works with 1.39....

It's not perfect but at least I can be in 1.39.....

EU0873 (talkcontribs)

Same issue, same solution on mediawiki 1.41.

Downloaded the 2.01 and no issues any more...

Thanks for the tip!

91.14.219.6 (talkcontribs)

Same issue, and 2.01 also works. Thanks very much!

Reply to "Edit button does not work"

Call to undefined method Parser::getUser()

2
91.21.63.238 (talkcontribs)

Good Morning. I just installed a fresh MediaWiki (1.38.1) and the extension DrawioEditor. Put my first diagram on a page, started the DrawioEditor, put some boxes there and saved to SVG. When opening that page again, I get an internal exception:

fe04eee533bd8cf6147fd7f7] /wiki/index.php/Equipment Error: Call to undefined method Parser::getUser()

Backtrace:

from /var/www/wiki/extensions/DrawioEditor/src/DrawioEditor.php(142)

#0 /var/www/extensions/DrawioEditor/src/DrawioEditor.php(69): MediaWiki\Extension\DrawioEditor\DrawioEditor->parse()

#1 /var/www/includes/parser/Parser.php(3413): MediaWiki\Extension\DrawioEditor\DrawioEditor->parseLegacyParserFunc()

#2 /var/www/wiki/includes/parser/Parser.php(3096): Parser->callParserFunction()

#3 /var/www/wiki/includes/parser/PPFrame_Hash.php(276): Parser->braceSubstitution()

#4 /var/www/wiki/includes/parser/Parser.php(2932): PPFrame_Hash->expand()

#5 /var/www/wiki/includes/parser/Parser.php(1579): Parser->replaceVariables()

#6 /var/www/wiki/includes/parser/Parser.php(697): Parser->internalParse()

I am logged in, MW is configured to allow write access only to registered users. Additionally, the whole web directory is protected by .htaccess, with a static password.

Any ideas? Kind regards, Michael

77.182.114.153 (talkcontribs)

Same error with MW 1.39, tried several versions of DrawioEditor

Reply to "Call to undefined method Parser::getUser()"

Fresh install, got javascript error at load

1
Menardorama (talkcontribs)

I tried on different version of mediawiki 1.35, 1.39 and 1.40 wiith Drawioeditor extension and get

The resource from “wiki.example.com/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).

This break all javascript on mediawiki (VisualEditor is not working, user pref tabs are not working either)....


I have imported confluence export using hallowelt/migrate-confluence git project which contains drawio chart that are correctly rendered.

Of course as I got javadcript error, I can't modify the chart.


Even tried to add some .htaccess but things are getting worse.


Is anybody got a solution ? Tried Bluespice and it's working OTB, even tried to copy the extension bundled still bugging.


Thanks

Reply to "Fresh install, got javascript error at load"

MW 1.40 Edit button doesn't work

1
4.8.13.234 (talkcontribs)

Hello, I am on MW 1.40 and the edit butt gives this error in the chrome developer tools Console:


Uncaught ReferenceError: editDrawio is not defined

    at <anonymous>:1:1

Reply to "MW 1.40 Edit button doesn't work"
Attila.horvath (talkcontribs)

Hi!

I have version, 2.0.0-alpha (0cd546a)07:11, 2023 May 16, and even though I can click the save button, that gives no error message, the diagrams never show up again after closing the embedded editor.

This is my setup:

Product Version
MediaWiki 1.39.3
PHP 7.4.33 (fpm-fcgi)
MariaDB 10.5.16-MariaDB
ICU 72.1

Can someone help me?

Thanks in advance,

Attila

Reply to "Can't save"

Some used drawio.svg are in the "Special:Unused files"

1
Bedtry (talkcontribs)

I tried deleting the cache, they are still in there. Even if I click on the file on the page that it is using, it still shows me "There are no pages that use this file.".

I dont have access to shell.

Reply to "Some used drawio.svg are in the "Special:Unused files""

Hyperlink from shapes and text

3
Richardstrongarm (talkcontribs)

This extension would be really powerful if one could create links from the shapes or text to other pages. For example using Mediawiki with this extension as a QMS with process flows on a page and allowing a flow to be able to be interactive as it were to other pages. Is there a way to allow this to happen on an internal Mediawiki instance?


If it isn't possible, could it be possible to create an imagemap Extension:ImageMap overlaid over the top of the draw.io image to create a linkable shape with the code directly coming from the draw.io application?

2003:D0:170D:86AC:FD37:E3C5:5BC5:62EF (talkcontribs)

have you found a solution? Im with you on that

KangarooRambo (talkcontribs)

I'd like this feature too.

Reply to "Hyperlink from shapes and text"

Any way to backup and restore the content of the extensions?

1
Attila.horvath (talkcontribs)

Hi!


Is there a way to move the content inside the extension over to another installation of mediawiki? We just relocated our wiki, backed up and restored the database, and the images folder, but the drawio diagrams do not show up in the new wiki. Can it somehow be done?

Thanks in advance,


Attila

Reply to "Any way to backup and restore the content of the extensions?"

SVG file contains illegal namespace

2
208.90.148.16 (talkcontribs)

Hey all - I'm receiving an error with the extension whenever I try to save an image that has text attached to it. The file will save with blank images, but continues to give the error when trying to save anything else. Below is the error, any suggestions?


Error: This SVG file contains an illegal namespace

Check javascript console for details.

P-try (talkcontribs)

I have the same problem on MediaWiki 1.35. Current workaround is adding "|type=png". Any fix for this? I would like to use SVG.

Reply to "SVG file contains illegal namespace"
Return to "DrawioEditor/Flow" page.