Setting map as the default tab for a category crashes the category

Environment

Discourse Version: v2026.2.0-latest +15

Plugin Commit: c1547ead

Steps to Reproduce

When using Locations plugin if I check Allow locations to be added to topics in this category and then try to set the map tab as the default view for the category I get an error upon navigating to that category’s page.

Example

I cannot show you a live example as I need the live page to work and not throw an error upon navigating to one of the categories. I could set it up to fail for a limited time if we coordinate so the broken site isn’t up for too long

Logs

:information_source: Discourse v2026.2.0-latest — Commits · discourse/discourse · GitHub — Ember v6.6.0 chunk.3d4e67abf0bb7d10e001.d41d8cd9.js:117:27354
[TorpedoRead] Script Injected. content-inject.js:1:9
[PLUGIN discourse-locations] TypeError: can’t access property “location_category_map_filter”, this.siteSettings is undefined
afterModel location-edits.js:229
Ember 9
chunk.3d4e67abf0bb7d10e001.d41d8cd9.js:124:47499
Error while processing route: discovery.category can’t access property “location_category_map_filter”, this.siteSettings is undefined afterModel@https://prahalidem.arnika.org/assets/plugins/discourse-locations-ab8a2d90.js:272:808
runAfterModelHook@https://prahalidem.arnika.org/assets/chunk.3d4e67abf0bb7d10e001.d41d8cd9.js:242:8007
70589/resolve/<@https://prahalidem.arnika.org/assets/chunk.3d4e67abf0bb7d10e001.d41d8cd9.js:242:6710
k@https://prahalidem.arnika.org/assets/chunk.3d4e67abf0bb7d10e001.d41d8cd9.js:56:8475
w@https://prahalidem.arnika.org/assets/chunk.3d4e67abf0bb7d10e001.d41d8cd9.js:56:8368
invoke@https://prahalidem.arnika.org/assets/chunk.3d4e67abf0bb7d10e001.d41d8cd9.js:124:140001
flush@https://prahalidem.arnika.org/assets/chunk.3d4e67abf0bb7d10e001.d41d8cd9.js:124:139081
flush@https://prahalidem.arnika.org/assets/chunk.3d4e67abf0bb7d10e001.d41d8cd9.js:124:140797
_end@https://prahalidem.arnika.org/assets/chunk.3d4e67abf0bb7d10e001.d41d8cd9.js:124:145555
41097/z/this._boundAutorunEnd@https://prahalidem.arnika.org/assets/chunk.3d4e67abf0bb7d10e001.d41d8cd9.js:124:142301
chunk.3d4e67abf0bb7d10e001.d41d8cd9.js:242:32940
Uncaught (in promise) TypeError: can’t access property “location_category_map_filter”, this.siteSettings is undefined
afterModel location-edits.js:229
Ember 9
discourse-locations-ab8a2d90.js:272:808

1 Like

thanks for the report - I can’t make any promises and support is now a paid commodity - you can reach out to me directly if a fix is urgent and we can discuss terms

How are you doing this?

In category settings I only see this:

And as you can see this is not an option.