Site compiled fine at v135.0 but fails on v136.3

After upgrading from Hugo v135.0 to v136.3, my site fails to render. Usually when this sort of thing happens I can work with the error messages but this time i am quite stumped.

Source code is at https://github.com/homerhanumat/tridentmoon.

MacOS 15.0.1.

hugo server and results:

``
% hugo server

Watching for changes in /Users/homer/git/tridentmoon/{archetypes,content,layouts,static,themes}
Watching for config changes in /Users/homer/git/tridentmoon/hugo.toml, /Users/homer/git/tridentmoon/themes/ananke/config.yaml
Start building sites …
hugo v0.136.3+extended darwin/arm64 BuildDate=2024-10-21T13:31:54Z VendorInfo=brew

ERROR render of “section” failed: “/Users/homer/git/tridentmoon/layouts/_default/baseof.html:29:7”: execute of template failed: template: _default/list.html:29:7: executing “_default/list.html” at <partial “site-style.html” .>: error calling partial: “/Users/homer/git/tridentmoon/themes/ananke/layouts/partials/site-style.html:1:8”: execute of template failed: template: partials/site-style.html:1:8: executing “partials/site-style.html” at <partialCached “func/style/GetMainCSS” “style/GetMainCSS”>: error calling partialCached: “/Users/homer/git/tridentmoon/themes/ananke/layouts/partials/func/style/GetMainCSS.html:25:8”: execute of template failed: template: partials/func/style/GetMainCSS.html:25:8: executing “partials/func/style/GetMainCSS.html” at <partialCached “func/socials/Get” “socials/Get”>: error calling partialCached: “/Users/homer/git/tridentmoon/themes/ananke/layouts/partials/func/socials/Get.html:30:12”: execute of template failed: template: partials/func/socials/Get.html:30:12: executing “partials/func/socials/Get.html” at <partialCached “func/socials/GetServiceData” .name .name>: error calling partialCached: “/Users/homer/git/tridentmoon/themes/ananke/layouts/partials/func/socials/GetServiceData.html:19:8”: execute of template failed: template: partials/func/socials/GetServiceData.html:19:8: executing “partials/func/socials/GetServiceData.html” at <partialCached “func/socials/GetBuiltInServicesDefaults” “socials/GetBuiltInServicesDefaults”>: error calling partialCached: “/Users/homer/git/tridentmoon/themes/ananke/layouts/partials/func/socials/GetBuiltInServicesDefaults.html:73:15”: execute of template failed: template: partials/func/socials/GetBuiltInServicesDefaults.html:73:15: executing “partials/func/socials/GetBuiltInServicesDefaults.html” at <transform.Unmarshal>: error calling Unmarshal: “_stream.yaml:4:1”: failed to unmarshal YAML: yaml: line 4: did not find expected key
ERROR render of “404” failed: “/Users/homer/git/tridentmoon/layouts/_default/baseof.html:29:7”: execute of template failed: template: 404.html:29:7: executing “404.html” at <partial “site-style.html” .>: error calling partial: “/Users/homer/git/tridentmoon/themes/ananke/layouts/partials/site-style.html:1:8”: execute of template failed: template: partials/site-style.html:1:8: executing “partials/site-style.html” at <partialCached “func/style/GetMainCSS” “style/GetMainCSS”>: error calling partialCached: “/Users/homer/git/tridentmoon/themes/ananke/layouts/partials/func/style/GetMainCSS.html:25:8”: execute of template failed: template: partials/func/style/GetMainCSS.html:25:8: executing “partials/func/style/GetMainCSS.html” at <partialCached “func/socials/Get” “socials/Get”>: error calling partialCached: “/Users/homer/git/tridentmoon/themes/ananke/layouts/partials/func/socials/Get.html:30:12”: execute of template failed: template: partials/func/socials/Get.html:30:12: executing “partials/func/socials/Get.html” at <partialCached “func/socials/GetServiceData” .name .name>: error calling partialCached: “/Users/homer/git/tridentmoon/themes/ananke/layouts/partials/func/socials/GetServiceData.html:19:8”: execute of template failed: template: partials/func/socials/GetServiceData.html:19:8: executing “partials/func/socials/GetServiceData.html” at <partialCached “func/socials/GetBuiltInServicesDefaults” “socials/GetBuiltInServicesDefaults”>: error calling partialCached: “/Users/homer/git/tridentmoon/themes/ananke/layouts/partials/func/socials/GetBuiltInServicesDefaults.html:73:15”: execute of template failed: template: partials/func/socials/GetBuiltInServicesDefaults.html:73:15: executing “partials/func/socials/GetBuiltInServicesDefaults.html” at <transform.Unmarshal>: error calling Unmarshal: “_stream.yaml:4:1”: failed to unmarshal YAML: yaml: line 4: did not find expected key
ERROR render of “page” failed: “/Users/homer/git/tridentmoon/layouts/_default/baseof.html:29:7”: execute of template failed: template: page/single.html:29:7: executing “page/single.html” at <partial “site-style.html” .>: error calling partial: “/Users/homer/git/tridentmoon/themes/ananke/layouts/partials/site-style.html:1:8”: execute of template failed: template: partials/site-style.html:1:8: executing “partials/site-style.html” at <partialCached “func/style/GetMainCSS” “style/GetMainCSS”>: error calling partialCached: “/Users/homer/git/tridentmoon/themes/ananke/layouts/partials/func/style/GetMainCSS.html:25:8”: execute of template failed: template: partials/func/style/GetMainCSS.html:25:8: executing “partials/func/style/GetMainCSS.html” at <partialCached “func/socials/Get” “socials/Get”>: error calling partialCached: “/Users/homer/git/tridentmoon/themes/ananke/layouts/partials/func/socials/Get.html:30:12”: execute of template failed: template: partials/func/socials/Get.html:30:12: executing “partials/func/socials/Get.html” at <partialCached “func/socials/GetServiceData” .name .name>: error calling partialCached: “/Users/homer/git/tridentmoon/themes/ananke/layouts/partials/func/socials/GetServiceData.html:19:8”: execute of template failed: template: partials/func/socials/GetServiceData.html:19:8: executing “partials/func/socials/GetServiceData.html” at <partialCached “func/socials/GetBuiltInServicesDefaults” “socials/GetBuiltInServicesDefaults”>: error calling partialCached: “/Users/homer/git/tridentmoon/themes/ananke/layouts/partials/func/socials/GetBuiltInServicesDefaults.html:73:15”: execute of template failed: template: partials/func/socials/GetBuiltInServicesDefaults.html:73:15: executing “partials/func/socials/GetBuiltInServicesDefaults.html” at <transform.Unmarshal>: error calling Unmarshal: “_stream.yaml:4:1”: failed to unmarshal YAML: yaml: line 4: did not find expected key
Built in 97 ms
Error: error building site: render: failed to render pages: render of “home” failed: “/Users/homer/git/tridentmoon/layouts/_default/baseof.html:29:7”: execute of template failed: template: index.html:29:7: executing “index.html” at <partial “site-style.html” .>: error calling partial: “/Users/homer/git/tridentmoon/themes/ananke/layouts/partials/site-style.html:1:8”: execute of template failed: template: partials/site-style.html:1:8: executing “partials/site-style.html” at <partialCached “func/style/GetMainCSS” “style/GetMainCSS”>: error calling partialCached: “/Users/homer/git/tridentmoon/themes/ananke/layouts/partials/func/style/GetMainCSS.html:25:8”: execute of template failed: template: partials/func/style/GetMainCSS.html:25:8: executing “partials/func/style/GetMainCSS.html” at <partialCached “func/socials/Get” “socials/Get”>: error calling partialCached: “/Users/homer/git/tridentmoon/themes/ananke/layouts/partials/func/socials/Get.html:30:12”: execute of template failed: template: partials/func/socials/Get.html:30:12: executing “partials/func/socials/Get.html” at <partialCached “func/socials/GetServiceData” .name .name>: error calling partialCached: “/Users/homer/git/tridentmoon/themes/ananke/layouts/partials/func/socials/GetServiceData.html:19:8”: execute of template failed: template: partials/func/socials/GetServiceData.html:19:8: executing “partials/func/socials/GetServiceData.html” at <partialCached “func/socials/GetBuiltInServicesDefaults” “socials/GetBuiltInServicesDefaults”>: error calling partialCached: “/Users/homer/git/tridentmoon/themes/ananke/layouts/partials/func/socials/GetBuiltInServicesDefaults.html:73:15”: execute of template failed: template: partials/func/socials/GetBuiltInServicesDefaults.html:73:15: executing “partials/func/socials/GetBuiltInServicesDefaults.html” at <transform.Unmarshal>: error calling Unmarshal: “_stream.yaml:4:1”: failed to unmarshal YAML: yaml: line 4: did not find expected key`

This change in Hugo v0.136.3 removes whitespace before the first line of the YAML in this file:

themes/ananke/layouts/partials/func/socials/GetBuiltInServicesDefaults.html

Removing the whitespace produces invalid YAML.

Your options:

  1. Upgrade to the current commit of the Ananke theme. All of the social media features have been reworked, with updated documentation here. The file in question no longer exists.

  2. Override the GetBuiltInServicesDefaults.html partial by placing a copy of it, with the same relative path, inside of the layouts directory in the root of your project. Then deindent lines 28-72 by two spaces.

  3. Wait for us to revert the recent change to Hugo. I’ll log an issue, but it may be rejected as an acceptable breaking change… not sure yet.

Thanks. I followed option 1 (and started accessing Ananke as a go module).

The underlying problem (inadvertent whitespace removal) was fixed in v0.136.4.

hola jmooring. Ayer ya te envié otro mensaje con respecto al error que me sale cuando quiero entrar a Hugo a modificar algunas cosas de mi sitio: ERROR failed to load data: failed to load data: “/Users/nataliamontenegro/mystory/data/gallery.yml:9:1”: “_stream.yaml:9:1”: failed to unmarshal YAML: yaml: line 9: did not find expected key

Built in 336 ms

Error: error building site: failed to load data: failed to load data: “/Users/nataliamontenegro/mystory/data/gallery.yml:9:1”: “_stream.yaml:9:1”: failed to unmarshal YAML: yaml: line 9: did not find expected key

El sitio tiene solo 3 meses y me fije que la ultima actualizacion es anterior. Que podre hacer al respecto?
otra vez muchas gracias.
N

Please share mystory/data/gallery.yml. I have no idea what the problem is without seeing the data.

Primero que nada muchas gracias por tu respuesta jmooring. Aqui te comparto:
title: “Gallery”
style: “style2 medium lightbox onscroll-fade-in”
content: |
This is a Gallery element. It can behave as a lightbox (when given the lightbox class), and you can customize its appearance with a number of modifiers, as well as assign it an optional onload or onscroll transition modifier (details).
pictures:

  - title: "Cocina"
    image: "images/gallery/fulls/01.jpg"
    thumb: "images/gallery/thumbs/01.jpg"

     title: "Terraza"
    image: "images/gallery/fulls/02.jpg"
    thumb: "images/gallery/thumbs/02.jpg"

  - title: "HabitaciĂłn doble"
    image: "images/gallery/fulls/03.jpg"
    thumb: "images/gallery/thumbs/03.jpg"

  - title: "Living"
    image: "images/gallery/fulls/04.jpg"
    thumb: "images/gallery/thumbs/04.jpg"

  - title: "HabitaciĂłn doble"
    image: "images/gallery/fulls/05.jpg"
    thumb: "images/gallery/thumbs/05.jpg"

  - title: "HabitaciĂłn doble para mujer"
    image: "images/gallery/fulls/06.jpg"
    thumb: "images/gallery/thumbs/06.jpg"

  - title: "HabitaciĂłn triple de hombres"
    image: "images/gallery/fulls/07.jpg"
    thumb: "images/gallery/thumbs/07.jpg"

  - title: "Antebaño"
    image: "images/gallery/fulls/08.jpg"
    thumb: "images/gallery/thumbs/08.jpg"

  - title: "Baño de mujeres"
    image: "images/gallery/fulls/09.jpg"
    thumb: "images/gallery/thumbs/09.jpg"
    
  - title: "Baño hombres"
    image: "images/gallery/fulls/10.jpg"
    thumb: "images/gallery/thumbs/10.jpg"

  - title: "HabitaciĂłn individual"
    image: "images/gallery/fulls/11.jpg"
    thumb: "images/gallery/thumbs/11.jpg"

  - title: "Patio Interno"
    image: "images/gallery/fulls/13.jpg"
    thumb: "images/gallery/thumbs/13.jpg"

  - title: "HabitaciĂłn triple de mujeres"
    image: "images/gallery/fulls/14.jpg"
    thumb: "images/gallery/thumbs/14.jpg"

  - title: "Sala de estudio"
    image: "images/gallery/fulls/15.jpg"
    thumb: "images/gallery/thumbs/15.jpg"

  - title: "HabitaciĂłn doble"
    image: "images/gallery/fulls/16.jpg"
    thumb: "images/gallery/thumbs/16.jpg"

  - title: "Cocina"
    image: "images/gallery/fulls/12.jpg"
    thumb: "images/gallery/thumbs/12.jpg"

Do this instead:

  - title: "Terraza"
    image: "images/gallery/fulls/02.jpg"
    thumb: "images/gallery/thumbs/02.jpg"
1 Like

ERES EL MEJOR DE TODO EL MUNDO !!!
MUCHAS PERO MUCHAS GRACIAS! :clap:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.