[solved] How to fix? Liquid Exception: in /_layouts/default.html jekyll 3.6.2 | Error:

Hi,
Happy Monday.
Would appreciate help with this. I get

Liquid Exception: in /_layouts/default.html jekyll 3.6.2 | Error:

when

$ bundle exec jekyll serve

Repo is:

Hi :wave:
Can you please post the entire output you get when you run…? :

bundle exec jekyll build --trace
1 Like

Looks like you’re using a 2 year old fork of my theme Minimal Mistakes.

You might have better luck using the theme gem or remote_theme options as they don’t have all the Sprockets and Jekyll Assets dependencies this fork does… which seems to be your issue.

1 Like

There’s also some bad Liquid in there that was fixed awhile back that is giving you errors.

Beautiful work!
Yes, looking into your work I can now definitely trace it back to you.
I better start from scratch from your repo. Thanks for writing.

Sure, here it comes:

$ bundle exec jekyll build --trace

C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/digest_util s.rb:47: warning: constant ::Fixnum is deprecated
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/digest_util s.rb:51: warning: constant ::Bignum is deprecated
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/processor_u tils.rb:110: warning: constant ::Fixnum is deprecated
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/processor_u tils.rb:111: warning: constant ::Bignum is deprecated
Configuration file: C:/Users/Patricia/documents/github/pateskinasy.github.io/_config.yml
Source: C:/Users/Patricia/documents/github/pateskinasy.github.io
Destination: C:/Users/Patricia/documents/github/pateskinasy.github.io/_site
Incremental build: disabled. Enable with --incremental
Generating…
Liquid Warning: Liquid syntax error (line 3): Expected dotdot but found id in “(page.header.overlay_color or page.header.overlay_image) or page.header.image” in /_layouts/single.html

Liquid Exception: in /_layouts/default.html
(execjs):1: ExecJS::RuntimeError
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/execjs-2.7.0/lib/execjs/external_runtime.rb:184:in exec_runtime' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/execjs-2.7.0/lib/execjs/external_runtime.rb:39:in exec’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/execjs-2.7.0/lib/execjs/external_runtime.rb:14:in initialize' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/execjs-2.7.0/lib/execjs/runtime.rb:57:in new’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/execjs-2.7.0/lib/execjs/runtime.rb:57:in compile' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/execjs-2.7.0/lib/execjs/module.rb:27:in compile’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/babel-transpiler-0.7.0/lib/babel/transpiler.rb:24:in context' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/babel-transpiler-0.7.0/lib/babel/transpiler.rb:28:in transform’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-es6-0.9.2/lib/sprockets/es6.rb:70:in transform' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-es6-0.9.2/lib/sprockets/es6.rb:64:in block in call’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/cache.rb:85:in fetch' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-es6-0.9.2/lib/sprockets/es6.rb:63:in call’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-es6-0.9.2/lib/sprockets/es6.rb:34:in call' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/processor_utils.rb:75:in call_processor’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/processor_utils.rb:57:in block in call_processors' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/processor_utils.rb:56:in reverse_each’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/processor_utils.rb:56:in call_processors' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/processor_utils.rb:75:in call_processor’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/processor_utils.rb:57:in block in call_processors' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/processor_utils.rb:56:in reverse_each’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/processor_utils.rb:56:in call_processors' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/loader.rb:134:in load_from_unloaded’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/loader.rb:60:in block in load' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/loader.rb:317:in fetch_asset_from_dependency_cache’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/loader.rb:44:in load' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/cached_environment.rb:20:in block in initialize’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/cached_environment.rb:47:in load' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/bundle.rb:23:in block in call’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/utils.rb:196:in dfs' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/bundle.rb:24:in call’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/processor_utils.rb:75:in call_processor' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/processor_utils.rb:57:in block in call_processors’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/processor_utils.rb:56:in reverse_each' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/processor_utils.rb:56:in call_processors’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/loader.rb:134:in load_from_unloaded' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/loader.rb:60:in block in load’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/loader.rb:317:in fetch_asset_from_dependency_cache' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/loader.rb:44:in load’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/cached_environment.rb:20:in block in initialize' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/cached_environment.rb:47:in load’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/base.rb:66:in find_asset' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/base.rb:73:in find_all_linked_assets’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/manifest.rb:134:in block in find' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/manifest.rb:133:in each’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/sprockets-3.6.3/lib/sprockets/manifest.rb:133:in find' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-assets-2.2.8/lib/jekyll/assets/liquid/tag.rb:188:in each’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-assets-2.2.8/lib/jekyll/assets/liquid/tag.rb:188:in find' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-assets-2.2.8/lib/jekyll/assets/liquid/tag.rb:188:in _find_asset’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-assets-2.2.8/lib/jekyll/assets/liquid/tag.rb:157:in find_asset' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-assets-2.2.8/lib/jekyll/assets/liquid/tag.rb:97:in render’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/liquid-4.0.0/lib/liquid/block_body.rb:109:in render_node' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/liquid-4.0.0/lib/liquid/block_body.rb:88:in block in render’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/liquid-4.0.0/lib/liquid/block_body.rb:75:in each' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/liquid-4.0.0/lib/liquid/block_body.rb:75:in render’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/liquid-4.0.0/lib/liquid/template.rb:208:in block in render' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/liquid-4.0.0/lib/liquid/template.rb:242:in with_profiling’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/liquid-4.0.0/lib/liquid/template.rb:207:in render' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/liquid-4.0.0/lib/liquid/template.rb:220:in render!’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/liquid_renderer/file.rb:30:in block (2 levels) in render!' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/liquid_renderer/file.rb:42:in measure_bytes’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/liquid_renderer/file.rb:29:in block in render!' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/liquid_renderer/file.rb:49:in measure_time’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/liquid_renderer/file.rb:28:in render!' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/tags/include.rb:139:in block in render’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/liquid-4.0.0/lib/liquid/context.rb:123:in stack' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/tags/include.rb:136:in render’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/liquid-4.0.0/lib/liquid/block_body.rb:109:in render_node' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/liquid-4.0.0/lib/liquid/block_body.rb:88:in block in render’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/liquid-4.0.0/lib/liquid/block_body.rb:75:in each' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/liquid-4.0.0/lib/liquid/block_body.rb:75:in render’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/liquid-4.0.0/lib/liquid/template.rb:208:in block in render' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/liquid-4.0.0/lib/liquid/template.rb:242:in with_profiling’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/liquid-4.0.0/lib/liquid/template.rb:207:in render' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/liquid-4.0.0/lib/liquid/template.rb:220:in render!’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/liquid_renderer/file.rb:30:in block (2 levels) in render!' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/liquid_renderer/file.rb:42:in measure_bytes’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/liquid_renderer/file.rb:29:in block in render!' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/liquid_renderer/file.rb:49:in measure_time’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/liquid_renderer/file.rb:28:in render!' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/renderer.rb:123:in render_liquid’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/renderer.rb:188:in render_layout' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/renderer.rb:155:in place_in_layouts’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/renderer.rb:85:in render_document' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/renderer.rb:62:in run’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/site.rb:455:in block (2 levels) in render_docs' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/site.rb:453:in each’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/site.rb:453:in block in render_docs' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/site.rb:452:in each_value’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/site.rb:452:in render_docs' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/site.rb:192:in render’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/site.rb:73:in process' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/command.rb:28:in process_site’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/commands/build.rb:65:in build' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/commands/build.rb:36:in process’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/lib/jekyll/commands/build.rb:18:in block (2 levels) in init_with_program' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in block in execute’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in each' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in execute’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in go' from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in program’
from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.6.2/exe/jekyll:15:in <top (required)>' from C:/Ruby25-x64/bin/jekyll:23:in load’
from C:/Ruby25-x64/bin/jekyll:23:in `’

@pateskinasy Thanks for posting the trace output, but isn’t it obselete now that you have started off a fresh fork of Minimal Mistakes theme repo…?

1 Like

Oops, I had posted this in response to you before deciding to start a new repo 14 days ago. For some strange reason Discourse only posted it today … 14 days later…(guess this was part of the approval of my account which is new).

So, yep, not relevant, but thanks anyways for reverting @ashmaroli, appreciated.

1 Like