Uncaught SyntaxError: Unexpected string
See original GitHub issueIssue Summary
After a clean install of Ghost, I am unable to access /ghost
to setup a user account for my blog. I get a continuous loading spinner, nothing else happens. Upon inspection of console I can see two errors:
Uncaught SyntaxError: Unexpected string
in vendor.min-md5
and ghost.min-md5
Some users are complaining about this in Slack chat, and it’s also similar to issue #8782
Steps to Reproduce
- Install ghost
- Navigate to /ghost
Technical details:
- Server: Ubuntu
- Ghost Version: 1.3.0 (cli 1.0.3)
- Node Version: 6.11.2
- Browser/OS: macOS Sierra, Chrome and Safari
- Database: MySQL
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Uncaught SyntaxError: Unexpected string in my JavaScript
I'm getting the Uncaught SyntaxError: Unexpected string error in my JavaScript and I honestly can't figure out what's wrong with the code.
Read more >SyntaxError: Unexpected String - Codecademy
This fails the test (You did not call the greeting function. Pass it a name!) but runs the actual greeting. The first one...
Read more >JS Console Error: "Uncaught SyntaxError: Unexpected string"
It runs fine locally, but when synced the Javascript Console throws a “Uncaught SyntaxError: Unexpected string” for Line 528, which is this in...
Read more >Uncaught SyntaxError: Unexpected string - JavaScript
So you're trying to set column to a multi-line value, which you can do, but you need to do so differently. Wrap the...
Read more >syntaxerror: unexpected string in json at position - You.com
There are two common causes for this. The first is that you may be referencing a non-existent property (or even a non-existent variable...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Cool, so I’ve also updated the documentation to reflect this, and as its such a common problem added callouts to both the upgrade and install guide. Hopefully this will help!
@ErisDS The blog is under CloudFlare, I disabled the cache by enabling development mode and it started working again. A quick Google took me to this page: https://docs.ghost.org/v1.0.0/docs/troubleshooting - which suggests adding a page rule to disable caching of admin assets (slightly different issue, but makes sense!).
I’ve added a rule
/ghost*
to bypass the cache.Everything seemed to work from here on out… Assuming this wasn’t an issue with Ghost I decided to close the issue. However, I just tried to access it again and it I got the same issue with the page rule in place.
I tested again by enabling development mode in CF, again, this fixed the issue.
I’m back to square one so I’ll reopen this.