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

Uncaught Error: window.remark_config is undefined #1278

Closed
gianmarcogg03 opened this issue Feb 18, 2022 · 5 comments
Closed

Uncaught Error: window.remark_config is undefined #1278

gianmarcogg03 opened this issue Feb 18, 2022 · 5 comments
Labels
Milestone

Comments

@gianmarcogg03
Copy link

I'm running Remark42 on my Apache webserver with the following config:

<script>
  const remark_config = {
    host: 'http://comments.gianmarco.ga',
    site_id: 'comments.gianmarco.ga',
  }
</script>

The server seems to work alright:
image
image
I've put on the webpage the widget but it won't render and in the console I get this error:
image

@paskal
Copy link
Collaborator

paskal commented Feb 22, 2022

Here @jarod5001 mentioned that only that but not that code worked, can you please try both and let us know the results?

@gianmarcogg03
Copy link
Author

The one that was reported to be working actually works, thank you.

@paskal
Copy link
Collaborator

paskal commented Feb 22, 2022

@gianmarcogg03 can you please specify, how to change the documentation to fix that issue? Or send a fix yourself, here is the edit page for the Installation documentation: https://github.com/umputun/remark42/edit/master/site/src/docs/getting-started/installation/index.md

@paskal
Copy link
Collaborator

paskal commented Feb 22, 2022

As far as I can tell, the difference in config definition is var in working documentation vs const in non-working one, is it the difference that fixed the situation for you?

@paskal
Copy link
Collaborator

paskal commented Feb 22, 2022

That seems to be the case, I'll fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants