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

Let's stay in touch, please! We'll send you stories similar to "How to fix Liquid Exception: Failed to get header error on jekyll serve" if you join our newsletter. It's free and you can unsubscribe at anytime!

You may also like:


WowThemesNet membership

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

wow thems Join our free newsletter

Let's keep in touch! Get new themes, updates, discounts and important news for your website straight to your inbox. You can unsubscribe at anytime!

Yes, I'd like to hear about your products and news. Privacy Policy