There was an error. Your site may not work properly. Caused by plugin 'discourse-whos-online'

AI-generated summary

The discussion revolves around an error message caused by the ‘discourse-whos-online’ plugin, visible only to site administrators. Geoffrey_Challen initially reported the issue, and Arkshine suggested checking if the plugin is up to date. After confirming the plugin is updated, Arkshine asked Geoffrey_Challen to check the browser’s console for errors. Arkshine was unable to reproduce the issue on a clean production instance but found an error on a dev instance, which seemed to be related to the direct use of ‘et’ on a pre-defined object. The issue appears to be addressed by a pull request, as mentioned by saquetim.

Just started seeing this recently. On 3.4.0.beta4-dev, and have been updating dilligently. Any idea where I should look for trouble?

2 Likes

Hey Geoffrey,

Is the plugin up to date?

The latest version is:
image

3 Likes

Yup! Looks like it:

Do you see any error in the browser’s console?

I can’t reproduce it on a local dev and production instance. :thinking:

2 Likes

Good idea! I’ll take a look next time I see it. It seems to happen sporadically. I looked at the backend logs and nothing jumped out at me


As a suggestion, given that this message is only shown to administrators, it might be helpful if it provided more details about the problem, assuming that whatever is generating it in fact has more details. It’s already taking up a fair bit of screen real estate for a “something’s wrong” message.

I can’t reproduce on a clean production instance, but I do see an error on a dev instance:

https://github.com/discourse/discourse-whos-online/blob/main/assets/javascripts/discourse/api-initializers/intitialize-whos-online-indicators.js#L76

Retrieving the service outside the transformer seems to fix the issue.

Related to DEV: Upgrade to the Glimmer topic list by megothss · Pull Request #117 · discourse/discourse-whos-online · GitHub.

2 Likes

This issue should be addressed by:

https://github.com/discourse/discourse-whos-online/pull/118

7 Likes

This topic was automatically closed after 2 days. New replies are no longer allowed.