Also @Kevin
Just to list the exact specifications here:
Environment: Local installation
Ghost-CLI version: 1.22.0
Ghost version: 5.10.1 (at c:\Ghost)
Node.js version: 16.16.0
NPM version: 8.18.0
OS: Windows 10 Pro 21H2 (19044.1889)
Browser: Chrome 104.0.5112.102
I’m using the same email address for the owner account and the member account. I’ve also tried different email addresses but it didn’t make any difference.
I took a look in the console before and after performing the steps that @thimiraonline listed.
Before
When I logged in to the dashboard this was found in the console, but that error didn’t show up on the blog post with the comments.
:2368/ghost/api/admin/users/me/?include=roles:1 Failed to load resource: the server responded with a status of 403 (Forbidden)
Despite the error the dashboard worked just fine.
After
After performing the steps listed by @thimiraonline the error was gone when logging in to the dashboard, but the comment moderation issue still remains.
As you recommend Chrome for this I’ve performed the troubleshooting in that browser, but I’ve also tried it in Firefox as that is my main browser. Firefox is more verbose in the console output but :2368/ghost/api/admin/users/me/?include=roles:1
is nowhere to be found there. But both browser do log this error:
localhost/:146 GET http://localhost:2368/public/comment-counts.min.js?v=c66edb3d1c net::ERR_ABORTED 404 (Not Found)
I’m doing a search for that file in the entire Ghost folder but nothing’s shown up yet so just based on the name I’m guessing it’s a script for counting the amount of comments and it shouldn’t affect the moderation?
Should comment moderation work even in a local development installation, or might there be some issues with this feature in that environment? Everything else is working just fine, I can comment, reply, like, delete and report comments, it’s just the moderation that isn’t working.
Just to be sure that the issue isn’t in my local installation I made another local install in another folder and the issue is the same there, and comment-counts.min.js
is missing there as well.
EDIT: The admin cookie is present in both Chrome and Firefox.