Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /app/templates1/pages/demo/blogpost.php:19
Stack trace:
#0 /app/libs/composer/vendor/league/plates/src/Template/Template.php(169): include()
#1 /app/libs/composer/vendor/league/plates/src/Template/Template.php(170): League\Plates\Template\Template->{closure:League\Plates\Template\Template::render():167}('/app/templates1...')
#2 /app/libs/composer/vendor/league/plates/src/Engine.php(304): League\Plates\Template\Template->render(Array)
#3 /app/controllers/site/contentController.php(116): League\Plates\Engine->render('pages/demo/blog...')
#4 /app/libs/RouteFactory.class.php(185): contentController->getBlogPost(Array)
#5 /app/libs/RouteFactory.class.php(147): RouteFactory->callAction('contentControll...', 'getBlogPost', Array)
#6 /app/index.php(136): RouteFactory->getResponse()
#7 {main}
thrown in /app/templates1/pages/demo/blogpost.php on line 19