For about two months, I have been missing the admin sidebar on the left (see screenshot). I cannot find any option to “enable” it, either in the settings or anywhere else. Even when using an incognito browser window, the same issue occurs.
Does anyone have an idea what might be causing this?
Have you tried safe mode? This could rule out the possibility that the issue is caused by a plugin or a component.
You could also check if there are any error messages in the browser console.
I actually just tried this out, and coincidentally, the admin sidebar is available via “safe mode”.
Can you tell me which plugin or component might be causing this issue?
To narrow it down, you can first disable only plugins in safe mode, and then only themes. This will at least tell you where to look.
Generally, you’ll find both in the admin sidebar — now that you can see it again. Plugins have their own section. You can also append /admin/plugins to your forum’s URL. You’ll find themes in the Appearance section or under /admin/config/customize/themes.
It’s likely a customization specific to your forum, as I haven’t read about any other forum having this issue so far. Without knowing which non-Discourse-team plugins you’re using, which theme components, and what customizations you have, it’ll be hard to guess.
That doesn’t surprise me, since neither plugins nor themes are disabled. However, this doesn’t answer whether the issue stems from a theme or a plugin.
Does the sidebar work when you disable only the themes?
That’s exactly what I meant by my previous statements.
In other words, on the one hand, I had gradually disabled all plugins (which didn’t change the error behavior), and on the other hand, no matter which of the three top options I disabled, the admin sidebar on the left was still displayed in “safe mode”.
If I enable the option “Cause outdated JavaScript functions to trigger an error”, the admin sidebar on the left is no longer displayed in “safe mode”.
Hmm. That’s unusual. I would have expected an either/or situation. So, it must either be an issue with the interaction between a plugin and the theme, or neither is the cause.
I think the browser console could really help now.
The error listed there doesn’t actually reflect the issue I’m experiencing.
Furthermore, the post doesn’t make it clear to me what exactly I need to change to get it working again .
I suspect your issue stems from the changes made to fix the linked problem. I’m not sure if there’s anything you can change here. Hopefully, someone with more insight into the code will have time to look into it soon.
Hi @Mr.Xurrent I have been trying to reproduce locally and haven’t been able to regardless of how my plugins are set up. You said only plugins by the team were enabled but do you have any other plugins installed that are disabled?
Can you also try running this in the console when you are seeing the error and pasting the result here:
At this point I am really unsure how you could be getting a value for admin_config_login_routes that doesn’t allow map. When I disable all plugins from the server with LOAD_PLUGINS=0, I get an empty array. At all other points, I have an array of values. Both work with map but something like {} or "oauth2" outside of an array would trigger the error.
Yes, exactly, only plugins published by Discourse itself were active – no other plugins are installed.
I entered the text block you mentioned in the browser console, but nothing changed, and there was no feedback from the browser console afterwards either.
Just for clarity, I wasn’t expecting anything to change with that code block — but I was expecting some sort of output, even if the values were null or undefined.
And a bit more, this being enabled/disabled shouldn’t affect it being included in admin_config_login_routes unless the app explicitly unloads all plugins by starting the server with LOAD_PLUGINS=0.
With the console block I asked you to run, I was hoping to be able to see the value (or missing value) on admin_config_login_routes. It shouldn’t be possible for that to be empty, and even an empty array should work for the map function.
These are mostly thoughts and I’ll ponder some more on ways we can figure this out. It would be nice to be able to see more of your setup, even though you said you only have official Discourse plugins.
I guess a good question is were the plugins you have installed all of the default ones that are bundled with core Discourse, or do you have some additional plugins from Discourse installed as well?