500 Internal Server Error

Undefined array key "template" (0)

#0 /var/www/html/sites/smartvatten/controllers/ItemController.php(314): CM\Exception\ErrorHandler->handleError()
#1 [internal function]: ItemController->viewTemplateItemForPermalink()
#2 /var/www/html/CM/Core/Dispatcher.php(148): call_user_func_array()
#3 /var/www/html/CM/Core/Dispatcher.php(128): CM\Core\Dispatcher->invokeMethod()
#4 /var/www/html/CM/Net/Router.php(114): CM\Core\Dispatcher->execute()
#5 /var/www/html/CM/Engine.php(315): CM\Net\Router->route()
#6 [internal function]: CM\Engine->_start()
#7 /var/www/html/CM/Core/Dispatcher.php(145): call_user_func_array()
#8 /var/www/html/CM/Core/Dispatcher.php(128): CM\Core\Dispatcher->invokeMethod()
#9 /var/www/html/CM/Core/Dispatcher.php(52): CM\Core\Dispatcher->execute()
#10 /var/www/html/CM/Engine.php(119): CM\Core\Dispatcher->run()
#11 /var/www/html/CM/CM.php(66): CM\Engine->__call()
#12 /var/www/html/sites/smartvatten/index.php(6): CM::__callStatic()
#13 {main}