The issue of missing tag counts on the /tags page has been reported by salbertelli. After some investigation, JammyDodger suggested checking the include secure categories in tag counts admin setting, but salbertelli found that enabling this setting did not resolve the issue.
Akshine then debugged the issue and discovered that the problem is likely due to the pmCount being undefined, causing the totalCount to have a NaN value. This issue was fixed in a PR that landed in Discourse version 3.1.0. Since the site is currently running on version 3.0.6, Arkshine recommends updating to the latest stable version, at least 3.1.0, to resolve the issue. salbertelli has thanked Arkshine for their debugging skills and will follow up with their server admin to schedule the upgrade.
I’ve recently observed that the tag counts (e.g., “Java X 10”) are no longer visible on our /tags page. Instead, we only see a list of tags without their respective counts.
Any insights on what might be causing this sudden disappearance of counts would be greatly appreciated. Thank you!
I tried to debug to see, and the count is well passed. It is; no problem here.
However, we can see the pmCount is undefined. This is likely the issue because the totalCount has a NaN (Not A Number) value now, which is why the condition in the template is ignoring it.
This fix is available since 3.1.0.
Searching your Discourse version gives me you’re using an old stable version 3.0.6
Short version:
You’re using Discourse 3.0.6, and a fix landed in 3.1.0, which fixed indirectly this issue.
You can probably fix your issue by updating to the latest stable version, which is 3.2.0 or, at the very least, 3.1.0.