The issue: Liquid Exception: Failed to get header

If you are here, you are probably getting the following error running “jekyll serve”: Liquid Exception: Failed to get header. jekyll 2.4.0 | Error: Failed to get header

Why this error: Liquid Exception: Failed to get header

Python is used by a component of Jekyll (instead of Ruby). This only works with Python 2.7 and your version installed version is probably 3+. So the obvious solution would be to downgrade your Python to 2.7 version (not so elegant, you probably do not want to) or to follow the recommended & verified solution below:

Solution (fix) for error: Liquid Exception: Failed to get header

STEP 1 - In your terminal: gem install rouge

STEP 2 - In your _config.yml file, right under “Build settings”, add: highlighter: rogue

STEP 3- jekyll serve again, this time it will work:

That's it! We hope you found this tutorial helpful. Please, let others know in comments if it worked for you and don't forget to subscribe to our newsletter!

jekyll Tips & Tricks Tutorials

Our stories delivered in your Inbox

Join our newsletter and get more articles like this in your inbox.
We never spam and you can unsubscribe at any time!

Hey! Since you're here, we'd like to show you something. We've just released a new free Bootstrap template, are you interested?

Yes, show me!

You may also like:

We create themes & templates
Take a look at our
newest themes

WordPress 4.8 Compatible Themes

Wow Bootstrap Starter Kit - Free Bootstrap Kit

  Keep an eye on what we're doing  
 
    Find us:      

Keep an eye on what we're doing