Slim Application Error

The application could not run because of the following error:

Details

Type: Twig\Error\RuntimeError
Message: Neither the property "slug" nor one of the methods "slug()", "getslug()"/"isslug()"/"hasslug()" or "__call()" exist and have public access in class "stdClass".
File: /home/dambrax/www/templates/homepage.twig
Line: 384

Trace

#0 /home/dambrax/www/vendor/twig/twig/src/Environment.php(418) : eval()'d code(447): twig_get_attribute(Object(Twig\Environment), Object(Twig\Source), Object(stdClass), 'slug', Array, 'any', false, false, false, 384)
#1 /home/dambrax/www/vendor/twig/twig/src/Template.php(184): __TwigTemplate_cfb418e785004858c05e56d2aa50ffa0b871447abea3f7c3deaac6beaa1d1341->block_body(Array, Array)
#2 /home/dambrax/www/vendor/twig/twig/src/Environment.php(418) : eval()'d code(152): Twig\Template->displayBlock('body', Array, Array)
#3 /home/dambrax/www/vendor/twig/twig/src/Template.php(395): __TwigTemplate_545bad476ebc7b24b6e6ce1356cc7aeac4670c6ac03d56fd2e1afe902681a189->doDisplay(Array, Array)
#4 /home/dambrax/www/vendor/twig/twig/src/Template.php(372): Twig\Template->displayWithErrorHandling(Array, Array)
#5 /home/dambrax/www/vendor/twig/twig/src/Environment.php(418) : eval()'d code(41): Twig\Template->display(Array, Array)
#6 /home/dambrax/www/vendor/twig/twig/src/Template.php(395): __TwigTemplate_cfb418e785004858c05e56d2aa50ffa0b871447abea3f7c3deaac6beaa1d1341->doDisplay(Array, Array)
#7 /home/dambrax/www/vendor/twig/twig/src/Template.php(372): Twig\Template->displayWithErrorHandling(Array, Array)
#8 /home/dambrax/www/vendor/twig/twig/src/Template.php(380): Twig\Template->display(Array)
#9 /home/dambrax/www/vendor/twig/twig/src/TemplateWrapper.php(45): Twig\Template->render(Array, Array)
#10 /home/dambrax/www/vendor/twig/twig/src/Environment.php(318): Twig\TemplateWrapper->render(Array)
#11 /home/dambrax/www/index.php(134): Twig\Environment->render('homepage.twig', Array)
#12 [internal function]: Closure->{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#13 /home/dambrax/www/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#14 /home/dambrax/www/vendor/slim/slim/Slim/Route.php(356): Slim\Handlers\Strategies\RequestResponse->__invoke(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#15 /home/dambrax/www/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#16 /home/dambrax/www/vendor/slim/slim/Slim/Route.php(334): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#17 /home/dambrax/www/vendor/slim/slim/Slim/App.php(515): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response))
#18 /home/dambrax/www/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#19 /home/dambrax/www/vendor/slim/slim/Slim/App.php(405): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#20 /home/dambrax/www/vendor/slim/slim/Slim/App.php(313): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response))
#21 /home/dambrax/www/index.php(529): Slim\App->run()
#22 {main}