JackMcGrath / slms

0 stars 0 forks source link

[MEDIUM] 500 Internal Server Error - Twig_Error_Runtime #78

Closed weavora closed 11 years ago

weavora commented 11 years ago

Steps:

Result:


Item "files" for "" does not exist in /var/www/zerebral/src/Zerebral/FrontendBundle/Resources/views/Assignment/view.html.twig at line 76
500 Internal Server Error - Twig_Error_Runtime

Stack Trace
in kernel.root_dir/cache/stage/classes.php at line 9473   
            if ($ignoreStrictCheck || !$this->env->isStrictVariables()) {
                return null;
            }
            throw new Twig_Error_Runtime(sprintf('Item "%s" for "%s" does not exist', $item, is_array($object) ? 'Array' : $object), -1, $this->getTemplateName());
        }
        $class = get_class($object);
        // object property
at Twig_Template ->getAttribute (null, 'files') 
in kernel.root_dir/cache/stage/twig/48/ce/6ed45eebb074fae0cd8b242b0722.php at line 195    
at __TwigTemplate_48ce6ed45eebb074fae0cd8b242b0722 ->block_content (array('course' => object(Course), 'feedCommentForm' => object(FormView), 'assignment' => object(Assignment), 'user' => object(Student), 'target' => 'assignments', 'solutionForm' => object(FormView), 'studentAssignment' => null, 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'app' => object(GlobalVariables), 'flashMessages' => object(__TwigTemplate_ca61c168830188dd38cf6f1eca0b9e86), 'mainPartials' => object(__TwigTemplate_8d7140302fa34324975084c07e8404f7), 'feedPartials' => object(__TwigTemplate_1ba34221a46a817ae3a4b794fc83e20f)), array()) 
at call_user_func (array(object(__TwigTemplate_48ce6ed45eebb074fae0cd8b242b0722), 'block_content'), array('course' => object(Course), 'feedCommentForm' => object(FormView), 'assignment' => object(Assignment), 'user' => object(Student), 'target' => 'assignments', 'solutionForm' => object(FormView), 'studentAssignment' => null, 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'app' => object(GlobalVariables), 'flashMessages' => object(__TwigTemplate_ca61c168830188dd38cf6f1eca0b9e86), 'mainPartials' => object(__TwigTemplate_8d7140302fa34324975084c07e8404f7), 'feedPartials' => object(__TwigTemplate_1ba34221a46a817ae3a4b794fc83e20f)), array()) 
in kernel.root_dir/cache/stage/classes.php at line 9252    
at Twig_Template ->displayBlock ('content', array('course' => object(Course), 'feedCommentForm' => object(FormView), 'assignment' => object(Assignment), 'user' => object(Student), 'target' => 'assignments', 'solutionForm' => object(FormView), 'studentAssignment' => null, 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'app' => object(GlobalVariables), 'flashMessages' => object(__TwigTemplate_ca61c168830188dd38cf6f1eca0b9e86), 'mainPartials' => object(__TwigTemplate_8d7140302fa34324975084c07e8404f7), 'feedPartials' => object(__TwigTemplate_1ba34221a46a817ae3a4b794fc83e20f)), array('content' => array(object(__TwigTemplate_48ce6ed45eebb074fae0cd8b242b0722), 'block_content'))) 
in kernel.root_dir/cache/stage/twig/be/c2/3840be1a16fc8b63df967cb08189.php at line 288    
at __TwigTemplate_bec23840be1a16fc8b63df967cb08189 ->doDisplay (array('course' => object(Course), 'feedCommentForm' => object(FormView), 'assignment' => object(Assignment), 'user' => object(Student), 'target' => 'assignments', 'solutionForm' => object(FormView), 'studentAssignment' => null, 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'app' => object(GlobalVariables), 'flashMessages' => object(__TwigTemplate_ca61c168830188dd38cf6f1eca0b9e86), 'mainPartials' => object(__TwigTemplate_8d7140302fa34324975084c07e8404f7), 'feedPartials' => object(__TwigTemplate_1ba34221a46a817ae3a4b794fc83e20f)), array('content' => array(object(__TwigTemplate_48ce6ed45eebb074fae0cd8b242b0722), 'block_content'))) 
in kernel.root_dir/cache/stage/classes.php at line 9371    
at Twig_Template ->displayWithErrorHandling (array('course' => object(Course), 'feedCommentForm' => object(FormView), 'assignment' => object(Assignment), 'user' => object(Student), 'target' => 'assignments', 'solutionForm' => object(FormView), 'studentAssignment' => null, 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'app' => object(GlobalVariables), 'flashMessages' => object(__TwigTemplate_ca61c168830188dd38cf6f1eca0b9e86), 'mainPartials' => object(__TwigTemplate_8d7140302fa34324975084c07e8404f7), 'feedPartials' => object(__TwigTemplate_1ba34221a46a817ae3a4b794fc83e20f)), array('content' => array(object(__TwigTemplate_48ce6ed45eebb074fae0cd8b242b0722), 'block_content'))) 
in kernel.root_dir/cache/stage/classes.php at line 9349    
at Twig_Template ->display (array('course' => object(Course), 'feedCommentForm' => object(FormView), 'assignment' => object(Assignment), 'user' => object(Student), 'target' => 'assignments', 'solutionForm' => object(FormView), 'studentAssignment' => null, 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'app' => object(GlobalVariables), 'flashMessages' => object(__TwigTemplate_ca61c168830188dd38cf6f1eca0b9e86), 'mainPartials' => object(__TwigTemplate_8d7140302fa34324975084c07e8404f7), 'feedPartials' => object(__TwigTemplate_1ba34221a46a817ae3a4b794fc83e20f)), array('content' => array(object(__TwigTemplate_48ce6ed45eebb074fae0cd8b242b0722), 'block_content'))) 
in kernel.root_dir/cache/stage/twig/48/ce/6ed45eebb074fae0cd8b242b0722.php at line 30    
at __TwigTemplate_48ce6ed45eebb074fae0cd8b242b0722 ->doDisplay (array('course' => object(Course), 'feedCommentForm' => object(FormView), 'assignment' => object(Assignment), 'user' => object(Student), 'target' => 'assignments', 'solutionForm' => object(FormView), 'studentAssignment' => null, 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'app' => object(GlobalVariables)), array()) 
in kernel.root_dir/cache/stage/classes.php at line 9371    
at Twig_Template ->displayWithErrorHandling (array('course' => object(Course), 'feedCommentForm' => object(FormView), 'assignment' => object(Assignment), 'user' => object(Student), 'target' => 'assignments', 'solutionForm' => object(FormView), 'studentAssignment' => null, 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => true), 'app' => object(GlobalVariables)), array()) 
in kernel.root_dir/cache/stage/classes.php at line 9349    
at Twig_Template ->display (array('course' => object(Course), 'feedCommentForm' => object(FormView), 'assignment' => object(Assignment), 'user' => object(Student), 'target' => 'assignments', 'solutionForm' => object(FormView), 'studentAssignment' => null)) 
in kernel.root_dir/cache/stage/classes.php at line 9359    
at Twig_Template ->render (array('course' => object(Course), 'feedCommentForm' => object(FormView), 'assignment' => object(Assignment), 'user' => object(Student), 'target' => 'assignments', 'solutionForm' => object(FormView), 'studentAssignment' => null)) 
in /var/www/zerebral/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php at line 53    
at TwigEngine ->render (object(TemplateReference), array('course' => object(Course), 'feedCommentForm' => object(FormView), 'assignment' => object(Assignment), 'user' => object(Student), 'target' => 'assignments', 'solutionForm' => object(FormView), 'studentAssignment' => null)) 
in /var/www/zerebral/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 78    
at TwigEngine ->render (object(TemplateReference), array('course' => object(Course), 'feedCommentForm' => object(FormView), 'assignment' => object(Assignment), 'user' => object(Student), 'target' => 'assignments', 'solutionForm' => object(FormView), 'studentAssignment' => null)) 
in /var/www/zerebral/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Debug/TimedTwigEngine.php at line 52    
at TimedTwigEngine ->render (object(TemplateReference), array('course' => object(Course), 'feedCommentForm' => object(FormView), 'assignment' => object(Assignment), 'user' => object(Student), 'target' => 'assignments', 'solutionForm' => object(FormView), 'studentAssignment' => null)) 
in /var/www/zerebral/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 107    
at TwigEngine ->renderResponse (object(TemplateReference), array('course' => object(Course), 'feedCommentForm' => object(FormView), 'assignment' => object(Assignment), 'user' => object(Student), 'target' => 'assignments', 'solutionForm' => object(FormView), 'studentAssignment' => null)) 
in /var/www/zerebral/vendor/sensio/framework-extra-bundle/Sensio/Bundle/FrameworkExtraBundle/EventListener/TemplateListener.php at line 116    
at TemplateListener ->onKernelView (object(GetResponseForControllerResultEvent)) 
at call_user_func (array(object(TemplateListener), 'onKernelView'), object(GetResponseForControllerResultEvent)) 
in /var/www/zerebral/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Debug/ContainerAwareTraceableEventDispatcher.php at line 139    
at ContainerAwareTraceableEventDispatcher ->doDispatch (array(array(object(TemplateListener), 'onKernelView')), 'kernel.view', object(GetResponseForControllerResultEvent)) 
in kernel.root_dir/cache/stage/classes.php at line 4854    
at EventDispatcher ->dispatch ('kernel.view', object(GetResponseForControllerResultEvent)) 
in kernel.root_dir/cache/stage/classes.php at line 5072    
at ContainerAwareEventDispatcher ->dispatch ('kernel.view', object(GetResponseForControllerResultEvent)) 
in /var/www/zerebral/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Debug/ContainerAwareTraceableEventDispatcher.php at line 78    
at ContainerAwareTraceableEventDispatcher ->dispatch ('kernel.view', object(GetResponseForControllerResultEvent)) 
in kernel.root_dir/bootstrap.php.cache at line 1430    
at HttpKernel ->handleRaw (object(Request), '1') 
in kernel.root_dir/bootstrap.php.cache at line 1390    
at HttpKernel ->handle (object(Request), '1', true) 
in kernel.root_dir/bootstrap.php.cache at line 1566    
at HttpKernel ->handle (object(Request), '1', true) 
in kernel.root_dir/bootstrap.php.cache at line 617    
at Kernel ->handle (object(Request)) 
in /var/www/zerebral/web/app_stage.php at line 22    
staeron commented 11 years ago

Fixed