TypeError: Cannot read properties of null (reading 'en')

AI-generated summary

The discussion revolves around a recurring TypeError: Cannot read properties of null (reading 'en') error affecting multiple theme components on a Discourse forum. Jagster reports that several components—including Dark-Light Toggle, User Menu Quick Logout, User Portfolio, Categories Navbar, Toggle Whisper, Topic List Previews, Sidebar Theme Toggle, Offline Indicator, Discourse Composer Footnote Button, DiscoTOC, discourse-search-banner, and Discourse Kanban—are throwing the same error. The issue appears to stem from a missing or null ‘en’ property, likely related to localization. Joshhabka references a related Meta Discourse thread (https://meta.discourse.org/t/discourse-stuck-on-loading-logs/361603) that may address the root cause. Sam confirms the linked issue was resolved and suggests closing this one, indicating the problem is likely fixed.

Several theme components are giving this to error log. Scary, caring or no bother?

Message

Dark-Light Toggle theme/component is throwing errors:
TypeError: Cannot read properties of null (reading 'en')

Backtrace

TypeError: Cannot read properties of null (reading 'en')
    at Object.initialize (https://foorumi.katiska.eu/theme-javascripts/92797a07aed2d6fbf5516744df323979636ce2b5.js?__ws=foorumi.katiska.eu:5:51)
    at n.initialize (https://cdnfoorumi.katiska.eu/assets/chunk.539f39cb06cf0acef810.br.js:2:333868)
    at https://cdnfoorumi.katiska.eu/assets/vendor.ebcffa63b65b920d5cfc189685c4d511-cd53f38a5ad23a4ddfa97ff23cda9bb0c96e8e22feff0d58d2409d2b3683e3b6.br.js:21:274204
    at e.each (https://cdnfoorumi.katiska.eu/assets/vendor.ebcffa63b65b920d5cfc189685c4d511-cd53f38a5ad23a4ddfa97ff23cda9bb0c96e8e22feff0d58d2409d2b3683e3b6.br.js:21:455828)
    at e.walk (https://cdnfoorumi.katiska.eu/assets/vendor.ebcffa63b65b920d5cfc189685c4d511-cd53f38a5ad23a4ddfa97ff23cda9bb0c96e8e22feff0d58d2409d2b3683e3b6.br.js:21:454844)
    at e.each (https://cdnfoorumi.katiska.eu/assets/vendor.ebcffa63b65b920d5cfc189685c4d511-cd53f38a5ad23a4ddfa97ff23cda9bb0c96e8e22feff0d58d2409d2b3683e3b6.br.js:21:454197)
    at e.topsort (https://cdnfoorumi.katiska.eu/assets/vendor.ebcffa63b65b920d5cfc189685c4d511-cd53f38a5ad23a4ddfa97ff23cda9bb0c96e8e22feff0d58d2409d2b3683e3b6.br.js:21:454243)
    at e._runInitializer (https://cdnfoorumi.katiska.eu/assets/vendor.ebcffa63b65b920d5cfc189685c4d511-cd53f38a5ad23a4ddfa97ff23cda9bb0c96e8e22feff0d58d2409d2b3683e3b6.br.js:21:274529)
    at e.runInitializers (https://cdnfoorumi.katiska.eu/assets/vendor.ebcffa63b65b920d5cfc189685c4d511-cd53f38a5ad23a4ddfa97ff23cda9bb0c96e8e22feff0d58d2409d2b3683e3b6.br.js:21:274162)

Env

HTTP HOSTS: foorumi.katiska.eu
1 Like

Tagging of this topic isn’t right, I would guess. As I said, there is several components giving that error. I just didn’t bother copypaste them all.

Dark-Light Toggle theme/component is throwing errors: TypeError: Cannot read properties of null (reading 'en')
1:26 pm

User menu quick logout theme/component is throwing errors: TypeError: Cannot read properties of null (reading 'en')
1:26 pm

User Portfolio theme/component is throwing errors: TypeError: Cannot read properties of null (reading 'en')
1:26 pm

Categories Navbar theme/component is throwing errors: TypeError: Cannot read properties of null (reading 'en')
1:26 pm
3

Toggle Whisper theme/component is throwing errors: TypeError: Cannot read properties of null (reading 'en')
1:27 pm
6

Topic List Previews theme/component is throwing errors: TypeError: Cannot read properties of null (reading 'en')
1:27 pm
5

Sidebar Theme Toggle theme/component is throwing errors: TypeError: Cannot read properties of null (reading 'en')
1:27 pm
4

Offline Indicator Theme Component theme/component is throwing errors: TypeError: Cannot read properties of null (reading 'en')
1:27 pm
3

Discourse Composer Footnote Button theme/component is throwing errors: TypeError: Cannot read properties of null (reading 'en')
1:27 pm
5

DiscoTOC theme/component is throwing errors: TypeError: Cannot read properties of null (reading 'en')
1:27 pm
6

discourse-search-banner theme/component is throwing errors: TypeError: Cannot read properties of null (reading 'en')
1:27 pm
4

Discourse Kanban theme/component is throwing errors: TypeError: Cannot read properties of null (reading 'en')
1 Like

Following

See: Discourse Stuck on Loading (Logs)

looks like the linked issue was resolve @Jagster closing this cause I am pretty sure the issue is resolved for you.

1 Like