jarrod
jarrod

@amit @manton @sod Hey gents, anyone know how I can fix this with the Post Stats plugin? Disabling the Year Recap section does not appear to fix the issue.

A screenshot of an error message in red text regarding the Post Stats plugin for Micro.blog.

|
Embed
Progress spinner
manton
manton

@jarrod @sod Can you try Account → Logs → Rebuild if you haven’t yet? Some cached template from the plug-in must still be in there. Sorry about that. Either that or there’s another standalone page at /stats that is including the shortcode which is now missing?

|
Embed
Progress spinner
jarrod
jarrod

@manton @sod just rebuilt and have the same error. No extra page at /stats that I know of.

|
Embed
Progress spinner
sod
sod

@jarrod @manton I haven’t taken a closer look at the code, but judging by the error message, my guess is there’s an edge case that affects $recapWordCount or $previousWordCount. Just to double-check, are you on the latest version, 1.2.4? I know @amit fixed a bug back in December.

|
Embed
Progress spinner
amit
amit

@jarrod Let me take a look over the weekend. I will try to fix @sod @manton

|
Embed
Progress spinner
jarrod
jarrod

@amit Thank you! @sod Yes, on the latest version. Here’s the current error:

Screenshot of an error message on a mobile device, displaying log details and code errors. The top navigation bar shows icons for timeline, mentions, discover, and a user profile. Below, an error is listed: “Error building site: ‘content/stats.md:11:1’: failed to render shortcode ‘poststats/detailed’…”. Another error indicates a problem with a shortcode name. The date shown is March 18, 2026. At the bottom, there is a navigation bar for the “micro.blog” app with icons for back, forward, share, bookmark, and tabs. The time displayed is 5:25.

|
Embed
Progress spinner
amit
amit

@jarrod I have fixed the issue—you should see an update to the plugin. Let me know if this still doesn’t fix it. @sod @manton

|
Embed
Progress spinner
sod
sod

@amit Awesome, thanks so much!

|
Embed
Progress spinner
manton
manton

@amit Excellent, thanks!

|
Embed
Progress spinner
jarrod
jarrod

@amit @manton @sod I updated the plugin and rebuilt. This is what I see now:

A screenshot of an error message related to building a website. The error involves the file “content/stats.md”, failing to render the shortcode “poststats/detailed” due to an inability to cast a type to float64. The detailed error specifies issues with executing a template at “layouts/shortcodes/poststats/detailed.html”. Date and time shown in the image is 2026-03-22 17:52:29.

|
Embed
Progress spinner
amit
amit

@jarrod Interesting. Can you try reinstalling the plugin once? Or wait for an update again.

|
Embed
Progress spinner
jarrod
jarrod

@amit @manton @sod I did another rebuild and I think we’re back in action. No poststats-related errors! 🥳 Thank you!

|
Embed
Progress spinner