Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v0.6.5] Error render of "page" failed #79

Closed
gavlinski opened this issue Jun 21, 2024 · 2 comments · Fixed by #80
Closed

[v0.6.5] Error render of "page" failed #79

gavlinski opened this issue Jun 21, 2024 · 2 comments · Fixed by #80
Labels
bug Something isn't working

Comments

@gavlinski
Copy link
Contributor

Hi! After upgrading all modules with hugo mod get -u, I've noticed that revision v0.6.5 is breaking hugo server, that won't start any more. Downgrading revision to v0.6.4 fixes the problem. See the error messages below.

ERROR render of "page" failed: "/modules/modules/filecache/modules/pkg/mod/github.com/hbstack/[email protected]/layouts/blog/single.html:2:5": execute of template failed: template: blog/single.html:2:5: executing "main" at <partial "hb/modules/blog/single" .>: error calling partial: "/modules/modules/filecache/modules/pkg/mod/github.com/hbstack/[email protected]/layouts/partials/hb/modules/blog/single.html:53:12": execute of template failed: template: partials/hb/modules/blog/single.html:53:12: executing "partials/hb/modules/blog/single.html" at <partial "hugopress/functions/render-hooks" (dict "Name" "hb-blog-post-content-end" "Page" .)>: error calling partial: "/modules/modules/filecache/modules/pkg/mod/github.com/hugomods/[email protected]/layouts/partials/hugopress/functions/render-hooks.html:34:8": execute of template failed: template: partials/hugopress/functions/render-hooks.html:34:8: executing "partials/hugopress/functions/render-hooks.html" at <partial .partial $ctx>: error calling partial: "/modules/modules/filecache/modules/pkg/mod/github.com/hbstack/blog/modules/[email protected]/layouts/partials/hugopress/modules/hb-blog-revision/hooks/hb-blog-post-content-end.html:1:4": execute of template failed: template: partials/hugopress/modules/hb-blog-revision/hooks/hb-blog-post-content-end.html:1:4: executing "partials/hugopress/modules/hb-blog-revision/hooks/hb-blog-post-content-end.html" at <partial "hb/modules/revision/index" .Page>: error calling partial: "/modules/modules/filecache/modules/pkg/mod/github.com/hbstack/[email protected]/layouts/partials/hb/modules/revision/index.html:17:21": execute of template failed: template: partials/hb/modules/revision/index.html:17:21: executing "partials/hb/modules/revision/index.html" at <.IsContentAdapter>: can't evaluate field IsContentAdapter in type *source.File
ERROR render of "page" failed: "/modules/modules/filecache/modules/pkg/mod/github.com/hbstack/[email protected]/layouts/docs/single.html:24:13": execute of template failed: template: docs/single.html:24:13: executing "main" at <partial "hb/modules/docs/doc" .>: error calling partial: "/modules/modules/filecache/modules/pkg/mod/github.com/hbstack/[email protected]/layouts/partials/hb/modules/docs/doc.html:6:3": execute of template failed: template: partials/hb/modules/docs/doc.html:6:3: executing "partials/hb/modules/docs/doc.html" at <partial "hugopress/functions/render-hooks" (dict "Page" . "Name" "hb-docs-doc-content-end")>: error calling partial: "/modules/modules/filecache/modules/pkg/mod/github.com/hugomods/[email protected]/layouts/partials/hugopress/functions/render-hooks.html:34:8": execute of template failed: template: partials/hugopress/functions/render-hooks.html:34:8: executing "partials/hugopress/functions/render-hooks.html" at <partial .partial $ctx>: error calling partial: "/modules/modules/filecache/modules/pkg/mod/github.com/hbstack/docs/modules/[email protected]/layouts/partials/hugopress/modules/hb-docs-revision/hooks/hb-docs-doc-content-end.html:1:4": execute of template failed: template: partials/hugopress/modules/hb-docs-revision/hooks/hb-docs-doc-content-end.html:1:4: executing "partials/hugopress/modules/hb-docs-revision/hooks/hb-docs-doc-content-end.html" at <partial "hb/modules/revision/index" .Page>: error calling partial: "/modules/modules/filecache/modules/pkg/mod/github.com/hbstack/[email protected]/layouts/partials/hb/modules/revision/index.html:17:21": execute of template failed: template: partials/hb/modules/revision/index.html:17:21: executing "partials/hb/modules/revision/index.html" at <.IsContentAdapter>: can't evaluate field IsContentAdapter in type *source.File
ERROR render: failed to render pages: render of "page" failed: "/modules/modules/filecache/modules/pkg/mod/github.com/hbstack/[email protected]/layouts/blog/single.html:2:5": execute of template failed: template: blog/single.html:2:5: executing "main" at <partial "hb/modules/blog/single" .>: error calling partial: "/modules/modules/filecache/modules/pkg/mod/github.com/hbstack/[email protected]/layouts/partials/hb/modules/blog/single.html:53:12": execute of template failed: template: partials/hb/modules/blog/single.html:53:12: executing "partials/hb/modules/blog/single.html" at <partial "hugopress/functions/render-hooks" (dict "Name" "hb-blog-post-content-end" "Page" .)>: error calling partial: "/modules/modules/filecache/modules/pkg/mod/github.com/hugomods/[email protected]/layouts/partials/hugopress/functions/render-hooks.html:34:8": execute of template failed: template: partials/hugopress/functions/render-hooks.html:34:8: executing "partials/hugopress/functions/render-hooks.html" at <partial .partial $ctx>: error calling partial: "/modules/modules/filecache/modules/pkg/mod/github.com/hbstack/blog/modules/[email protected]/layouts/partials/hugopress/modules/hb-blog-revision/hooks/hb-blog-post-content-end.html:1:4": execute of template failed: template: partials/hugopress/modules/hb-blog-revision/hooks/hb-blog-post-content-end.html:1:4: executing "partials/hugopress/modules/hb-blog-revision/hooks/hb-blog-post-content-end.html" at <partial "hb/modules/revision/index" .Page>: error calling partial: "/modules/modules/filecache/modules/pkg/mod/github.com/hbstack/[email protected]/layouts/partials/hb/modules/revision/index.html:17:21": execute of template failed: template: partials/hb/modules/revision/index.html:17:21: executing "partials/hb/modules/revision/index.html" at <.IsContentAdapter>: can't evaluate field IsContentAdapter in type *source.File
@razonyang razonyang added the bug Something isn't working label Jun 22, 2024
@razonyang
Copy link
Member

My apologies, it's a backwards compatibility issue, which calling newer methods in older Hugo version, should be fixed in github.com/hbstack/[email protected].

@gavlinski
Copy link
Contributor Author

Thanks! It's now working fine again. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants