question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught SyntaxError: Unexpected string

See original GitHub issue

Issue 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

screen shot 2017-08-01 at 23 29 19

Some users are complaining about this in Slack chat, and it’s also similar to issue #8782

Steps to Reproduce

  1. Install ghost
  2. 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:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ErisDScommented, Aug 3, 2017

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!

1reaction
mforcercommented, Aug 2, 2017

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found