TECHNICAL DETAILS
Environment info:
- Ghost Version - 5.47.0
- Environment Type: Production
- Database: mysql8
- Theme: Solo
Installation info:
History of installation and configuration:
The Ghost CMS was installed by following the official documentation guide for Ubuntu in Production Environment via the CLI interface, configured with Nginx (v1.18.0).
The configuration file matches exactly the site URL.
Hosted over a Virtual Machine instance at Google Cloud Platform.
Technical dependencies:
Host OS: Ubuntu 22.04.2 LTS
Node version: 18.16.0
Database: MySQL v8.0.33 (x86-64)
Client-side Testing Environment:
OS: Windows, Android, iOS
Browser: Google Chrome, Mozilla Firefox
Website Status: LIVE (on HTTPS)
đź”´ UNSOLVED ISSUE
The Ghost CMS had been set up and customized for almost a month.
After working with many settings and options, the native comments option was supposedly turned on at the Ghost admin settings [ghost/#/settings/members] for all logged-in members as part of the website development.
Henceforth, the console started logging errors at two different variations only at webpages that included comments section, in this case, posts.
🔺 Summary 🔻
Problem: Errors at console
Cause: Turning on native comments.
Location: Pages that include comments, mostly the posts.
Source: admin-auth.min.js and App.js
Errors and their variations:
1. User as - guest (logged out), logged in, and/or on reload:
Errors for admin-auth.min.js and App.js are logged at the console a couple of times.
2. User and Admin logged in at same session or browser instance:
On loading of the page, within a few seconds, multiple errors were logged especially on the load of the comments section.
Steps to Reproduce:
-
Turn on native comments at the Ghost CMS at domain[.]com/ghost/#/settings/members
[Ghost Admin → Settings → Membership →
→ Commenting → Enable (with logged-in or subscription)] -
Make sure that your site has {{comments}} in which ever page(s) or post(s) required.
-
Look out for the errors mentioned above with the respective scenarios.
- YES, there are errors in reproducing the issue.
- NO, errors not found on reproducing the issue.
0 voters
Related topics discussed in the past:
Ghost, Digital Ocean, Cloudflare, 403 on ghost/api/admin/users/me/?include=roles
-
Takeaways: With the realization that some of the errors logged are expected like the error 403, but still it in your next commit, it would be an urge to remove these console.log() or replace them to function in such a way that these errors are reported directly to system logs. Possible solutions are accepted too.
Though the second error instance can be avoided, for the first instance (when a user is logged out), do consider providing a solution or file this as a bug or a feature request.
NOTE:
The site URL concerned in this case cannot be disclosed due to miscellaneous reasons.
So only, in-depth details of this case have been mentioned, and provided with another reference site: https://omnipada.com/my-experience/