New categories: buggy for anonymous visitors [fixed itself after 20 minutes]

AI-generated summary

User dillchuk reported a bug in Discourse v1.5.0.beta12 where newly created categories (e.g., “Calendar Formats”) caused errors for anonymous visitors, displaying “Something went wrong” despite having correct security settings. Interestingly, these categories did not appear in the main dropdown menu, only in the right-side “Categories” link, and the issue resolved itself after approximately 20 minutes, suggesting a caching problem dillchuk. After confirming the issue could be reproduced, techAPJ investigated and fixed the bug via a specific commit techAPJ.

v1.5.0.beta12 +74 hosted on Ubuntu droplet.

See the “Calendar Formats” & “Brand New Default” category listed on my site, but clicking it yields an error: “Error while trying to load Something went wrong.”

If you log in, then it shows fine. Any idea? Security setting is “everyone can… Create / Reply / See”.

Also, these two categories don’t show up in the dropdown. So, they’re different somehow…

2 Mi Piace

Hi dillchuk welcome to the forum

Did you edit the “about this” posts for those topics?

And now it’s working :blush:. Some caching at play perhaps?

When I create a new category, I get this issue again: new category shows (only) in right-side Categories link (to the right of Latest, Top).

Clicking ‘Brand New Again’ yields:

Same error even if using a different browser & session. This new category is not shown in the drop-down:

…then shows up about 20 minutes later.

Can you repro this @techapj?

1 Mi Piace

Yes, I can repro this issue on try. Looking into it now.

2 Mi Piace

Fixed via:

https://github.com/discourse/discourse/commit/ff12b5bf57fef4b0283cc43d5c07540ba3e25e8b

2 Mi Piace