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.
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.
My solution is this:
'http://www.w3.org/1999/xhtml'
to $validNamespaces
in ./includes/upload/UploadBase.php
'svg'
to $wgFileExtensions
in LocalSettings.php
{{#drawio:figureName|type=svg}}
Edit
Fatal exception of type "Error"
$wgShowExceptionDetails = true;
to LocalSettings.phpError: Call to undefined function MediaWiki\Extension\DrawioEditor\MXDocumentExtractor\gzinflate()
zlib
to the php-profile of my web-service.Web Station
interface --> Script Language Settings
--> Extensions
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 ?
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.
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.
I have my prod version under Mediawiki 1.35.13.
and https://github.com/wikimedia/mediawiki-extensions-DrawioEditor/tree/4.1.1
I can edit and save a diagram.
Bur re-open it causes :
Invalid mime type when loading image from wiki:
Actual: image/png / Expected: image/svg+xml
I found the same issue in https://github.com/mgeb/mediawiki-drawio-editor/issues/6
Can somebody help ?
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.....
Same issue, same solution on mediawiki 1.41.
Downloaded the 2.01 and no issues any more...
Thanks for the tip!
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
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
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
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
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.
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?
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
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.
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.