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


#1

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:


#2

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

bundle exec jekyll build --trace

#3

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.


#4

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


#5

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.


#6

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:inexec’
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:innew’
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:incompile’
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:intransform’
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:inblock 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:incall’
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:incall_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:inreverse_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:incall_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:inreverse_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:inload_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:infetch_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:inblock 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:inblock 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:incall’
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:inblock 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:incall_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:inblock 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:inload’
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:inload’
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:infind_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:ineach’
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:ineach’
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:inrender’
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:inblock 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:inrender’
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:inwith_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:inrender!’
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:inmeasure_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:inmeasure_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:inblock 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:inrender’
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:inblock 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:inrender’
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:inwith_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:inrender!’
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:inmeasure_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:inmeasure_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:inrender_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:inplace_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:inrun’
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:ineach’
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:ineach_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:inrender’
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:inprocess_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:inprocess’
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:inblock 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:inexecute’
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:inprogram’
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:inload’
from C:/Ruby25-x64/bin/jekyll:23:in `’


#7

@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…?


#8

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.