flug.dk

Slim Application Error

Slim Application Error

The application could not run because of the following error:

Details

Type: ErrorException
Code: 2
Message: Invalid argument supplied for foreach()
File: /var/www/html/templates/blog.php
Line: 42

Trace

#0 /var/www/html/templates/blog.php(42): Slim\Slim::handleErrors(2, 'Invalid argumen...', '/var/www/html/t...', 42, Array)
#1 /var/www/html/vendor/slim/slim/Slim/View.php(278): require('/var/www/html/t...')
#2 /var/www/html/vendor/slim/slim/Slim/View.php(255): Slim\View->render('blog.php', Array)
#3 /var/www/html/vendor/slim/slim/Slim/View.php(243): Slim\View->fetch('blog.php', NULL)
#4 /var/www/html/vendor/slim/slim/Slim/Slim.php(757): Slim\View->display('blog.php')
#5 /var/www/html/index.php(22): Slim\Slim->render('blog.php', Array)
#6 [internal function]: {closure}()
#7 /var/www/html/vendor/slim/slim/Slim/Route.php(468): call_user_func_array(Object(Closure), Array)
#8 /var/www/html/vendor/slim/slim/Slim/Slim.php(1357): Slim\Route->dispatch()
#9 /var/www/html/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#10 /var/www/html/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#11 /var/www/html/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()
#12 /var/www/html/vendor/slim/slim/Slim/Slim.php(1302): Slim\Middleware\PrettyExceptions->call()
#13 /var/www/html/index.php(47): Slim\Slim->run()
#14 {main}