After installing the plugin, I'm getting "A Server Error Occurred" and looking at the logs, its reporting...
2021-01-05 10:21:28 [-][3][-][error][Twig\Error\RuntimeError] yii\base\ErrorException: Trying to access array offset on value of type null in .../vendor/madebyraygun/trending-posts/src/services/TrendingPostsService.php:222
I've added one line to check the results of of the $getResults query, and that fixed it.
After installing the plugin, I'm getting "A Server Error Occurred" and looking at the logs, its reporting...
2021-01-05 10:21:28 [-][3][-][error][Twig\Error\RuntimeError] yii\base\ErrorException: Trying to access array offset on value of type null in .../vendor/madebyraygun/trending-posts/src/services/TrendingPostsService.php:222
I've added one line to check the results of of the $getResults query, and that fixed it.
$getResult = $getResults ? $getResults["totalviews"] : null;