Hey Per, I’ve been trying to replicate the reported PHP warning, but have not been successful. I am testing on PHP 8 with [sbs_posts]
on a static WP Page, but there is no warning or error. I’ve tried with both zero posts and many posts. Tried with existing options and new/default options. Cannot trigger the warning.
So there must be something else involved here. The warning you report says:
Trying to access array offset on value of type bool in simple-blog-stats.php on line 152
If you examine the related code, you will find that the line in question is looking for $sbs_options
, which is the plugin options array. What the warning is saying is that, essentially, the plugin options array does not exist, and thus a boolean value (i.e., false
) is passed. Normally the plugin options always exist, so the warning suggests that there is something else beyond the plugin that is interfering with normal functionality.
I would be glad to help troubleshoot further if you would like. Can also provide a free troubleshooting guide if it will be useful for you.