Slim Application Error

The application could not run because of the following error:

Details

Type: ErrorException
Code: 8
Message: Undefined variable: links
File: /home/ubuntu/www/bookyourlifestyle.com/latest/src/Byl/Routing/Controllers/LocationController.php
Line: 308

Trace

#0 /home/ubuntu/www/bookyourlifestyle.com/latest/src/Byl/Routing/Controllers/LocationController.php(308): Slim\Slim::handleErrors(8, 'Undefined varia...', '/home/ubuntu/ww...', 308, Array)
#1 /home/ubuntu/www/bookyourlifestyle.com/latest/src/Byl/Routing/Controllers/LocationController.php(53): Byl\Routing\Controllers\LocationController->locAction(2)
#2 /home/ubuntu/www/bookyourlifestyle.com/latest/src/Byl/Routing/Controllers/WildcardController.php(31): Byl\Routing\Controllers\LocationController->routeAction('city-london')
#3 [internal function]: Byl\Routing\Controllers\WildcardController->wcAction('city-london')
#4 /home/ubuntu/www/bookyourlifestyle.com/latest/vendor/slim/slim/Slim/Route.php(468): call_user_func_array(Array, Array)
#5 /home/ubuntu/www/bookyourlifestyle.com/latest/vendor/slim/slim/Slim/Slim.php(1355): Slim\Route->dispatch()
#6 /home/ubuntu/www/bookyourlifestyle.com/latest/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#7 /home/ubuntu/www/bookyourlifestyle.com/latest/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#8 /home/ubuntu/www/bookyourlifestyle.com/latest/src/Byl/Middleware/SiteAuth.php(24): Slim\Middleware\MethodOverride->call()
#9 /home/ubuntu/www/bookyourlifestyle.com/latest/src/Byl/Middleware/Headnav.php(16): Byl\Middleware\SiteAuth->call()
#10 /home/ubuntu/www/bookyourlifestyle.com/latest/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): Byl\Middleware\Headnav->call()
#11 /home/ubuntu/www/bookyourlifestyle.com/latest/vendor/slim/slim/Slim/Slim.php(1300): Slim\Middleware\PrettyExceptions->call()
#12 /home/ubuntu/www/bookyourlifestyle.com/latest/public/index.php(449): Slim\Slim->run()
#13 {main}