-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't save my diagrams #1
Comments
I have the same problem. I also intially had trouble accessing pre-made diagrams but it ended up working by uploading a file name like the following: Drawio_[Filename].xml By the way thanks for the extension, I've been thinking/wanting of doing something similar for months! |
I also have this problem, @yohtm, could I ask you what do you mean of "uploading a file name like the following: Drawio_[Filename].xml" |
@crest55, basically I created a diagram on DrawIO, downloaded it, gave the name "Drawio_Test.xml" to my file and then uploaded it to my Wiki. Then, in the page editor, I used "{{#drawio:Test}}". That allowed me to have my pre-existing diagram accessible on the wiki. I still can't see the preview or save it though. |
Thank you @yohtm, I understand now. |
In current version tmp dir is defined like: $tmp_name = $_SERVER["DOCUMENT_ROOT"] . "/tmp/tmp_".rand(0,1000).rand(0,1000).".".$ext; If this path is not available and not writable for wiki engine, we have an error with uploading data to wiki. $wgTmpDirectory = "$IP/images/tmp/"; Another problem (for notes or doc..)For correct generation of drawio images in PDF with mwlib library, the easy way is creation of template like DrawIO
Then we can use:
|
Thank you, tosher. I commited some modificstions from your pull request accourding tmp dir. If you still have errors, you can see and modify function |
Thanks for the updates guys. I still have a problem saving (and therefore displaying) the diagrams. I get 400 bad request reply (see below). Not sure if it's related to the cross-domain iframe, to the ues of https or something else (the editor does appear and I am able to change my diagram). Any ideas? |
Because of we have two versions now.. I have a question :) |
Oh I didn't read it right I thought the branch was merged. It actually works on your branch. Thanks! |
Hi guys! First of all many kudos for launching this extension! Draw.io is fantastic and semi-integrating it into MW is of course a bliss. I am eager to help to make this extension stable and robust. That said, here are some observations. I am investigating, but thought it would be helpful to let you know up front:
What do you think? How should we proceed? |
Hello. If not - just wait. We need some days to reproduce this case and (I hope) fix it. |
Hi Ok. Great! I'll dedicate today's afternoon to this. Please note that running an MW in site root is not recommended. (https://www.mediawiki.org/wiki/Manual:Wiki_in_site_root_directory, you probably know this link already) Regards and many thanks for your quick answer! |
Hi Ok. Solved the issues. About clicking .pngs on wikis not installed in site root: Drawio.php's line 170 (as filed on Feb 17, 2016 1546 CET)
should be changed to
About my experienced save and reload problems I had Regards and let me know if I can contribute more. |
Thank you for quick fix! Description will be corrected about enablixg XML type |
Error when MediaWiki is located not in root folder of site fixed |
Hi,
I have a problem saving my graph. Draw.io say wait on "saving..." and does nothing.
Can you help me?
This extension is awesome! Thank you for your job.
The text was updated successfully, but these errors were encountered: