Errors upon errors with embedding Discourse

javascript

(5minpause) #1

I embedded a Discourse Docker multisite installation with separate data and web containers.
After some rebuilds I am using version v1.3.0.beta11 +7 now.
Before I used version v1.3.0.beta7. I always received some javascript errors but it still worked. Right now the embedding doesn’t work as the JavaScript doesn’t load due to errors.
These are my error messages:

I am using a plugin to prevent cross-origin-request errors: GitHub - TheBunyip/discourse-allow-same-origin

These are my embed settings:

My logs show these errors:

Uncaught ReferenceError: iom is not defined
Url: http://forum.lauffeuer-lb.de/embed/comments?embed_url=http%3A%2F%2Fwww.lauffeuer-lb.de%2Fteams%2Flkz-team%2Fmartina-kutterer%2Fnoch-besser-als-eiscreme
Line: 64
Column: 1
Window Location: http://forum.lauffeuer-lb.de/embed/comments?embed_url=http%3A%2F%2Fwww.lauffeuer-lb.de%2Fteams%2Flkz-team%2Fmartina-kutterer%2Fnoch-besser-als-eiscreme

I am stuck. Does anyone have an idea what’s wrong here? It should just work but it’s really a drag to get this to work properly and reliably.

Thank you.


(Руслан Корнев) #2
https://meta.discourse.org/t/jquery-is-undefined-in-include-js-for-admins-when-embedding/26245?source_topic_id=29591

(5minpause) #3

Your comment hints that it might work for non-admins. I cannot confirm this. Logging out or trying different browsers doesn’t fix the problem for me. Although the errors seem to be different:

"Received message of type object from http://forum.lauffeuer-lb.de, expected a string"

(Руслан Корнев) #4

Sorry, i can’t remember how i fixed this error. But as i remember that all subsequent errors were only because of first error.

TypeError: Cannot read property 'hotkeys' ...

Try to view sourse of js files

ps. may be i’m wrong.