See this Error Log extract…
Looks like something’s up with the Post Stats plug-in. Maybe it’s getting tripped up by the content of a specific post, for example. It could be a bug in the plug-in or, if you’ve made customizations in a custom theme or similar, you might have inadvertently broken it.
Are you still around, @amit? Any ideas on what might be going on here?
I am around @sod ![]()
@numericcitizen Interesting error log. Have you changed the Hugo version recently? What version have you set?
currently set at 0.117, and no, I didn’t change anything.
I have identified the issue: you may not have any published posts in the recap year. Anyway, I have pushed a fix – an upgrade should be visible soon. I hope this fixes the issue.
I’m still getting it:
Error: error building site: “content/stats.md:8:1”: failed to render shortcode “poststats/yearrecap”: failed to process shortcode: “layouts/shortcodes/poststats/yearrecap.html:54:22”: execute of template failed: template: shortcodes/poststats/yearrecap.html:54:22: executing “shortcodes/poststats/yearrecap.html” at <sub $recapWordCount $previousWordCount>: error calling sub: can’t apply the operator to the values
