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

Error: render_view.html can't evaluate field File in type *hugolib.ShortcodeWithPage #2578

Closed laurentperrinet closed 2 years ago

laurentperrinet commented 2 years ago

Describe the bug

I fail to compile my website since two weeks, certainly due to a new version of hugo or of the theme. I have tried hard to roll back to earlier versions, but with no success. So I am trying now to understand why it fails to process the cite shortcode.

To Reproduce

Steps to reproduce the behavior:

> hugo
Start building sites …
hugo v0.91.2+extended darwin/amd64 BuildDate=unknown
Error: Error building site: "/Users/laurentperrinet/quantic/blog/hugo_academic/content/event/2012-01-24-edinburgh/index.md:51:21": failed to render shortcode "cite": failed to process shortcode: execute of template failed: template: shortcodes/cite.html:7:5: executing "shortcodes/cite.html" at <partial "functions/render_view" (dict "page" $ "item" . "view" $view "index" 0)>: error calling partial: "/var/folders/3p/m0g52j9j69z3gj8ktpgg1dm00000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-modules/wowchemy/v5@v5.0.0-20211231133358-6d4989f90f7a/layouts/partials/functions/render_view.html:28:124": execute of template failed: template: partials/functions/render_view.html:28:124: executing "partials/functions/render_view.html" at <$page.File.Path>: can't evaluate field File in type *hugolib.ShortcodeWithPage

Technical details:

go 1.15

require ( github.com/wowchemy/wowchemy-hugo-modules/wowchemy-cms/v5 v5.0.0-20211231133358-6d4989f90f7a // indirect github.com/wowchemy/wowchemy-hugo-modules/wowchemy/v5 v5.0.0-20211231133358-6d4989f90f7a // indirect )


- Hugo Version (run `hugo version`): `hugo v0.91.2+extended darwin/amd64 BuildDate=unknown`
- Browser/OS: MacOS
- Wowchemy Template : Academic
laurentperrinet commented 2 years ago

Works lovely, many thanks!