Projekt

Obecné

Profil

Podání #26510

uzavřený

Web Prahy 13 (praha13.pirati.cz) nelze lokálně spustit (Liquid Exception: no implicit conversion of nil into String in /_layouts/default.html)

Přidáno uživatelem Jan Loužek před téměř 5 roky(ů). Aktualizováno před více než 4 roky(ů).

Stav:
Dokončen
Priorita:
Normální
Přiřazeno:
Kategorie:
-
Začátek:
24.01.2020
Uzavřít do:
% Hotovo:

100%

Odhadovaná doba:

Popis

Ahoj,

už delší dobu si na městské části Praha 13 stěžují s tím, že nejsou schopni přidat na svůj web kontaktní údaje na jednotlivé lidi. Zobrazuje se to špatně. Ve výsledku je chyba v boxu s metadaty na úvodu stránky (ve složce _people) což opravit jde:

Při pokusu o lokální spuštění dostávám chybu:

Liquid Exception: no implicit conversion of nil into String in /_layouts/default.html

Výstup z lokálního spuštění webu je následující:

aktron@aktron-lp:~/web/praha13.pirati.cz$ bundle exec jekyll build --verbose --trace
Logging at level: debug
Configuration file: /home/aktron/web/praha13.pirati.cz/_config.yml
Requiring: jekyll-feed
Requiring: jekyll-paginate
Requiring: jekyll-sitemap
Requiring: jekyll-environment-variables
Source: /home/aktron/web/praha13.pirati.cz
Destination: /home/aktron/web/praha13.pirati.cz/_site
Incremental build: disabled. Enable with --incremental
Generating...
EntryFilter: excluded /Gemfile.lock
EntryFilter: excluded /Gemfile
Reading: _posts/2018-09-11-pirati-upozornuji-na-nespravedlive-predani-reklamnich-ploch.md
Reading: _posts/2018-09-07-priprava-netradicniho-rozlouceni-od-piratu.md
Reading: _posts/2018-09-05-galerie-na-letne-je-pomnik-krnacove.md
Reading: _posts/2018-09-12-praha-1-prodala-byty-za-mene-nez-mela.md
Reading: _posts/2018-09-18-na-praze-22-proveruji-zakazky.md
Reading: _posts/2018-09-13-pirati-predstavili-svoji-povolebni-strategii.md
Reading: _posts/2018-09-18-pirati-vydali-mykopoliticky-atlas.md
Reading: _posts/2018-09-07-pirati-podali-zalobu-na-prazskou-plynarenskou.md
Reading: _people/michaela-berankova.md
Reading: _people/jiri-koudelka.md
Reading: _people/filip-ryant.md
Reading: _people/adam-kopetzky.md
Reading: _people/tomas-murnak.md
Reading: _people/vaclav-hrdlicka.md
Reading: _people/zuzana-drhova.md
Reading: _program/praha2018/prevence-neumerneho-zahustovani-zastavby.md
Reading: _program/praha2018/kvalitni-verejny-prostor-a-komuntni-zivot.md
Reading: _program/praha2018/transparentni-a-otevrena-radnice.md
Reading: _candidatelists/praha13.md
Theme: Ignoring /assets/css/main.scss in theme due to existing file with that path in site.
Assets: messaging hooks on before_merge through config
Assets: messaging hooks on before_init through env
Assets: messaging hooks on after_init through env
Generating: Jekyll::EnvironmentVariables finished in 8.2562e-05 seconds.
Jekyll Feed: Generating feed for posts
Generating: JekyllFeed::Generator finished in 0.00086906 seconds.
Generating: Jekyll::Paginate::Pagination finished in 0.001684095 seconds.
Generating: Jekyll::JekyllSitemap finished in 0.000758674 seconds.
Rendering: _posts/2018-09-05-galerie-na-letne-je-pomnik-krnacove.md
Pre-Render Hooks: _posts/2018-09-05-galerie-na-letne-je-pomnik-krnacove.md
Rendering Liquid: _posts/2018-09-05-galerie-na-letne-je-pomnik-krnacove.md
Rendering Markup: _posts/2018-09-05-galerie-na-letne-je-pomnik-krnacove.md
Rendering Layout: _posts/2018-09-05-galerie-na-letne-je-pomnik-krnacove.md
Assets: Sprockets Cache miss "file_digest:assets/img/posts/krnacova-metronom.jpg:1547646609" (0ms)
Assets: Searched for, and rendered posts/krnacova-metronom.jpg in 0.045675051s
Assets: Sprockets Cache miss "36f4ec" (118ms)
Assets: Sprockets Cache miss "file_digest:.jekyll-cache/assets/proxied/36f4ec.jpg:1579863147" (0ms)
Assets: Searched for, and rendered .jekyll-cache/assets/proxied/36f4ec.jpg in 0.002031746s
Assets: {:argv1=>"posts/krnacova-metronom.jpg", :magick=>{:resize=>"751x422", :gravity=>"center", :crop=>"751x422+0+0"}, :path=>true, :src=>"/assets/36f4ec-e4131ca1899411fc4d50f80a35033e908d6e426871e2790ddc841526ef23a4e5.jpg"}
Rendering: _posts/2018-09-05-galerie-na-letne-je-pomnik-krnacove.md
Pre-Render Hooks: _posts/2018-09-05-galerie-na-letne-je-pomnik-krnacove.md
Rendering Liquid: _posts/2018-09-05-galerie-na-letne-je-pomnik-krnacove.md
Rendering Markup: _posts/2018-09-05-galerie-na-letne-je-pomnik-krnacove.md
Assets: Searched for, and rendered posts/krnacova-metronom.jpg in 0.001129642s
Assets: {:argv1=>"posts/krnacova-metronom.jpg", :path=>true, :src=>"/assets/posts/krnacova-metronom-313f2ab1ca65741c769b18102b48bb185d5c4b6101d610045fb7d9cce597482c.jpg"}
Assets: Sprockets Cache miss "file_digest:assets/css/main.scss:1547646609" (0ms)
Assets: messaging hooks on before_read through asset
Assets: messaging hooks on after_read through asset
Liquid Exception: no implicit conversion of nil into String in /_layouts/default.html
Traceback (most recent call last):
96: from /usr/local/bin/jekyll:23:in <main>'
95: from /usr/local/bin/jekyll:23:in
load'
94: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/exe/jekyll:15:in <top (required)>'
93: from /usr/lib/ruby/vendor_ruby/mercenary.rb:19:in
program'
92: from /usr/lib/ruby/vendor_ruby/mercenary/program.rb:42:in go'
91: from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in
execute'
90: from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in each'
89: from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in
block in execute'
88: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/commands/build.rb:18:in block (2 levels) in init_with_program'
87: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/commands/build.rb:36:in
process'
86: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/commands/build.rb:65:in build'
85: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/command.rb:28:in
process_site'
84: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/site.rb:73:in process'
83: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/site.rb:190:in
render'
82: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/site.rb:459:in render_docs'
81: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/site.rb:459:in
each_value'
80: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/site.rb:460:in block in render_docs'
79: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/site.rb:460:in
each'
78: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/site.rb:462:in block (2 levels) in render_docs'
77: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/renderer.rb:62:in
run'
76: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/renderer.rb:85:in render_document'
75: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/renderer.rb:155:in
place_in_layouts'
74: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/renderer.rb:188:in render_layout'
73: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/renderer.rb:123:in
render_liquid'
72: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/liquid_renderer/file.rb:28:in render!'
71: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/liquid_renderer/file.rb:49:in
measure_time'
70: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/liquid_renderer/file.rb:29:in block in render!'
69: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/liquid_renderer/file.rb:42:in
measure_bytes'
68: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/liquid_renderer/file.rb:30:in block (2 levels) in render!'
67: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/template.rb:220:in
render!'
66: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/template.rb:207:in render'
65: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/template.rb:242:in
with_profiling'
64: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/template.rb:208:in block in render'
63: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/block_body.rb:91:in
render'
62: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/block_body.rb:102:in render_node_to_output'
61: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/tags/include.rb:134:in
render'
60: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/context.rb:123:in stack'
59: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/tags/include.rb:137:in
block in render'
58: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/liquid_renderer/file.rb:28:in render!'
57: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/liquid_renderer/file.rb:49:in
measure_time'
56: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/liquid_renderer/file.rb:29:in block in render!'
55: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/liquid_renderer/file.rb:42:in
measure_bytes'
54: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/liquid_renderer/file.rb:30:in block (2 levels) in render!'
53: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/template.rb:220:in
render!'
52: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/template.rb:207:in render'
51: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/template.rb:242:in
with_profiling'
50: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/template.rb:208:in block in render'
49: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/block_body.rb:82:in
render'
48: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/block_body.rb:102:in render_node_to_output'
47: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/tags/if.rb:41:in
render'
46: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/context.rb:123:in stack'
45: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/tags/if.rb:42:in
block in render'
44: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/tags/if.rb:42:in each'
43: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/tags/if.rb:44:in
block (2 levels) in render'
42: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/block_body.rb:91:in render'
41: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/block_body.rb:102:in
render_node_to_output'
40: from /var/lib/gems/2.5.0/gems/jekyll-assets-3.0.11/lib/jekyll/assets/tag.rb:70:in render'
39: from /var/lib/gems/2.5.0/gems/jekyll-assets-3.0.11/lib/jekyll/assets/tag.rb:58:in
render_raw'
38: from /var/lib/gems/2.5.0/gems/jekyll-assets-3.0.11/lib/jekyll/assets/tag.rb:164:in internal'
37: from /var/lib/gems/2.5.0/gems/jekyll-assets-3.0.11/lib/jekyll/assets/env.rb:86:in
find_asset!'
36: from /var/lib/gems/2.5.0/gems/jekyll-assets-3.0.11/lib/jekyll/assets/logger.rb:24:in with_timed_logging'
35: from /var/lib/gems/2.5.0/gems/jekyll-assets-3.0.11/lib/jekyll/assets/env.rb:87:in
block in find_asset!'
34: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/environment.rb:35:in find_asset!'
33: from /var/lib/gems/2.5.0/gems/jekyll-assets-3.0.11/lib/jekyll/assets/patches/cached.rb:47:in
find_asset!'
32: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/cached_environment.rb:44:in load'
31: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/loader.rb:43:in
load'
30: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/loader.rb:329:in fetch_asset_from_dependency_cache'
29: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/loader.rb:59:in
block in load'
28: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/loader.rb:145:in load_from_unloaded'
27: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:65:in
call_processors'
26: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:65:in reverse_each'
25: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:66:in
block in call_processors'
24: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:84:in call_processor'
23: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/bundle.rb:27:in
call'
22: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/cached_environment.rb:44:in load'
21: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/loader.rb:43:in
load'
20: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/loader.rb:329:in fetch_asset_from_dependency_cache'
19: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/loader.rb:59:in
block in load'
18: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/loader.rb:145:in load_from_unloaded'
17: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:65:in
call_processors'
16: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:65:in reverse_each'
15: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:66:in
block in call_processors'
14: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:84:in call_processor'
13: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:33:in
call'
12: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:22:in block in <class:CompositeProcessor>'
11: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:65:in
call_processors'
10: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:65:in reverse_each'
9: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:66:in
block in call_processors'
8: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:84:in call_processor'
7: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/sass_processor.rb:32:in
call'
6: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/sass_processor.rb:83:in call'
5: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/source_map_utils.rb:48:in
format_source_map'
4: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/source_map_utils.rb:48:in map'
3: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/source_map_utils.rb:52:in
block in format_source_map'
2: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/path_utils.rb:111:in relative_path_from'
1: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/path_utils.rb:111:in
new'
/var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/path_utils.rb:111:in `initialize': no implicit conversion of nil into String (TypeError)
aktron@aktron-lp:~/web/praha13.pirati.cz$

Pokud takový kód pošlu na jejich server, tak se nový web s tímto chybným kódem nesestaví. Hledal jsem řešení, našel jsem toto:

https://github.com/jekyll/jekyll/issues/7328

Bylo by možné jim (pro Prahu 13):

  • 1) aktualizovat jekyll a builder na serveru
  • 2) zrestartovat server?

Díky moc!

Honza

608 213 119


Soubory

Také k dispozici: Atom PDF