Exceptions
Exception
Twig\Error\ RuntimeError
Show exception properties
Twig\Error\RuntimeError {#1704 -lineno: 25 -rawMessage: "Neither the property "get" nor one of the methods "get()", "getget()", "isget()", "hasget()" or "__call()" exist and have public access in class "Symfony\Component\HttpFoundation\Request"." -source: Twig\Source {#1641 -code: """ {% extends 'base_user.html.twig' %}\n \n {% block title %}{{ 'title.page_company_create_account'|trans }}{% endblock %}\n {% block description %}{{ 'description.page_company_create_account'|trans({'%domain_name%': domain_name}) }}{% endblock %}\n \n {% block body_id 'company_create_account' %}\n \n {% block header %}\n <header>\n <nav class="navbar navbar-expand-md navbar-dark fixed-top bg-primary">\n <div class="container-xxl">\n <h6><a href="/" class="navbar-brand">{{ domain_name }}</a> - <span class="navbar-brand">Company area</span></h6>\n <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">\n <span class="navbar-toggler-icon"></span>\n </button>\n <div class="collapse navbar-collapse" id="navbarResponsive">\n <ul class="navbar-nav ms-md-auto">\n <li class="nav-item dropdown">\n <a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" aria-haspopup="true" aria-expanded="false" id="locales"><i class="fa fa-globe"></i> <span class="caret"></span></a>\n <div class="dropdown-menu dropdown-menu-end" aria-labelledby="locales">\n {% for locale in locales() %}\n {% if loop.last %}\n <a class="dropdown-item{% if app.request.locale == locale.code %} active{% endif %}" href="{{ path(app.request.attributes.get('_route', 'homepage'), app.request.get('_route_params', [])|merge({_locale: locale.code}|merge(app.request.query.all))) }}">{{ locale.name|capitalize }}</a>\n {% else %}\n <a class="dropdown-item{% if app.request.locale == locale.code %} active{% endif %}" href="{{ path(app.request.attributes.get('_route', 'homepage'), app.request.get('_route_params', [])|merge({_locale: locale.code}|merge(app.request.query.all))) }}">{{ locale.name|capitalize }}</a>\n <div class="dropdown-divider"></div>\n {% endif %}\n {% endfor %}\n </div>\n </li>\n </ul>\n </div>\n </div>\n </nav>\n </header>\n {% endblock %}\n \n {% block body %}\n <main>\n <div class="container pt-5 mt-5" style="max-width: 460px;">\n {{ include('default/_flash_messages.html.twig') }}\n {{ form_start(form, {'action': path('create_company_account'), 'method': 'POST'}) }}\n <fieldset>\n <legend><i class="fa fa-user" aria-hidden="true"></i> {{ 'legend.create_a_company_account'|trans }}</legend>\n <div class="form-floating mb-3">\n {{ 'body.already_have_an_account'|trans }} <a href="{{ path('company_security_login') }}">{{ 'title.login'|trans }}</a>\n </div>\n {# Render any global form error (e.g. when a constraint on a public getter method failed) #}\n {{ form_errors(form) }}\n \n {% if form.name.vars.errors|length > 0 %}\n <div class="form-floating mb-3 has-danger">\n {{ form_widget(form.name, {'attr': {'autofocus': true}}) }}\n {{ form_label(form.name, 'label.company_name') }}\n {{ form_errors(form.name) }}\n </div>\n {% else %}\n <div class="form-floating mb-3">\n {{ form_widget(form.name) }}\n {{ form_label(form.name, 'label.company_name') }}\n </div>\n {% endif %}\n \n {% if form.businessType.vars.errors|length > 0 %}\n <div class="form-floating mb-3 has-danger">\n {{ form_widget(form.businessType) }}\n {{ form_label(form.businessType, 'label.business_type') }}\n {{ form_errors(form.businessType) }}\n {{ form_help(form.businessType) }}\n </div>\n {% else %}\n <div class="form-floating mb-3">\n {{ form_widget(form.businessType) }}\n {{ form_label(form.businessType, 'label.business_type') }}\n {{ form_help(form.businessType) }}\n </div>\n {% endif %}\n \n {% if form.nin.vars.errors|length > 0 %}\n <div class="form-floating mb-3 has-danger">\n {{ form_widget(form.nin, {'attr': {'autofocus': true, 'onblur': 'validateNin()'}}) }}\n {{ form_label(form.nin, 'label.national_identification_number') }}\n {{ form_help(form.nin) }}\n {{ form_errors(form.nin) }}\n </div>\n {% else %}\n <div class="form-floating mb-3">\n {{ form_widget(form.nin, {'attr': {'onblur': 'validateNin()'}}) }}\n {{ form_label(form.nin, 'label.national_identification_number') }}\n {{ form_help(form.nin) }}\n </div>\n {% endif %}\n \n <div class="row g-0">\n <div class="col-md pe-2">\n {% if form.firstName.vars.errors|length > 0 %}\n <div class="form-floating mb-3 has-danger">\n {{ form_widget(form.firstName, {'attr': {'autofocus': true}}) }}\n {{ form_label(form.firstName, 'label.first_name') }}\n {{ form_errors(form.firstName) }}\n </div>\n {% else %}\n <div class="form-floating mb-3">\n {{ form_widget(form.firstName) }}\n {{ form_label(form.firstName, 'label.first_name') }}\n </div>\n {% endif %}\n </div>\n <div class="col-md ps-2">\n {% if form.lastName.vars.errors|length > 0 %}\n <div class="form-floating mb-3 has-danger">\n {{ form_widget(form.lastName, {'attr': {'autofocus': true}}) }}\n {{ form_label(form.lastName, 'label.last_name') }}\n {{ form_errors(form.lastName) }}\n </div>\n {% else %}\n <div class="form-floating mb-3">\n {{ form_widget(form.lastName) }}\n {{ form_label(form.lastName, 'label.last_name') }}\n </div>\n {% endif %}\n </div>\n </div>\n \n {% if form.email.vars.errors|length > 0 %}\n <div class="form-floating mb-3 has-danger">\n {{ form_widget(form.email, {'attr': {'autofocus': true}}) }}\n {{ form_label(form.email, 'label.email') }}\n {{ form_errors(form.email) }}\n </div>\n {% else %}\n <div class="form-floating mb-3">\n {{ form_widget(form.email) }}\n {{ form_label(form.email, 'label.email') }}\n </div>\n {% endif %}\n \n {% if form.website.vars.errors|length > 0 %}\n <div class="form-floating mb-3 has-danger">\n {{ form_widget(form.website, {'attr': {'autofocus': true}}) }}\n {{ form_label(form.website, 'label.website') }}\n {{ form_errors(form.website) }}\n </div>\n {% else %}\n <div class="form-floating mb-3">\n {{ form_widget(form.website) }}\n {{ form_label(form.website, 'label.website') }}\n </div>\n {% endif %}\n \n {% if form.facebookPage.vars.errors|length > 0 %}\n <div class="form-floating mb-3 has-danger">\n {{ form_widget(form.facebookPage, {'attr': {'autofocus': true}}) }}\n {{ form_label(form.facebookPage, 'label.facebook_page') }}\n {{ form_help(form.facebookPage) }}\n {{ form_errors(form.facebookPage) }}\n </div>\n {% else %}\n <div class="form-floating mb-3">\n {{ form_widget(form.facebookPage) }}\n {{ form_label(form.facebookPage, 'label.facebook_page') }}\n {{ form_help(form.facebookPage) }}\n </div>\n {% endif %}\n \n {% if form.instagramUsername.vars.errors|length > 0 %}\n <div class="form-floating mb-3 has-danger">\n {{ form_widget(form.instagramUsername, {'attr': {'autofocus': true}}) }}\n {{ form_label(form.instagramUsername, 'label.instagram_username') }}\n {{ form_help(form.instagramUsername) }}\n {{ form_errors(form.instagramUsername) }}\n </div>\n {% else %}\n <div class="form-floating mb-3">\n {{ form_widget(form.instagramUsername) }}\n {{ form_label(form.instagramUsername, 'label.instagram_username') }}\n {{ form_help(form.instagramUsername) }}\n </div>\n {% endif %}\n \n {% if form.youtubeHandle.vars.errors|length > 0 %}\n <div class="form-floating mb-3 has-danger">\n {{ form_widget(form.youtubeHandle, {'attr': {'autofocus': true}}) }}\n {{ form_label(form.youtubeHandle, 'label.youtube_handle') }}\n {{ form_help(form.youtubeHandle) }}\n {{ form_errors(form.youtubeHandle) }}\n </div>\n {% else %}\n <div class="form-floating mb-3">\n {{ form_widget(form.youtubeHandle) }}\n {{ form_label(form.youtubeHandle, 'label.youtube_handle') }}\n {{ form_help(form.youtubeHandle) }}\n </div>\n {% endif %}\n \n {% if form.cslug.vars.errors|length > 0 %}\n <div class="form-floating mb-3 has-danger">\n {{ form_widget(form.cslug, {'attr': {'autofocus': true}}) }}\n {{ form_label(form.cslug, 'label.slug') }}\n {{ form_help(form.cslug) }}\n {{ form_errors(form.cslug) }}\n </div>\n {% else %}\n <div class="form-floating mb-3">\n {{ form_widget(form.cslug) }}\n {{ form_label(form.cslug, 'label.slug') }}\n {{ form_help(form.cslug) }}\n </div>\n {% endif %}\n \n {% if form.district.vars.errors|length > 0 %}\n <div class="form-floating mb-3 has-danger">\n {{ form_widget(form.district) }}\n {{ form_label(form.district, 'label.district') }}\n {{ form_errors(form.district) }}\n </div>\n {% else %}\n <div class="form-floating mb-3">\n {{ form_widget(form.district) }}\n {{ form_label(form.district, 'label.district') }}\n </div>\n {% endif %}\n \n {% if form.locality.vars.errors|length > 0 %}\n <div class="form-floating mb-3 has-danger">\n {{ form_widget(form.locality) }}\n {{ form_label(form.locality, 'label.locality') }}\n {{ form_errors(form.locality) }}\n </div>\n {% else %}\n <div class="form-floating mb-3">\n {{ form_widget(form.locality) }}\n {{ form_label(form.locality, 'label.locality') }}\n </div>\n {% endif %}\n \n {% if form.street.vars.errors|length > 0 %}\n <div class="form-floating mb-3 has-danger">\n {{ form_widget(form.street, {'attr': {'autofocus': true}}) }}\n {{ form_label(form.street, 'label.street') }}\n {{ form_errors(form.street) }}\n </div>\n {% else %}\n <div class="form-floating mb-3">\n {{ form_widget(form.street) }}\n {{ form_label(form.street, 'label.street') }}\n </div>\n {% endif %}\n \n {% if form.postalCode.vars.errors|length > 0 %}\n <div class="input-group mb-3 has-danger">\n <div class="input-group">\n <span class="input-group-text">MD-</span>\n <div class="form-floating flex-grow-1">\n {{ form_widget(form.postalCode, {'attr': {'autofocus': true, 'placeholder': 'label.postal_code'}}) }}\n {{ form_label(form.postalCode, 'label.postal_code') }}\n </div>\n </div>\n <div>\n {{ form_errors(form.postalCode) }}\n </div>\n </div>\n {% else %}\n <div class="input-group mb-3">\n <div class="input-group">\n <span class="input-group-text">MD-</span>\n <div class="form-floating flex-grow-1">\n {{ form_widget(form.postalCode, {'attr': {'placeholder': 'label.postal_code'}}) }}\n {{ form_label(form.postalCode, 'label.postal_code') }}\n </div>\n </div>\n <div>\n {{ form_help(form.postalCode) }}\n </div>\n </div>\n {% endif %}\n \n {% if form.phoneNumber.vars.errors|length > 0 %}\n <div class="input-group mb-3 has-danger">\n <div class="input-group">\n <span class="input-group-text">+373</span>\n <div class="form-floating flex-grow-1">\n {{ form_widget(form.phoneNumber, {'attr': {'autofocus': true, 'placeholder': 'label.phone_number'}}) }}\n {{ form_label(form.phoneNumber, 'label.phone_number') }}\n </div>\n </div>\n <div>\n {{ form_errors(form.phoneNumber) }}\n </div>\n </div>\n {% else %}\n <div class="input-group mb-3">\n <div class="input-group">\n <span class="input-group-text">+373</span>\n <div class="form-floating flex-grow-1">\n {{ form_widget(form.phoneNumber, {'attr': {'placeholder': 'label.phone_number'}}) }}\n {{ form_label(form.phoneNumber, 'label.phone_number') }}\n </div>\n </div>\n <div>\n {{ form_help(form.phoneNumber) }}\n </div>\n </div>\n {% endif %}\n \n {% if form.username.vars.errors|length > 0 %}\n <div class="form-floating mb-3 has-danger">\n {{ form_widget(form.username, {'attr': {'autofocus': true}}) }}\n {{ form_label(form.username, 'label.username') }}\n {{ form_errors(form.username) }}\n </div>\n {% else %}\n <div class="form-floating mb-3">\n {{ form_widget(form.username) }}\n {{ form_label(form.username, 'label.username') }}\n </div>\n {% endif %}\n \n {% if form.password.first.vars.errors|length > 0 %}\n <div class="form-floating mb-3 has-danger">\n {{ form_widget(form.password.first, {'attr': {'autofocus': true}}) }}\n {{ form_label(form.password.first, 'label.create_password') }}\n {{ form_errors(form.password.first) }}\n </div>\n {% else %}\n <div class="form-floating mb-3">\n {{ form_widget(form.password.first) }}\n {{ form_label(form.password.first, 'label.create_password') }}\n </div>\n {% endif %}\n \n {% if form.password.second.vars.errors|length > 0 %}\n <div class="form-floating mb-3 has-danger">\n {{ form_widget(form.password.second, {'attr': {'autofocus': true}}) }}\n {{ form_label(form.password.second, 'label.confirm_password') }}\n {{ form_errors(form.password.second) }}\n </div>\n {% else %}\n <div class="form-floating mb-3">\n {{ form_widget(form.password.second) }}\n {{ form_label(form.password.second, 'label.confirm_password') }}\n </div>\n {% endif %}\n \n <div class="form-floating mb-3">\n {% set terms_of_service = path('terms_of_service') %}\n {% set privacy_policy = path('privacy_policy') %}\n <br>{{ 'body.agree_terms'|trans({'%domain_name%': domain_name, '%link_term%': terms_of_service, '%link_privacy%': privacy_policy})|raw }}\n </div>\n \n <div class="form-floating mb-3 d-flex justify-content-center">\n {{ form_widget(form.submit, {'attr': {'class': 'btn btn-primary'}}) }}\n </div>\n </fieldset>\n {{ form_end(form) }}\n </div>\n </main>\n {% endblock %}\n \n {% block javascripts_footer %}\n {{ parent() }}\n \n <script>\n function validateNin() {\n const pattern = /^(1\d{12})$/;\n const ninField = document.getElementById("create_company_nin");\n const ninFieldValue = ninField.value;\n const submitButton = document.getElementById("create_company_submit");\n \n // Clear previous alerts\n ninField.classList.remove("is-invalid");\n \n // Check if input matches the pattern\n if (!pattern.test(ninFieldValue)) {\n ninField.classList.add("is-invalid");\n submitButton.disabled = true;\n setTimeout(() => ninField.focus(), 0); // Ensures focus is set\n return;\n } else {\n const crc = ninFieldValue\n .substring(0, 12)\n .split('')\n .reduce(\n (acc, char, i) =>\n acc + Number(char) * (i % 3 === 0 ? 7 : i % 3 === 1 ? 3 : 1),\n 0,\n );\n \n if (Number(ninFieldValue[12]) === crc % 10) {\n ninField.classList.remove("is-invalid");\n submitButton.disabled = false;\n } else {\n ninField.classList.add("is-invalid");\n submitButton.disabled = true;\n setTimeout(() => ninField.focus(), 0); // Ensures focus is set\n }\n }\n }\n </script>\n \n <script>\n $(document).ready(function() {\n var $district = $('#create_company_district');\n // When district gets selected ...\n $district.change(function() {\n $.get('{{ path('show_localities_json', {id: 99}) }}'.replace(99,$district.val()), function(data) {\n var $select = $('#create_company_locality');\n $select.find('option:gt(0)').remove()\n $.each(data, function(key,item) {\n $select.append($('<option></option>').attr("value", item.id).text(item.name))\n });\n });\n });\n });\n </script>\n {% endblock %}\n """ -name: "company/company_create_account.html.twig" -path: "/var/www/vhosts/1007/domains/n46.net/imobiliare/templatesV1/company/company_create_account.html.twig" } -phpFile: "/var/www/vhosts/1007/domains/n46.net/imobiliare/vendor/twig/twig/src/Extension/CoreExtension.php" -phpLine: 1893 }
in
templatesV1/company/company_create_account.html.twig
(line 25)
<div class="dropdown-menu dropdown-menu-end" aria-labelledby="locales">{% for locale in locales() %}{% if loop.last %}<a class="dropdown-item{% if app.request.locale == locale.code %} active{% endif %}" href="{{ path(app.request.attributes.get('_route', 'homepage'), app.request.get('_route_params', [])|merge({_locale: locale.code}|merge(app.request.query.all))) }}">{{ locale.name|capitalize }}</a>{% else %}<a class="dropdown-item{% if app.request.locale == locale.code %} active{% endif %}" href="{{ path(app.request.attributes.get('_route', 'homepage'), app.request.get('_route_params', [])|merge({_locale: locale.code}|merge(app.request.query.all))) }}">{{ locale.name|capitalize }}</a><div class="dropdown-divider"></div>{% endif %}{% endfor %}</div></li>
in
var/cache/dev/twig/7e/7e9078046f53b649dc8f3146d744d0c7.php
::
getAttribute
(line 204)
yield " <a class=\"dropdown-item";if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 25, $this->source); })()), "request", [], "any", false, false, false, 25), "locale", [], "any", false, false, false, 25) == CoreExtension::getAttribute($this->env, $this->source, $context["locale"], "code", [], "any", false, false, false, 25))) {yield " active";}yield "\" href=\"";yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 25, $this->source); })()), "request", [], "any", false, false, false, 25), "attributes", [], "any", false, false, false, 25), "get", ["_route", "homepage"], "method", false, false, false, 25), Twig\Extension\CoreExtension::merge(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 25, $this->source); })()), "request", [], "any", false, false, false, 25), "get", ["_route_params", []], "method", false, false, false, 25), Twig\Extension\CoreExtension::merge(["_locale" => CoreExtension::getAttribute($this->env, $this->source, $context["locale"], "code", [], "any", false, false, false, 25)], CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 25, $this->source); })()), "request", [], "any", false, false, false, 25), "query", [], "any", false, false, false, 25), "all", [], "any", false, false, false, 25)))), "html", null, true);yield "\">";yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["locale"], "name", [], "any", false, false, false, 25)), "html", null, true);yield "</a><div class=\"dropdown-divider\"></div>";
in
vendor/twig/twig/src/Template.php
->
block_header
(line 446)
throw new \LogicException('A block must be a method on a \Twig\Template instance.');}if (null !== $template) {try {yield from $template->$block($context, $blocks);} catch (Error $e) {if (!$e->getSourceContext()) {$e->setSourceContext($template->getSourceContext());}
in
var/cache/dev/twig/d3/d3b1ce7f1e4429f8fd1fb04c36e08da0.php
->
yieldBlock
(line 152)
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["gtm"]) || array_key_exists("gtm", $context) ? $context["gtm"] : (function () { throw new RuntimeError('Variable "gtm" does not exist.', 60, $this->source); })()), "html", null, true);yield "\" height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript><!-- End Google Tag Manager (noscript) -->";// line 62yield from $this->unwrap()->yieldBlock('header', $context, $blocks);// line 122yield "";// line 123yield from $this->unwrap()->yieldBlock('main', $context, $blocks);
in
vendor/twig/twig/src/Template.php
->
doDisplay
(line 402)
{$context += $this->env->getGlobals();$blocks = array_merge($this->blocks, $blocks);try {yield from $this->doDisplay($context, $blocks);} catch (Error $e) {if (!$e->getSourceContext()) {$e->setSourceContext($this->getSourceContext());}
in
var/cache/dev/twig/7e/7e9078046f53b649dc8f3146d744d0c7.php
->
yield
(line 58)
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "company/company_create_account.html.twig"));$this->parent = $this->load("base_user.html.twig", 1);yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in
vendor/twig/twig/src/Template.php
->
doDisplay
(line 402)
{$context += $this->env->getGlobals();$blocks = array_merge($this->blocks, $blocks);try {yield from $this->doDisplay($context, $blocks);} catch (Error $e) {if (!$e->getSourceContext()) {$e->setSourceContext($this->getSourceContext());}
in
vendor/twig/twig/src/Template.php
->
yield
(line 358)
return $this->blocks;}public function display(array $context, array $blocks = []): void{foreach ($this->yield($context, $blocks) as $data) {echo $data;}}public function render(array $context): string
in
vendor/twig/twig/src/Template.php
->
display
(line 373)
ob_start();} else {ob_start(function () { return ''; });}try {$this->display($context);} catch (\Throwable $e) {while (ob_get_level() > $level) {ob_end_clean();}
in
vendor/twig/twig/src/TemplateWrapper.php
->
render
(line 51)
yield from $this->template->yieldBlock($name, $context);}public function render(array $context = []): string{return $this->template->render($context);}/*** @return void*/
in
vendor/twig/twig/src/Environment.php
->
render
(line 333)
* @throws SyntaxError When an error occurred during compilation* @throws RuntimeError When an error occurred during rendering*/public function render($name, array $context = []): string{return $this->load($name)->render($context);}/*** Displays a template.*
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
render
(line 462)
if (null !== $block) {return $this->container->get('twig')->load($view)->renderBlock($block, $parameters);}return $this->container->get('twig')->render($view, $parameters);}private function doRender(string $view, ?string $block, array $parameters, ?Response $response, string $method): Response{$content = $this->doRenderView($view, $block, $parameters, $method);
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
doRenderView
(line 467)
return $this->container->get('twig')->render($view, $parameters);}private function doRender(string $view, ?string $block, array $parameters, ?Response $response, string $method): Response{$content = $this->doRenderView($view, $block, $parameters, $method);$response ??= new Response();if (200 === $response->getStatusCode()) {foreach ($parameters as $v) {if ($v instanceof FormInterface && $v->isSubmitted() && !$v->isValid()) {
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
doRender
(line 279)
* If an invalid form is found in the list of parameters, a 422 status code is returned.* Forms found in parameters are auto-cast to form views.*/protected function render(string $view, array $parameters = [], ?Response $response = null): Response{return $this->doRender($view, null, $parameters, $response, __FUNCTION__);}/*** Renders a block in a view.*
AbstractController->render()
in
src/Controller/Company/CompanyAccountCreationController.php
(line 125)
// $this->addFlash('success', 'flash.success.account_created');return $this->redirectToRoute('confirm_company_registration');}return $this->render('company/company_create_account.html.twig', ['form' => $form]);}#[Route('/create-company-account/confirm', methods: ['GET'], name: 'confirm_company_registration')]public function confirmRegistration(): Response{
in
vendor/symfony/http-kernel/HttpKernel.php
->
create
(line 183)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response, $event);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 76)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);$response = null;try {return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {if ($e instanceof \Error && !$this->handleAllThrowables) {throw $e;}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 191)
if (!$this->handlingHttpCache) {$this->resetServices = true;}try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
) {}public function run(): int{$response = $this->kernel->handle($this->request);if (Kernel::VERSION_ID >= 60400) {$response->send(false);if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in
vendor/autoload_runtime.php
->
run
(line 32)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
require_once('/var/www/vhosts/1007/domains/n46.net/imobiliare/vendor/autoload_runtime.php')
in
public_html/index.php
(line 5)
<?phpuse App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) {return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 07:08:51 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "74cfbb"
},
"request_uri": "https://imobiliare.n46.net/_profiler/74cfbb?panel=exception&type=request",
"method": "GET"
}
|
Stack Trace
|
RuntimeError
|
|---|
Twig\Error\RuntimeError:
Neither the property "get" nor one of the methods "get()", "getget()", "isget()", "hasget()" or "__call()" exist and have public access in class "Symfony\Component\HttpFoundation\Request" in "company/company_create_account.html.twig" at line 25.
at templatesV1/company/company_create_account.html.twig:25
at Twig\Extension\CoreExtension::getAttribute()
(var/cache/dev/twig/7e/7e9078046f53b649dc8f3146d744d0c7.php:204)
at __TwigTemplate_078867384f969d5df3eb856c3b202f92->block_header()
(vendor/twig/twig/src/Template.php:446)
at Twig\Template->yieldBlock()
(var/cache/dev/twig/d3/d3b1ce7f1e4429f8fd1fb04c36e08da0.php:152)
at __TwigTemplate_a581a1253c7a39f0fe1c40ca1afb652e->doDisplay()
(vendor/twig/twig/src/Template.php:402)
at Twig\Template->yield()
(var/cache/dev/twig/7e/7e9078046f53b649dc8f3146d744d0c7.php:58)
at __TwigTemplate_078867384f969d5df3eb856c3b202f92->doDisplay()
(vendor/twig/twig/src/Template.php:402)
at Twig\Template->yield()
(vendor/twig/twig/src/Template.php:358)
at Twig\Template->display()
(vendor/twig/twig/src/Template.php:373)
at Twig\Template->render()
(vendor/twig/twig/src/TemplateWrapper.php:51)
at Twig\TemplateWrapper->render()
(vendor/twig/twig/src/Environment.php:333)
at Twig\Environment->render()
(vendor/symfony/framework-bundle/Controller/AbstractController.php:462)
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->doRenderView()
(vendor/symfony/framework-bundle/Controller/AbstractController.php:467)
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->doRender()
(vendor/symfony/framework-bundle/Controller/AbstractController.php:279)
at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render()
(src/Controller/Company/CompanyAccountCreationController.php:125)
at App\Controller\Company\CompanyAccountCreationController->create()
(vendor/symfony/http-kernel/HttpKernel.php:183)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:191)
at Symfony\Component\HttpKernel\Kernel->handle()
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:32)
at require_once('/var/www/vhosts/1007/domains/n46.net/imobiliare/vendor/autoload_runtime.php')
(public_html/index.php:5)
|