Open gholami-mohammad opened 8 years ago
Can you provide more details, like a stack trace and possibly a pull-request to fix this. I don't have time at the moment to fix this myself.
Symfony
Search on Symfony website
Search on Symfony website
OK
Exception detected!
Variable "form" does not exist in UtabUserAdminUserBundle:Security:login.html.twig at line 40
500 Internal Server Error - Twig_Error_Runtime
Stack Trace
in app/cache/dev/classes.php at line 4946 -
if ($ignoreStrictCheck || !$this->env->isStrictVariables()) {
return;
}
throw new Twig_Error_Runtime(sprintf('Variable "%s" does not exist', $item), -1, $this->getTemplateName());
}
return $context[$item];
}
at Twig_Template ->getContext (array('last_username' => null, 'error' => null, 'csrf_token' => 'MCm4_LHZCnhP8Z8Hl3ym07iiM7wtPnNHLEuS6u5o0Yo', 'app' => object(AppVariable), 'utab_admin_security' => object(UserListener), 'delete_form' => object(BaseController), 'jdate' => object(JdfController), 'dynamic_form' => object(Listener)), 'form')
in app/cache/dev/twig/04/0472219d7310fe81b2a985fed43694a3f4d443cf8a13abdcd4bccdb09fc22f69.php at line 159 -
// line 40
echo " ";
echo $this->env->getExtension('form')->renderer->renderBlock((isset($context["form"]) ? $context["form"] : $this->getContext($context, "form")), 'form_start', array("attr" => array("class" => "form-signin"), "action" => $this->env->getExtension('routing')->getPath(($this->getAttribute($this->env->getExtension('rollerworks_multi_user')->getCurrentUser(), "getRoutePrefix", array(), "method") . "_security_check"))));
echo "
<label class=\"panel-login\">
at __TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d ->block_fos_user_content (array('last_username' => null, 'error' => null, 'csrf_token' => 'MCm4_LHZCnhP8Z8Hl3ym07iiM7wtPnNHLEuS6u5o0Yo', 'app' => object(AppVariable), 'utab_admin_security' => object(UserListener), 'delete_form' => object(BaseController), 'jdate' => object(JdfController), 'dynamic_form' => object(Listener)), array('title' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_stylesheets'), 'topJs' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_topJs'), 'innerHtml' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_innerHtml'), 'navbar' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_navbar'), 'sidebar' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_sidebar'), 'topbar' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_topbar'), 'body' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_body'), 'cHead' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_cHead'), 'cBody' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_cBody'), 'javascripts' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_javascripts'), 'js' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_js'), 'fos_user_content' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_fos_user_content')))
in app/cache/dev/classes.php at line 4821 -
throw new LogicException('A block must be a method on a Twig_Template instance.');
}
try {
$template->$block($context, $blocks);
} catch (Twig_Error $e) {
if (!$e->getTemplateFile()) {
$e->setTemplateFile($template->getTemplateName());
at Twig_Template ->displayBlock ('fos_user_content', array('last_username' => null, 'error' => null, 'csrf_token' => 'MCm4_LHZCnhP8Z8Hl3ym07iiM7wtPnNHLEuS6u5o0Yo', 'app' => object(AppVariable), 'utab_admin_security' => object(UserListener), 'delete_form' => object(BaseController), 'jdate' => object(JdfController), 'dynamic_form' => object(Listener)), array('title' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_stylesheets'), 'topJs' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_topJs'), 'innerHtml' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_innerHtml'), 'navbar' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_navbar'), 'sidebar' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_sidebar'), 'topbar' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_topbar'), 'body' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_body'), 'cHead' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_cHead'), 'cBody' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_cBody'), 'javascripts' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_javascripts'), 'js' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_js'), 'fos_user_content' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_fos_user_content')))
in app/cache/dev/twig/04/0472219d7310fe81b2a985fed43694a3f4d443cf8a13abdcd4bccdb09fc22f69.php at line 103 -
<div class=\"account-form\">
";
// line 39
$this->displayBlock('fos_user_content', $context, $blocks);
// line 79
echo "
</div>
at __TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d ->block_innerHtml (array('last_username' => null, 'error' => null, 'csrf_token' => 'MCm4_LHZCnhP8Z8Hl3ym07iiM7wtPnNHLEuS6u5o0Yo', 'app' => object(AppVariable), 'utab_admin_security' => object(UserListener), 'delete_form' => object(BaseController), 'jdate' => object(JdfController), 'dynamic_form' => object(Listener)), array('title' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_stylesheets'), 'topJs' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_topJs'), 'innerHtml' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_innerHtml'), 'navbar' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_navbar'), 'sidebar' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_sidebar'), 'topbar' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_topbar'), 'body' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_body'), 'cHead' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_cHead'), 'cBody' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_cBody'), 'javascripts' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_javascripts'), 'js' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_js'), 'fos_user_content' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_fos_user_content')))
in app/cache/dev/classes.php at line 4821 -
throw new LogicException('A block must be a method on a Twig_Template instance.');
}
try {
$template->$block($context, $blocks);
} catch (Twig_Error $e) {
if (!$e->getTemplateFile()) {
$e->setTemplateFile($template->getTemplateName());
at Twig_Template ->displayBlock ('innerHtml', array('last_username' => null, 'error' => null, 'csrf_token' => 'MCm4_LHZCnhP8Z8Hl3ym07iiM7wtPnNHLEuS6u5o0Yo', 'app' => object(AppVariable), 'utab_admin_security' => object(UserListener), 'delete_form' => object(BaseController), 'jdate' => object(JdfController), 'dynamic_form' => object(Listener)), array('title' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_stylesheets'), 'topJs' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_topJs'), 'innerHtml' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_innerHtml'), 'navbar' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_navbar'), 'sidebar' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_sidebar'), 'topbar' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_topbar'), 'body' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_body'), 'cHead' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_cHead'), 'cBody' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_cBody'), 'javascripts' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_javascripts'), 'js' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_js'), 'fos_user_content' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_fos_user_content')))
in app/cache/dev/twig/1d/1dc3bdd237e159cb2f8f78d9167300a104a098f09f7c17c9aeea1c4742a63c7a.php at line 61 +
at __TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976 ->doDisplay (array('last_username' => null, 'error' => null, 'csrf_token' => 'MCm4_LHZCnhP8Z8Hl3ym07iiM7wtPnNHLEuS6u5o0Yo', 'app' => object(AppVariable), 'utab_admin_security' => object(UserListener), 'delete_form' => object(BaseController), 'jdate' => object(JdfController), 'dynamic_form' => object(Listener)), array('title' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_stylesheets'), 'topJs' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_topJs'), 'innerHtml' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_innerHtml'), 'navbar' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_navbar'), 'sidebar' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_sidebar'), 'topbar' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_topbar'), 'body' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_body'), 'cHead' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_cHead'), 'cBody' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_cBody'), 'javascripts' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_javascripts'), 'js' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_js'), 'fos_user_content' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_fos_user_content')))
in app/cache/dev/classes.php at line 4925 +
at Twig_Template ->displayWithErrorHandling (array('last_username' => null, 'error' => null, 'csrf_token' => 'MCm4_LHZCnhP8Z8Hl3ym07iiM7wtPnNHLEuS6u5o0Yo', 'app' => object(AppVariable), 'utab_admin_security' => object(UserListener), 'delete_form' => object(BaseController), 'jdate' => object(JdfController), 'dynamic_form' => object(Listener)), array('title' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_stylesheets'), 'topJs' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_topJs'), 'innerHtml' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_innerHtml'), 'navbar' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_navbar'), 'sidebar' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_sidebar'), 'topbar' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_topbar'), 'body' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_body'), 'cHead' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_cHead'), 'cBody' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_cBody'), 'javascripts' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_javascripts'), 'js' => array(object(__TwigTemplate_33ca218eaa8194315ca25efc0d1b34fdf9def9bc9b852c6573cc4d725535e976), 'block_js'), 'fos_user_content' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_fos_user_content')))
in app/cache/dev/classes.php at line 4906 +
at Twig_Template ->display (array('last_username' => null, 'error' => null, 'csrf_token' => 'MCm4_LHZCnhP8Z8Hl3ym07iiM7wtPnNHLEuS6u5o0Yo', 'app' => object(AppVariable), 'utab_admin_security' => object(UserListener), 'delete_form' => object(BaseController), 'jdate' => object(JdfController), 'dynamic_form' => object(Listener)), array('stylesheets' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_stylesheets'), 'innerHtml' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_innerHtml'), 'fos_user_content' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_fos_user_content')))
in app/cache/dev/twig/04/0472219d7310fe81b2a985fed43694a3f4d443cf8a13abdcd4bccdb09fc22f69.php at line 29 +
at __TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d ->doDisplay (array('last_username' => null, 'error' => null, 'csrf_token' => 'MCm4_LHZCnhP8Z8Hl3ym07iiM7wtPnNHLEuS6u5o0Yo', 'app' => object(AppVariable), 'utab_admin_security' => object(UserListener), 'delete_form' => object(BaseController), 'jdate' => object(JdfController), 'dynamic_form' => object(Listener)), array('stylesheets' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_stylesheets'), 'innerHtml' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_innerHtml'), 'fos_user_content' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_fos_user_content')))
in app/cache/dev/classes.php at line 4925 +
at Twig_Template ->displayWithErrorHandling (array('last_username' => null, 'error' => null, 'csrf_token' => 'MCm4_LHZCnhP8Z8Hl3ym07iiM7wtPnNHLEuS6u5o0Yo', 'app' => object(AppVariable), 'utab_admin_security' => object(UserListener), 'delete_form' => object(BaseController), 'jdate' => object(JdfController), 'dynamic_form' => object(Listener)), array('stylesheets' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_stylesheets'), 'innerHtml' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_innerHtml'), 'fos_user_content' => array(object(__TwigTemplate_78137bbb3f078fe2de3861cc40137b0af49b13c1570d756520cfef6cdcd1f69d), 'block_fos_user_content')))
in app/cache/dev/classes.php at line 4906 +
at Twig_Template ->display (array('last_username' => null, 'error' => null, 'csrf_token' => 'MCm4_LHZCnhP8Z8Hl3ym07iiM7wtPnNHLEuS6u5o0Yo', 'app' => object(AppVariable), 'utab_admin_security' => object(UserListener), 'delete_form' => object(BaseController), 'jdate' => object(JdfController), 'dynamic_form' => object(Listener)), array())
in app/cache/dev/twig/69/69fdc9798def6d5da77f83a2c955c70ceaa2995d8f0ed41da1a929b129d56d41.php at line 17 +
at __TwigTemplate_251d02d0e6c24868eda76518eb893fb9b67b39e4d96825dd13012556be78890b ->doDisplay (array('last_username' => null, 'error' => null, 'csrf_token' => 'MCm4_LHZCnhP8Z8Hl3ym07iiM7wtPnNHLEuS6u5o0Yo', 'app' => object(AppVariable), 'utab_admin_security' => object(UserListener), 'delete_form' => object(BaseController), 'jdate' => object(JdfController), 'dynamic_form' => object(Listener)), array())
in app/cache/dev/classes.php at line 4925 +
at Twig_Template ->displayWithErrorHandling (array('last_username' => null, 'error' => null, 'csrf_token' => 'MCm4_LHZCnhP8Z8Hl3ym07iiM7wtPnNHLEuS6u5o0Yo', 'app' => object(AppVariable), 'utab_admin_security' => object(UserListener), 'delete_form' => object(BaseController), 'jdate' => object(JdfController), 'dynamic_form' => object(Listener)), array())
in app/cache/dev/classes.php at line 4906 +
at Twig_Template ->display (array('last_username' => null, 'error' => null, 'csrf_token' => 'MCm4_LHZCnhP8Z8Hl3ym07iiM7wtPnNHLEuS6u5o0Yo'))
in app/cache/dev/classes.php at line 4913 +
at Twig_Template ->render (array('last_username' => null, 'error' => null, 'csrf_token' => 'MCm4_LHZCnhP8Z8Hl3ym07iiM7wtPnNHLEuS6u5o0Yo'))
in vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php at line 50 +
at TwigEngine ->render ('FOSUserBundle:Security:login.html.twig', array('last_username' => null, 'error' => null, 'csrf_token' => 'MCm4_LHZCnhP8Z8Hl3ym07iiM7wtPnNHLEuS6u5o0Yo'))
in vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 72 -
public function render($name, array $parameters = array())
{
try {
return parent::render($name, $parameters);
} catch (\Twig_Error $e) {
if ($name instanceof TemplateReference) {
try {
at TwigEngine ->render ('FOSUserBundle:Security:login.html.twig', array('last_username' => null, 'error' => null, 'csrf_token' => 'MCm4_LHZCnhP8Z8Hl3ym07iiM7wtPnNHLEuS6u5o0Yo'))
in vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 97 -
$response = new Response();
}
$response->setContent($this->render($view, $parameters));
return $response;
}
at TwigEngine ->renderResponse ('FOSUserBundle:Security:login.html.twig', array('last_username' => null, 'error' => null, 'csrf_token' => 'MCm4_LHZCnhP8Z8Hl3ym07iiM7wtPnNHLEuS6u5o0Yo'), null)
in vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php at line 185 -
public function render($view, array $parameters = array(), Response $response = null)
{
if ($this->container->has('templating')) {
return $this->container->get('templating')->renderResponse($view, $parameters, $response);
}
if (!$this->container->has('twig')) {
at Controller ->render ('FOSUserBundle:Security:login.html.twig', array('last_username' => null, 'error' => null, 'csrf_token' => 'MCm4_LHZCnhP8Z8Hl3ym07iiM7wtPnNHLEuS6u5o0Yo'))
in vendor/friendsofsymfony/user-bundle/Controller/SecurityController.php at line 79 -
*/
protected function renderLogin(array $data)
{
return $this->render('FOSUserBundle:Security:login.html.twig', $data);
}
public function checkAction()
at SecurityController ->renderLogin (array('last_username' => null, 'error' => null, 'csrf_token' => 'MCm4_LHZCnhP8Z8Hl3ym07iiM7wtPnNHLEuS6u5o0Yo'))
in vendor/friendsofsymfony/user-bundle/Controller/SecurityController.php at line 66 -
'last_username' => $lastUsername,
'error' => $error,
'csrf_token' => $csrfToken,
));
}
/**
at SecurityController ->loginAction (object(Request))
at call_user_func_array (array(object(SecurityController), 'loginAction'), array(object(Request)))
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 139 -
$arguments = $this->resolver->getArguments($request, $controller);
// call controller
$response = call_user_func_array($controller, $arguments);
// view
if (!$response instanceof Response) {
at HttpKernel ->handleRaw (object(Request), '1')
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 62 -
$request->headers->set('X-Php-Ob-Level', ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if (false === $catch) {
$this->finishRequest($request, $type);
at HttpKernel ->handle (object(Request), '1', true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php at line 69 -
$this->container->set('request', $request, 'request');
try {
$response = parent::handle($request, $type, $catch);
} catch (\Exception $e) {
$this->container->set('request', null, 'request');
$this->container->leaveScope('request');
at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 185 -
$this->boot();
}
return $this->getHttpKernel()->handle($request, $type, $catch);
}
/**
at Kernel ->handle (object(Request))
in web/app_dev.php at line 30 -
$kernel = new AppKernel('dev', true);
$kernel->loadClassCache();
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
at require ('/var/www/ems2.8/web/app_dev.php')
in vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/router_dev.php at line 40 -
$_SERVER['SCRIPT_NAME'] = DIRECTORY_SEPARATOR.'app_dev.php';
$_SERVER['PHP_SELF'] = DIRECTORY_SEPARATOR.'app_dev.php';
require 'app_dev.php';
error_log(sprintf('%s:%d [%d]: %s', $_SERVER['REMOTE_ADDR'], $_SERVER['REMOTE_PORT'], http_response_code(), $_SERVER['REQUEST_URI']), 4);
Logs - 1 error
INFO - Matched route "utab_user_admin_user_security_login".
INFO - The "form.csrf_provider" service is deprecated since Symfony 2.4 and will be removed in 3.0. Use the "security.csrf.token_manager" service instead.
INFO - The Symfony\Component\Form\Extension\Csrf\CsrfProvider\CsrfProviderAdapter class is deprecated since version 2.4 and will be removed in version 3.0. Use the Symfony\Component\Security\Csrf\CsrfTokenManager class instead.
INFO - Populated the TokenStorage with an anonymous Token.
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DumpListener::configure".
DEBUG - Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\TranslatorListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Knp\Bundle\PaginatorBundle\Subscriber\SlidingPaginationSubscriber::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Rollerworks\Bundle\MultiUserBundle\EventListener\RequestListener::onKernelRequest".
DEBUG - Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".
INFO - The "security.context" service is deprecated since Symfony 2.6 and will be removed in 3.0.
INFO - The Symfony\Component\Security\Core\SecurityContext class is deprecated since version 2.6 and will be removed in 3.0. Use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage or Symfony\Component\Security\Core\Authorization\AuthorizationChecker instead.
CRITICAL - Uncaught PHP Exception Twig_Error_Runtime: "Variable "form" does not exist in "UtabUserAdminUserBundle:Security:login.html.twig" at line 40" at /var/www/ems2.8/app/cache/dev/classes.php line 4946
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DumpListener::configure".
DEBUG - Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\TranslatorListener::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Knp\Bundle\PaginatorBundle\Subscriber\SlidingPaginationSubscriber::onKernelRequest".
DEBUG - Notified event "kernel.request" to listener "Rollerworks\Bundle\MultiUserBundle\EventListener\RequestListener::onKernelRequest".
DEBUG - Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelController".
DEBUG - Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".
Stack Trace (Plain Text) +
500 @ utab_user_admin_user_security_login
392 ms
14.2 MB
5
anon.
0 ms
Console
2.8.0
There never was a "form" variable in the Security form, are you using a custom controller?
Can you provide a simple Symfony application which reproduces this error, that would help tremendously with debugging this.
I am really confused! I don't use custom controller and I am use this twig in more than 10 projects and works correctlly. there is my twig file:
{% extends "::student.html.twig"%}
{% trans_default_domain 'FOSUserBundle' %}
{% block innerHtml %}
<body class="rtl account separate-inputs" data-page="login">
<div class="container" id="login-block">
<div class="row">
<div class="col-sm-6 col-md-4 col-md-offset-4">
<div class="account-wall">
<i class="user-img icons-faces-users-03"></i>
{% block fos_user_content %}
{{form_start(form,{"attr":{'class':"form-signin"},'action': path(rollerworks_multi_user_user().getRoutePrefix() ~ "_security_check") } )}}
<label class="panel-login">
<div class="login_result">
{% if error %}
<div class="text-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
</div>
</label>
<div class="append-icon">
{# <label for="username">{{ 'security.login.username'|trans }}</label>#}
<input type="text" id="username" name="_username" value="{{ last_username }}" required="required" class="form-control form-white username" /><i class="icon-user"></i>
</div>
<div class="append-icon m-b-20">
{# <label for="password">{{ 'security.login.password'|trans }}</label>#}
<input type="password" id="password" name="_password" required="required" class="form-control form-white password"/>
</div>
<div class="form-group">
<label for="captcha">
{{form_widget(form.captcha,{'attr':{'class':'form-control ltr text-left'} })}}
<span class="text-danger">{{form_errors(form.captcha)}}</span>
</label>
</div>
<div class="form-group">
<button type="submit" id="_submit" name="_submit" class="btn btn-lg btn-danger btn-block ladda-button" data-style="expand-left">{{ 'security.login.submit'|trans }}</button>
</div>
<input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
{{form_end(form)}}
{% endblock fos_user_content %}
</div>
</div>
</div>
<p class="account-copyright">
<span>Copyright © {{ "now"|date("Y")}} </span><span>Saniyeh.ir</span>.<span>All rights reserved.</span>
</p>
</div>
{% block js %}
{{parent()}}
{% endblock%}
</body>
{% endblock%}
I will try to fix this problem.
when I update my symfony to 2.8 version all login forms have an error: variable form could not be found!