gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
75.47k stars 7.5k forks source link

Method invoke in templates panics if the receiver is nil #5327

Closed bep closed 5 years ago

bep commented 6 years ago

https://github.com/golang/go/issues/28242

kaushalmodi commented 6 years ago

Yes, fix for this would be very welcome: https://github.com/gohugoio/hugo/issues/4710.

bep commented 6 years ago

This is now merged and fixed upstream.

Zola commented 5 years ago

I got below message when I import thousands markdown file that converted from Google reader article(blog article in atom format) , but when I remove tags from import file, it not show again, I think too many tags and Hugo don't have enough memory, is it bug?

ERROR 2019/02/05 04:39:30 Failed to render pages: render of "page" failed: "/Users/zola/Sites/hugo/themes/academic/layouts/_default/single.html:14:7": execute of template failed: template: _default/single.html:14:7: executing "_default/single.html" at <partial "tags.html" ...>: error calling partial: "/Users/zola/Sites/hugo/themes/academic/layouts/partials/tags.html:1:1": execute of template failed: panic in Execute: runtime error: invalid memory address or nil pointer dereference. See "https://github.com/gohugoio/hugo/issues/5327" for the reason why we cannot provide a better error message for this.

anagio commented 5 years ago

Is there an earlier version of hugo which isn't affected by this bug if so which?

hanzei commented 5 years ago

@bep can this be closed?

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.