Administrative Note (3/2018)


Just a note. Today I upgraded the PHP framework for my WordPress blogs to version 7.2, which is good in the sense that an upgraded infrastructure is good for overall security in any service or application, but it seems to be generating a warning in the header of pages on the site.

Hopefully Automattic, the folks who are responsible for WordPress, will fix this soon (since they say they support/desire PHP 7.2), but it’s gone unfixed for a couple of months so far. I may roll back to PHP version 7.1 if I get sick of waiting, but for now I’ll leave it.

In case you need it, here’s the full text of the warning:

Warning: count(): Parameter must be an array or an object that implements Countable in ~/malcolmgin.com/geekblog/wp-includes/post-template.php on line 284

(I’ll remove the specific path info in case it’s an attack surface.)

Update: I applied the patch provided in this comment, and then reset my WP Super Cache cache.