Hugo v0.153.0

my site does not build anymore with this version. ( v0.152.2 is OK)

G:\sofim_git_repos\SOFIM_WEBS\kijumed_web\www.kijumed.ch>hugo.cmd serve --disableFastRender --noHTTPCache --cleanDestinationDir --bind 0.0.0.0 --baseURL http://192.168.19.131:1313

G:\sofim_git_repos\SOFIM_WEBS\kijumed_web\www.kijumed.ch>G:\sofim_git_repos\LERNEN\hugo\hugo_extended\hugo.exe serve --disableFastRender --noHTTPCache --cleanDestinationDir --bind 0.0.0.0 --baseURL http://192.168.19.131:1313
Watching for changes in G:/sofim_git_repos/SOFIM_WEBS/kijumed_web/www.kijumed.ch/archetypes, G:/sofim_git_repos/SOFIM_WEBS/kijumed_web/www.kijumed.ch/content/{404,contact,dse,homepage,links,…}, G:/sofim_git_repos/SOFIM_WEBS/kijumed_web/www.kijumed.ch/data, G:/sofim_git_repos/SOFIM_WEBS/kijumed_web/www.kijumed.ch/layouts/{_default,_internal,shortcodes}, G:/sofim_git_repos/SOFIM_WEBS/kijumed_web/www.kijumed.ch/static/{features,services,social,work}, G:/sofim_git_repos/SOFIM_WEBS/kijumed_web/www.kijumed.ch/themes/hugo-hero-theme/archetypes, G:/sofim_git_repos/SOFIM_WEBS/kijumed_web/www.kijumed.ch/themes/hugo-hero-theme/assets/{images,js,scss}, G:/sofim_git_repos/SOFIM_WEBS/kijumed_web/www.kijumed.ch/themes/hugo-hero-theme/layouts/{404,_default,contact,dse,links,…}, G:/sofim_git_repos/SOFIM_WEBS/kijumed_web/www.kijumed.ch/themes/hugo-hero-theme/static/{downloads,images}
Watching for config changes in G:\sofim_git_repos\SOFIM_WEBS\kijumed_web\www.kijumed.ch\config.toml
Start building sites …
hugo v0.153.0-b4128babb839feaa962c00e777f0d2fe8d811f7d+extended windows/amd64 BuildDate=2025-12-19T10:14:01Z VendorInfo=gohugoio

Built in 187 ms
panic: Shift: unknown type *hugolib.pageMetaSource for β€œ/404”

goroutine 1 [running]:
github.com/gohugoio/hugo/hugolib.(*contentNodeShifter).Shift(0xc00047e480?, {0x142863a00, 0xc0001d78c0}, {0x0, 0x0, 0x0}, 0x0?)
/root/project/hugo/hugolib/content_map_page_contentnodeshifter.go:149 +0x465
github.com/gohugoio/hugo/hugolib/doctree.(*NodeShiftTree[...]).shift(...)
/root/project/hugo/hugolib/doctree/nodeshifttree.go:637
github.com/gohugoio/hugo/hugolib/doctree.(*NodeShiftTree[...]).get(0x1422854d7, {0x142287b4e?, 0x18?})
/root/project/hugo/hugolib/doctree/nodeshifttree.go:648 +0x82
github.com/gohugoio/hugo/hugolib/doctree.(*NodeShiftTree[...]).Has(...)
/root/project/hugo/hugolib/doctree/nodeshifttree.go:628
github.com/gohugoio/hugo/hugolib.(*allPagesAssembler).createMissingStandalonePages.func1({0x142287b4e, 0x4}, {_, _}, {{0x1422854d7, 0x3}, {{0xc00023b360, 0x9}, {0x1422a1bf3, 0x4}, …}, …})
/root/project/hugo/hugolib/content_map_page_assembler.go:1336 +0xa7
github.com/gohugoio/hugo/hugolib.(*allPagesAssembler).createMissingStandalonePages(0xc000be2e60)
/root/project/hugo/hugolib/content_map_page_assembler.go:1364 +0x17e
github.com/gohugoio/hugo/hugolib.(*allPagesAssembler).createMissingPages(0xc000be2e60)
/root/project/hugo/hugolib/content_map_page_assembler.go:1407 +0x37
github.com/gohugoio/hugo/hugolib.(*allPagesAssembler).doCreatePages(0xc000be2e60, {0x0, 0x0}, 0x0)
/root/project/hugo/hugolib/content_map_page_assembler.go:192 +0x3f7
github.com/gohugoio/hugo/hugolib.(*allPagesAssembler).createAllPages(0xc000be2e60)
/root/project/hugo/hugolib/content_map_page_assembler.go:137 +0xdc
github.com/gohugoio/hugo/hugolib.(*HugoSites).assemble(0xc000506fc0, {0x14286d558, 0x143848480}, {0x142875e50?, 0xc000483e60?}, 0xc00049ab40)
/root/project/hugo/hugolib/hugo_sites_build.go:344 +0x32b
github.com/gohugoio/hugo/hugolib.(*HugoSites).Build.func6(...)
/root/project/hugo/hugolib/hugo_sites_build.go:176
github.com/gohugoio/hugo/hugolib.(*HugoSites).Build(0xc000506fc0, {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, {0x0, …})
/root/project/hugo/hugolib/hugo_sites_build.go:186 +0x889
github.com/gohugoio/hugo/commands.(*hugoBuilder).buildSites(0xc00007e030?, 0x0)
/root/project/hugo/commands/hugobuilder.go:427 +0x10d
github.com/gohugoio/hugo/commands.(*hugoBuilder).fullBuild.func3(...)
/root/project/hugo/commands/hugobuilder.go:560
github.com/gohugoio/hugo/commands.(*hugoBuilder).fullBuild(0xc00077f400, 0x0)
/root/project/hugo/commands/hugobuilder.go:576 +0x33e
github.com/gohugoio/hugo/commands.(*hugoBuilder).build(0xc00077f400)
/root/project/hugo/commands/hugobuilder.go:399 +0x65
github.com/gohugoio/hugo/commands.(*serverCommand).Run.func2(0xc000256dc0)
/root/project/hugo/commands/server.go:514 +0x6e
github.com/gohugoio/hugo/commands.(*serverCommand).Run(0xc000256dc0, {0x0?, 0x0?}, 0x0?, {0x582e1fe7969c686e?, 0xc00079f9d0?, 0x0?})
/root/project/hugo/commands/server.go:515 +0x191
github.com/bep/simplecobra.(*Commandeer).compile.func1(0xc00075f100?, {0xc0003ed730?, 0x4?, 0x142287942?})
/root/project/gomodcache/github.com/bep/simplecobra@v0.6.1/simplecobra.go:113 +0x4c
github.com/spf13/cobra.(*Command).execute(0xc00001ac08, {0xc0003ed650, 0x7, 0x7})
/root/project/gomodcache/github.com/spf13/cobra@v1.10.2/command.go:1015 +0xb02
github.com/spf13/cobra.(*Command).ExecuteC(0xc00001a008)
/root/project/gomodcache/github.com/spf13/cobra@v1.10.2/command.go:1148 +0x465
github.com/spf13/cobra.(*Command).ExecuteContextC(...)
/root/project/gomodcache/github.com/spf13/cobra@v1.10.2/command.go:1080
github.com/bep/simplecobra.(*Exec).Execute(0xc00007ec20, {0x14286d558?, 0x143848480?}, {0xc0000ba010?, 0xc00079ff40?, 0x14005a0da?})
/root/project/gomodcache/github.com/bep/simplecobra@v0.6.1/simplecobra.go:155 +0xd4
github.com/gohugoio/hugo/commands.Execute({0xc0000ba010, 0x8, 0xf})
/root/project/hugo/commands/commandeer.go:68 +0x2f3
main.main()
/root/project/hugo/main.go:28 +0x5b

G:\sofim_git_repos\SOFIM_WEBS\kijumed_web\www.kijumed.ch>go version
go version go1.25.5 windows/amd64

1 Like

oke. tried another app of mine without any theme: is starting

G:\sofim_git_repos\SOFIM_WEBS\creathera_web\www.creathera.ch>hugo.cmd serve --disableFastRender --noHTTPCache --cleanDestinationDir --bind 0.0.0.0 --baseURL http://192.168.19.131:1313

G:\sofim_git_repos\SOFIM_WEBS\creathera_web\www.creathera.ch>rem –

G:\sofim_git_repos\SOFIM_WEBS\creathera_web\www.creathera.ch>rem – baseURL=localhost:1313 fuer local hpsof via hugo.cmd server

G:\sofim_git_repos\SOFIM_WEBS\creathera_web\www.creathera.ch>…\LERNEN\hugo\hugo_extended\hugo.exe serve --disableFastRender --noHTTPCache --cleanDestinationDir --bind 0.0.0.0 --baseURL http://192.168.19.131:1313
Watching for changes in G:/sofim_git_repos/SOFIM_WEBS/creathera_web/www.creathera.ch/archetypes, G:/sofim_git_repos/SOFIM_WEBS/creathera_web/www.creathera.ch/assets/{images,js,scss}, G:/sofim_git_repos/SOFIM_WEBS/creathera_web/www.creathera.ch/content/{about,downloads,dse,hinweis,links}, G:/sofim_git_repos/SOFIM_WEBS/creathera_web/www.creathera.ch/data, G:/sofim_git_repos/SOFIM_WEBS/creathera_web/www.creathera.ch/layouts/{_default,_internal,partials,shortcodes}, G:/sofim_git_repos/SOFIM_WEBS/creathera_web/www.creathera.ch/static/portraits
Watching for config changes in G:\sofim_git_repos\SOFIM_WEBS\creathera_web\www.creathera.ch\config.toml, G:\sofim_git_repos\SOFIM_WEBS\creathera_web\www.creathera.ch\go.mod
Start building sites …
hugo v0.153.0-b4128babb839feaa962c00e777f0d2fe8d811f7d+extended windows/amd64 BuildDate=2025-12-19T10:14:01Z VendorInfo=gohugoio

              β”‚ DE - CH

──────────────────┼─────────
Pages β”‚ 13
Paginator pages β”‚ 0
Non-page files β”‚ 11
Static files β”‚ 11
Processed images β”‚ 39
Aliases β”‚ 0
Cleaned β”‚ 0

Built in 694 ms
Environment: β€œdevelopment”
Serving pages from disk
Web Server is available at http://192.168.19.131:1313/ (bind address 0.0.0.0)
Press Ctrl+C to stop

deleting the folder 404 solved the problem :zany_face:

no idea where it comes from, maybe by installing the theme about nearly 3 years ago…

1 Like

Glad you found a workaround. It’s a bug; I think I understand what happens, and I will fix it soon: 404 related issue reported on discourse Β· Issue #14283 Β· gohugoio/hugo Β· GitHub

2 Likes