Notice: Undefined index: item in /home/osbitpow/deploy/releases/20160118151637/src/Web/Service/TemplateService.php on line 25

Fatal error: Uncaught exception 'Exception' with message 'Serialization of 'Closure' is not allowed' in /home/osbitpow/deploy/releases/20160118151637/src/Web/Service/TemplateService.php:28 Stack trace: #0 /home/osbitpow/deploy/releases/20160118151637/src/Web/Service/TemplateService.php(28): serialize(Array) #1 /home/osbitpow/deploy/releases/20160118151637/web/index.php(233): OsbitPower\Web\Service\TemplateService->render('error/exception', Array) #2 [internal function]: {closure}(Object(Exception), 500) #3 /home/osbitpow/deploy/releases/20160118151637/vendor/silex/silex/src/Silex/ExceptionListenerWrapper.php(53): call_user_func(Object(Closure), Object(Exception), 500) #4 [internal function]: Silex\ExceptionListenerWrapper->__invoke(Object(Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent), 'kernel.exceptio...', Object(Symfony\Component\EventDispatcher\EventDispatcher)) #5 /home/osbitpow/deploy/releases/20160118151637/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php(164): in /home/osbitpow/deploy/releases/20160118151637/src/Web/Service/TemplateService.php on line 28