HugoBlox / hugo-blox-builder

🚨 GROW YOUR AUDIENCE WITH HUGOBLOX! 🚀 HugoBlox is an easy, fast no-code website builder for researchers, entrepreneurs, data scientists, and developers. Build stunning sites in minutes. 适合研究人员、企业家、数据科学家和开发者的简单快速无代码网站构建器。用拖放功能、可定制模板和内置SEO工具快速创建精美网站!
https://hugoblox.com/templates/
MIT License
8.2k stars 2.9k forks source link

Execute of page failed #863

Closed chriscastille6 closed 5 years ago

chriscastille6 commented 5 years ago

I'm still quite new to using hugo and need some hand holding.

I've been working on updating my website. Several issues are emerging and I have no idea how to interpret the error messages.

ERROR 2019/01/02 23:31:20 render of "page" failed: "/Users/chriscastille/Documents/GitHub/website/themes/hugo-academic/layouts/publication/single.html:34:12": execute of template failed: template: publication/single.html:82:15: executing "publication/single.html" at <partial "publication...>: error calling partial: "/Users/chriscastille/Documents/GitHub/website/themes/hugo-academic/layouts/partials/publication_links.html:34:12": execute of template failed: template: partials/publication_links.html:34:12: executing "partials/publication_links.html" at <$.Site.GetPage>: error calling GetPage: too many arguments to .Site.GetPage: [page project personality-and-individual-differences]. Use lookups on the form {{ .Site.GetPage "/posts/mypage-md" }}
ERROR 2019/01/02 23:31:20 render of "section" failed: "/Users/chriscastille/Documents/GitHub/website/themes/hugo-academic/layouts/section/publication.html:34:12": execute of template failed: template: section/publication.html:59:15: executing "section/publication.html" at <partial "publication...>: error calling partial: execute of template failed: template: partials/publication_li_apa.html:15:8: executing "partials/publication_li_apa.html" at <partial "publication...>: error calling partial: "/Users/chriscastille/Documents/GitHub/website/themes/hugo-academic/layouts/partials/publication_links.html:34:12": execute of template failed: template: partials/publication_links.html:34:12: executing "partials/publication_links.html" at <$.Site.GetPage>: error calling GetPage: too many arguments to .Site.GetPage: [page project personality-and-individual-differences]. Use lookups on the form {{ .Site.GetPage "/posts/mypage-md" }}
ERROR 2019/01/02 23:31:20 render of "page" failed: "/Users/chriscastille/Documents/GitHub/website/themes/hugo-academic/layouts/project/single.html:6:52": execute of template failed: template: project/single.html:26:7: executing "project/single.html" at <partial "tags.html" ...>: error calling partial: "/Users/chriscastille/Documents/GitHub/website/themes/hugo-academic/layouts/partials/tags.html:6:52": execute of template failed: template: partials/tags.html:6:52: executing "partials/tags.html" at <$.Site.GetPage>: error calling GetPage: too many arguments to .Site.GetPage: [taxonomyTerm tags bright-and-dark-personality]. Use lookups on the form {{ .Site.GetPage "/posts/mypage-md" }}
ERROR 2019/01/02 23:31:20 render of "page" failed: "/Users/chriscastille/Documents/GitHub/website/themes/hugo-academic/layouts/project/single.html:6:52": execute of template failed: template: project/single.html:26:7: executing "project/single.html" at <partial "tags.html" ...>: error calling partial: "/Users/chriscastille/Documents/GitHub/website/themes/hugo-academic/layouts/partials/tags.html:6:52": execute of template failed: template: partials/tags.html:6:52: executing "partials/tags.html" at <$.Site.GetPage>: error calling GetPage: too many arguments to .Site.GetPage: [taxonomyTerm tags open-science]. Use lookups on the form {{ .Site.GetPage "/posts/mypage-md" }}

Any guidance would be appreciated.

gcushen commented 5 years ago

The issue you have reported is due to using a version of Hugo which is incompatible with the version of Academic which you are trying to run.

The Hugo developers made some breaking changes in recent versions of Hugo which result in newer versions of Hugo being incompatible with older versions of Academic.

I suggest either reverting to the minimum version of Hugo supported by the Academic version which you updated to (the minimum supported Hugo version can be found in YOUR_SITE/themes/academic/theme.toml -> min_version), or update your Academic all the way to the latest version of Academic and install Hugo v0.50 which is known to be compatible with the latest Academic version.

chriscastille6 commented 5 years ago

Thanks! I updated Academic. That did the trick!

chriscastille6 commented 5 years ago

Actually, scratch that. Now the errors are reported in the console rather than via the terminal. I believe that I've updated both Academic and Hugo. Do you have any more advice?

gcushen commented 5 years ago

I suggest posting on the support forums along with a link to this thread and a link to your repository so that others can try to help.

chriscastille6 commented 5 years ago

Done. Thanks!

gcushen commented 5 years ago

Closing this. The problem is the Hugo compatibility as described above and the solution is discussed here: https://discourse.gohugo.io/t/execute-of-page-failed/16160/7?u=neutreno

Himscipy commented 4 years ago

I facing the same error


12 13 14 15 16 | {{ end }}      {{ if (.Params.publication_types) and (ne (index .Params.publication_types 0) "0") }}     <div class="row">       <div class="col-md-1"></div>
-- | --

My version setups are as follows

- Hugo Static Site Generator v0.71.1-A301F6B2/extended darwin/amd64 BuildDate: 2020-05-25T09:16:12Z
-  Latest Academic  theme

I am following the procedure given on the documentation Any help will be really appreciated .Thank you