SVG creation does not work, Instiki 0.30.2(MML+), Heroku,
Ljon4ik4 opened this issue · 6 comments
Hello, I recently created a private wiki on my Heroku account and can't get the SVG creation to work:
When I click on "Create SVG graphic" a new window opens, first it is white and then grey and then nothing happens.
If I try to edit an existing SVG, the same phenomenon occurs.
I am using Instiki 0.30.2(MML+) on a (free) Heroku account. It is set to private. I tried in Firefox and chromium on my Ubuntu 20.04 machine and Firefox on android. It seems to be a problem with the installation, as I can edit svgs in other wikis without any problem.
In heroku logs I have found the following lines that might be relevant(I have XXXX-ed identifiable data ):
app[web.1]: Processing WikiController#editor (for XXXXXXXXX at XXXXXXXXXXX) [GET]
app[web.1]: Parameters: {"web"=>"svg-edit", "id"=>"jgraduate/css/jGraduate.css"}
app[web.1]: Rendering template within layouts/error
app[web.1]: Filter chain halted as [:connect_to_model] rendered_or_redirected.
app[web.1]: Completed in 4ms (View: 1, DB: 2) | 404 Not Found [https://XXXXXXXXX.herokuapp.com/svg-edit/editor/jgraduate/css/jGraduate.css]
PS: Thank's a lot, it is a super-nice wiki software!
That's strange. There's really no public/svg-edit/editor/jgraduate/css/jGraduate.css
file in your installation? What is there in your public
directory?
% ls public
404.html MathJax/ dispatch.fcgi* favicon.ico images/ robots.txt stylesheets/
500.html dispatch.cgi* dispatch.rb* fonts/ javascripts/ s5/ svg-edit/
I have
404.html dispatch.fcgi fonts MathJax stylesheets 500.html dispatch.rb images robots.txt svg-edit dispatch.cgi favicon.ico javascripts s5
I then typed ls public/svg-edit/editor/jgraduate/css and got:
jgraduate.css jPicker.css
So at least the capitalisation is different, but the file seems to exist.
Capitalization matters.
I renamed jgraduate.css to jGraduate.css in the public/svg-edit/editor/jgraduate/css/ via bash. However the problem persists:
heroku[router]: at=info method=GET path="/svg-edit/editor/jgraduate/css/jGraduate.css" host=XXXXXXXX.herokuapp.com request_id=58931b9c-d407-4181-8f3d-95f4ab3bd293 fwd="XXXXXXXX" dyno=web.1 connect=0ms service=8ms status=404 bytes=882 protocol=https
Hmmm. OK, I can confirm the problem on Heroku.
I renamed it using Git:
git mv public/svg-edit/editor/jgraduate/css/jgraduate.css public/svg-edit/editor/jgraduate/css/jGraduate.css
git commit -a -m "move jgraduate.css"
git push heroku master
After that, it worked just fine.
I will add this to the installation instructions.