Skip to content
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

SVG creation does not work, Instiki 0.30.2(MML+), Heroku, #76

Closed
Ljon4ik4 opened this issue Apr 27, 2021 · 6 comments
Closed

SVG creation does not work, Instiki 0.30.2(MML+), Heroku, #76

Ljon4ik4 opened this issue Apr 27, 2021 · 6 comments

Comments

@Ljon4ik4
Copy link

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!

@distler
Copy link
Collaborator

distler commented Apr 27, 2021

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/

@Ljon4ik4
Copy link
Author

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.

@distler
Copy link
Collaborator

distler commented Apr 27, 2021

Capitalization matters.

@Ljon4ik4
Copy link
Author

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

@distler
Copy link
Collaborator

distler commented Apr 28, 2021

Hmmm. OK, I can confirm the problem on Heroku.

@distler
Copy link
Collaborator

distler commented May 31, 2022

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.

@distler distler closed this as completed May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants