Execute of template failed

Just went to make a site update and all of a sudden my Academic CV theme site no longer compiles:

hugo server --disableFastRender
port 1313 already in use, attempting to use an available port
Watching for changes in /Users/suzannealdrich/{Library,Sites}
Watching for config changes in /Users/suzannealdrich/Sites/suzanne.link/config.toml, /Users/suzannealdrich/Sites/suzanne.link/config/_default, /Users/suzannealdrich/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-plugin-netlify-cms@v1.0.1-0.20230213200301-f55ff594c0f6/config.yaml, /Users/suzannealdrich/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-plugin-netlify@v1.0.1-0.20230213200301-f55ff594c0f6/config.yaml, /Users/suzannealdrich/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-plugin-reveal@v0.0.0-20230213200301-f55ff594c0f6/config.yaml, /Users/suzannealdrich/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5@v5.7.1-0.20230213200301-f55ff594c0f6/config.yaml, /Users/suzannealdrich/Sites/suzanne.link/go.mod
Start building sites …
hugo v0.124.1-db083b05f16c945fec04f745f0ca8640560cf1ec+extended darwin/arm64 BuildDate=2024-03-20T11:40:10Z VendorInfo=brew

ERROR render of "section" failed: "/Users/suzannealdrich/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5@v5.7.1-0.20230213200301-f55ff594c0f6/layouts/_default/baseof.html:11:403": execute of template failed: template: section/post.html:11:403: executing "section/post.html" at <.File.UniqueID>: can't evaluate field File in type *source.File
ERROR render of "page" failed: "/Users/suzannealdrich/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5@v5.7.1-0.20230213200301-f55ff594c0f6/layouts/_default/baseof.html:11:403": execute of template failed: template: _default/single.html:11:403: executing "_default/single.html" at <.File.UniqueID>: can't evaluate field File in type *source.File
Built in 272 ms
Error: error building site: render: failed to render pages: render of "term" failed: "/Users/suzannealdrich/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5@v5.7.1-0.20230213200301-f55ff594c0f6/layouts/_default/baseof.html:11:403": execute of template failed: template: authors/list.html:11:403: executing "authors/list.html" at <.File.UniqueID>: can't evaluate field File in type *source.File

From what I’m reading, it sounds like there was some kind of breaking change having to do with template handling released recently? I would have expected the Hugo software versioning to reflect this. I am just wondering if I have to migrate to a more recent version of the theme to fix this.

You are more likely to receive an accurate and timely response from the Academic/Wowchemy/Hugo Blox team:
https://github.com/HugoBlox/hugo-blox-builder/discussions

They also have an active Discord channel:
https://discord.com/invite/z8wNYzb

cc: @alcarazr

You need to update your Hugo Blox installation so it’s compatible with the latest Hugo version.

I checked in there but the Blox people are actually pointing people to here. Updating Hugo is what caused the problem. Hugo is the project that released breaking changes. It’s completely fair that I speak up about it.

Please see response from alcarazr above. He is an active member of the Hugo Blox community, and an excellent resource.

Of course it is.

You are correct. That’s why we note “breaking changes” in the release notes. See also https://semver.org/#spec-item-4.

1 Like