Error: error building site: render: failed to render pages: render of "page" failed

While hugo server successfully loads my wowchemy-based website in a local webserver of my browser, when I execute hugo (the get the public folder), I get the errors below. (Doing hugo version partially yields hugo v0.118.2-da7983ac4b94d97d776d7c2405040de97e95c03d+extended windows/amd64.)

ERROR render of "page" failed: "~\themes\github.com\wowchemy\wowchemy-hugo-themes\modules\wowchemy\v5\layouts\_default\baseof.html:5:3": execute of template failed: template: _default/single.html:5:3: executing "_default/single.html" at <partial "site_head" .>: error calling partial: 

"~\themes\github.com\wowchemy\wowchemy-hugo-themes\modules\wowchemy\v5\layouts\partials\site_head.html:221:5": execute of template failed: template: partials/site_head.html:221:5: executing "partials/site_head.html" at <partial "marketing/google_analytics" .>: error calling partial: 

"~\themes\github.com\wowchemy\wowchemy-hugo-themes\modules\wowchemy\v5\layouts\partials\marketing\google_analytics.html:5:24": execute of template failed: template: partials/marketing/google_analytics.html:5:24: executing "partials/marketing/google_analytics.html" at <site>: invalid value; expected bool

Total in 711 ms
Error: error building site: render: failed to render pages: render of "page" failed: "~\themes\github.com\wowchemy\wowchemy-hugo-themes\modules\wowchemy\v5\layouts\_default\baseof.html:5:3": execute of template failed: template: _default/single.html:5:3: executing "_default/single.html" at <partial "site_head" .>: error calling partial: 

"~\themes\github.com\wowchemy\wowchemy-hugo-themes\modules\wowchemy\v5\layouts\partials\site_head.html:221:5": execute of template failed: template: partials/site_head.html:221:5: executing "partials/site_head.html" at <partial "marketing/google_analytics" .>: error calling partial: 

"~\themes\github.com\wowchemy\wowchemy-hugo-themes\modules\wowchemy\v5\layouts\partials\marketing\google_analytics.html:5:24": execute of template failed: template: partials/marketing/google_analytics.html:5:24: executing "partials/marketing/google_analytics.html" at <site>: invalid value; expected bool

Does one know what is wrong here?

You are more likely to receive an accurate and timely response from the Wowchemy team:
https://github.com/wowchemy/wowchemy-hugo-themes/discussions

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

cc: @alcarazr

Quite strange you can view your site locally with hugo server but the the hugo command throws errors. I recommend following up in Discord, sharing your repo if possible so we can reproduce your issues.

1 Like