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)
100%
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>'
load'
95: from /usr/local/bin/jekyll:23:in
94: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/exe/jekyll:15:in <top (required)>'
program'
93: from /usr/lib/ruby/vendor_ruby/mercenary.rb:19:in
92: from /usr/lib/ruby/vendor_ruby/mercenary/program.rb:42:in go'
execute'
91: from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in
90: from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in each'
block in execute'
89: from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in
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'
process'
87: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/commands/build.rb:36:in
86: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/commands/build.rb:65:in build'
process_site'
85: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/command.rb:28:in
84: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/site.rb:73:in process'
render'
83: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/site.rb:190:in
82: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/site.rb:459:in render_docs'
each_value'
81: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/site.rb:459:in
80: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/site.rb:460:in block in render_docs'
each'
79: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/site.rb:460:in
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'
run'
77: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/renderer.rb:62:in
76: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/renderer.rb:85:in render_document'
place_in_layouts'
75: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/renderer.rb:155:in
74: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/renderer.rb:188:in render_layout'
render_liquid'
73: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/renderer.rb:123:in
72: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/liquid_renderer/file.rb:28:in render!'
measure_time'
71: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/liquid_renderer/file.rb:49:in
70: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/liquid_renderer/file.rb:29:in block in render!'
measure_bytes'
69: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/liquid_renderer/file.rb:42:in
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!'
render!'
67: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/template.rb:220:in
66: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/template.rb:207:in render'
with_profiling'
65: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/template.rb:242:in
64: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/template.rb:208:in block in render'
render'
63: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/block_body.rb:91:in
62: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/block_body.rb:102:in render_node_to_output'
render'
61: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/tags/include.rb:134:in
60: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/context.rb:123:in stack'
block in render'
59: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/tags/include.rb:137:in
58: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/liquid_renderer/file.rb:28:in render!'
measure_time'
57: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/liquid_renderer/file.rb:49:in
56: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/liquid_renderer/file.rb:29:in block in render!'
measure_bytes'
55: from /var/lib/gems/2.5.0/gems/jekyll-3.7.4/lib/jekyll/liquid_renderer/file.rb:42:in
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!'
render!'
53: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/template.rb:220:in
52: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/template.rb:207:in render'
with_profiling'
51: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/template.rb:242:in
50: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/template.rb:208:in block in render'
render'
49: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/block_body.rb:82:in
48: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/block_body.rb:102:in render_node_to_output'
render'
47: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/tags/if.rb:41:in
46: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/context.rb:123:in stack'
block in render'
45: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/tags/if.rb:42:in
44: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/tags/if.rb:42:in each'
block (2 levels) in render'
43: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/tags/if.rb:44:in
42: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/block_body.rb:91:in render'
render_node_to_output'
41: from /var/lib/gems/2.5.0/gems/liquid-4.0.1/lib/liquid/block_body.rb:102:in
40: from /var/lib/gems/2.5.0/gems/jekyll-assets-3.0.11/lib/jekyll/assets/tag.rb:70:in render'
render_raw'
39: from /var/lib/gems/2.5.0/gems/jekyll-assets-3.0.11/lib/jekyll/assets/tag.rb:58:in
38: from /var/lib/gems/2.5.0/gems/jekyll-assets-3.0.11/lib/jekyll/assets/tag.rb:164:in internal'
find_asset!'
37: from /var/lib/gems/2.5.0/gems/jekyll-assets-3.0.11/lib/jekyll/assets/env.rb:86:in
36: from /var/lib/gems/2.5.0/gems/jekyll-assets-3.0.11/lib/jekyll/assets/logger.rb:24:in with_timed_logging'
block in find_asset!'
35: from /var/lib/gems/2.5.0/gems/jekyll-assets-3.0.11/lib/jekyll/assets/env.rb:87:in
34: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/environment.rb:35:in find_asset!'
find_asset!'
33: from /var/lib/gems/2.5.0/gems/jekyll-assets-3.0.11/lib/jekyll/assets/patches/cached.rb:47:in
32: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/cached_environment.rb:44:in load'
load'
31: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/loader.rb:43:in
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'
block in load'
29: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/loader.rb:59:in
28: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/loader.rb:145:in load_from_unloaded'
call_processors'
27: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:65:in
26: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:65:in reverse_each'
block in call_processors'
25: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:66:in
24: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:84:in call_processor'
call'
23: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/bundle.rb:27:in
22: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/cached_environment.rb:44:in load'
load'
21: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/loader.rb:43:in
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'
block in load'
19: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/loader.rb:59:in
18: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/loader.rb:145:in load_from_unloaded'
call_processors'
17: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:65:in
16: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:65:in reverse_each'
block in call_processors'
15: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:66:in
14: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:84:in call_processor'
call'
13: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:33:in
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>'
call_processors'
11: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:65:in
10: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:65:in reverse_each'
block in call_processors'
9: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:66:in
8: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/processor_utils.rb:84:in call_processor'
call'
7: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/sass_processor.rb:32:in
6: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/sass_processor.rb:83:in call'
format_source_map'
5: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/source_map_utils.rb:48:in
4: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/source_map_utils.rb:48:in map'
block in format_source_map'
3: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/source_map_utils.rb:52:in
2: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/path_utils.rb:111:in relative_path_from'
new'
1: from /var/lib/gems/2.5.0/gems/sprockets-4.0.0.beta8/lib/sprockets/path_utils.rb:111:in
/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
Aktualizováno uživatelem Andrej Ramašeuski před téměř 5 roky(ů)
- Stav změněn z Nový na Dokončen
- Přiřazeno změněn z Jan Hamal Dvořák na Andrej Ramašeuski
- % Hotovo změněn z 0 na 100
jednalo se o znamy problem s verzi sprockets. opravene. mj, proc jsou aktuality nekde u zelenych?
Aktualizováno uživatelem Andrej Ramašeuski před téměř 5 roky(ů)
jo, samozrejme, udelejte git pull
z repozitare
Aktualizováno uživatelem Petr Kolář před téměř 5 roky(ů)
Andrej Ramašeuski napsal:
jednalo se o znamy problem s verzi sprockets. opravene. mj, proc jsou aktuality nekde u zelenych?
Aktuality vedou na nas koalicni zelenopiratsky web, na ktery prispivame spolecne. Jinak z uvodni stranky toho P13 webu uplne zmizel veskery obsah a zustal jen uvodni obrazek.
Aktualizováno uživatelem Jan Loužek před téměř 5 roky(ů)
Ahoj, sděluju že se mi pořád děje stejná věc :-( při pokusu o zasílání zpráv na server dostávám opět stejnou hlášku.
Aktualizováno uživatelem Jitka Novotná před téměř 5 roky(ů)
Ahoj,
downgradovala jsem verzi thema dokud nebude vydaný fix (Andreji bude to fungova? U mě lokálně jsem ke zprovoznění ještě podřeobvala smazat vendor) a ještě k funkčnosti chybí fotka u poslední tiskovy.