Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/www/advisor-platform/app/lib/Wordpress.php:64 Stack trace: #0 /var/www/advisor-platform/app/lib/Wordpress.php(64): count() #1 /var/www/advisor-platform/app/twigFunctions.php(84): App\Wordpress->getPostBySlug() #2 /var/www/advisor-platform/vendor/twig/twig/src/Environment.php(358) : eval()'d code(76): {closure}() #3 /var/www/advisor-platform/vendor/twig/twig/src/Template.php(171): __TwigTemplate_452886adb69c463d57131f57f910efdbadbfdbe05820175d981e599176a12ee2->block_body() #4 /var/www/advisor-platform/vendor/twig/twig/src/Environment.php(358) : eval()'d code(72): Twig\Template->displayBlock() #5 /var/www/advisor-platform/vendor/twig/twig/src/Template.php(171): __TwigTemplate_fec19722584838e961fdd78532002e126042e30a41865d3316a00e2867f40c56->block_content() #6 /var/www/advisor-platform/vendor/twig/twig/src/Environment.php(358) : eval()'d code(724): Twig\Template->displayBlock() #7 /var/www/advisor-platform/vendor/twig/twig/src/Template.php(394): __TwigTemplate_c33ed0907a310b02e03b848b6ea36c1e4333699254860a0511c326573bca15e2->doDisplay() #8 /var/www/advisor-platform/vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling() #9 /var/www/advisor-platform/vendor/twig/twig/src/Environment.php(358) : eval()'d code(45): Twig\Template->display() #10 /var/www/advisor-platform/vendor/twig/twig/src/Template.php(394): __TwigTemplate_fec19722584838e961fdd78532002e126042e30a41865d3316a00e2867f40c56->doDisplay() #11 /var/www/advisor-platform/vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling() #12 /var/www/advisor-platform/vendor/twig/twig/src/Environment.php(358) : eval()'d code(44): Twig\Template->display() #13 /var/www/advisor-platform/vendor/twig/twig/src/Template.php(394): __TwigTemplate_452886adb69c463d57131f57f910efdbadbfdbe05820175d981e599176a12ee2->doDisplay() #14 /var/www/advisor-platform/vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling() #15 /var/www/advisor-platform/vendor/twig/twig/src/Template.php(379): Twig\Template->display() #16 /var/www/advisor-platform/vendor/twig/twig/src/TemplateWrapper.php(40): Twig\Template->render() #17 /var/www/advisor-platform/vendor/twig/twig/src/Environment.php(277): Twig\TemplateWrapper->render() #18 /var/www/advisor-platform/vendor/slim/twig-view/src/Twig.php(146): Twig\Environment->render() #19 /var/www/advisor-platform/vendor/slim/twig-view/src/Twig.php(202): Slim\Views\Twig->fetch() #20 /var/www/advisor-platform/app/routes.php(419): Slim\Views\Twig->render() #21 /var/www/advisor-platform/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(43): Closure->{closure}() #22 /var/www/advisor-platform/vendor/slim/slim/Slim/Routing/Route.php(384): Slim\Handlers\Strategies\RequestResponse->__invoke() #23 /var/www/advisor-platform/vendor/slim/slim/Slim/MiddlewareDispatcher.php(81): Slim\Routing\Route->handle() #24 /var/www/advisor-platform/vendor/slim/slim/Slim/MiddlewareDispatcher.php(81): Slim\MiddlewareDispatcher->handle() #25 /var/www/advisor-platform/vendor/slim/slim/Slim/Routing/Route.php(341): Slim\MiddlewareDispatcher->handle() #26 /var/www/advisor-platform/vendor/slim/slim/Slim/Routing/RouteRunner.php(84): Slim\Routing\Route->run() #27 /var/www/advisor-platform/app/middleware.php(23): Slim\Routing\RouteRunner->handle() #28 /var/www/advisor-platform/vendor/slim/slim/Slim/MiddlewareDispatcher.php(313): Closure->{closure}() #29 /var/www/advisor-platform/app/middleware.php(33): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() #30 /var/www/advisor-platform/vendor/slim/slim/Slim/MiddlewareDispatcher.php(313): Closure->{closure}() #31 /var/www/advisor-platform/app/middleware.php(99): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() #32 /var/www/advisor-platform/vendor/slim/slim/Slim/MiddlewareDispatcher.php(313): Closure->{closure}() #33 /var/www/advisor-platform/vendor/slim/slim/Slim/MiddlewareDispatcher.php(81): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() #34 /var/www/advisor-platform/vendor/slim/slim/Slim/App.php(215): Slim\MiddlewareDispatcher->handle() #35 /var/www/advisor-platform/vendor/slim/slim/Slim/App.php(199): Slim\App->handle() #36 /var/www/advisor-platform/app/bootstrap.php(155): Slim\App->run() #37 /var/www/advisor-platform/public/index.php(9): require('...') #38 {main} thrown in /var/www/advisor-platform/app/lib/Wordpress.php on line 64