I set up an xwiki instance on my internal dev server to build a new documentation site for our company. Everything went great and after everything was signed off on, we moved the site to a LiquidWeb server instance.
I set up a new xwiki server and imported the content from the dev server.
Now, every time I create a new page, or edit and existing page, I get this at the bottom, and it never goes away, unless I click on it.
Yes, looks like there’s a ton of http to https errors:
[Error] Cannot load http://help.checkinpos.com/wiki/internaldocs/jsx/CKEditor/EditSheet?sourceMap=true&minify=false&v=17.1.0&xwiki-version=17.1.0&fast-diff-version=&bs3typeahead-version=4.0.2 due to access control checks.
[Warning] [blocked] The page at https://help.checkinpos.com/wiki/internaldocs/view/Online%20info%20for%20Checkin/ requested insecure content from http://help.checkinpos.com/wiki/internaldocs/jsx/CKEditor/Translations?sourceMap=true&minify=false&language=en. This content was blocked and must be served over HTTPS.
I’ve been searching for ways to fix the errors, but none of the remedies, such as:
I can’t find the xwiki config file, and the Tomcat config file doesn’t have the section shown in this topic.
This is shown by the realtime editing feature when trying to connect to the WebSocket end-point used to perform the synchronization. Since you mentioned you have a proxy in front of XWiki, you need to make sure WebSocket requests (/xwiki/websocket/*) are properly forwarded by the proxy to XWiki. I have no experience with NPM proxy, so I can’t help you with that, but I expect you should be able to find some answers by looking for “how to properly forward WebSocket requests in NPM proxy“ (which is not specific to XWiki).
@mflorea Could we have a doc page that is easily found and document all the setups we can find (we could ask the user for the config) and provide as much info as possible on xwiki.org. Then 1) we can answer these questions on the forum with a link and 2) users may be able to find them by searching on google and co. It seems it’s a common question these days. Thx!
That page is https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/#HHTTPProxy . We currently provide sample configuration only for Apache HTTPD and NginX, but both are not up-to-date in terms of WebSocket request forwarding. Any XWiki extension that uses WebSockets needs the proxy to be properly configured. This is not limited / specific to realtime editing. Unfortunately I don’t have enough experience with Apache HTTPD and NginX to suggest the proper configuration, so I welcome users that have made it work to update the documentation.
This notification is not displayed anymore since we introduced the new realtime editing toolbar. With the latest XWiki version you actually get Loading... . But in any case, I’m not convinced that a few seconds to connect is a good indicator that there’s a problem with the HTTP proxy configuration.
What might help is when the websocket times out maybe throw up a message that says, “Realtime editing connection could not connect, make sure your web server and / or proxy is configured to allow WebSockets.”
That would have allowed me to track down the issue in 5 minutes.