Error 500 Internal Server Error

GET https://imobiliare.n46.net/ro/creaza-cont-pentru-companie

Exceptions

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.

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 }} &nbsp; <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
}
  1. <div class="dropdown-menu dropdown-menu-end" aria-labelledby="locales">
  2. {% for locale in locales() %}
  3. {% if loop.last %}
  4. <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>
  5. {% else %}
  6. <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>
  7. <div class="dropdown-divider"></div>
  8. {% endif %}
  9. {% endfor %}
  10. </div>
  11. </li>
  1. yield " <a class=\"dropdown-item";
  2. 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))) {
  3. yield " active";
  4. }
  5. yield "\" href=\"";
  6. 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);
  7. yield "\">";
  8. 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);
  9. yield "</a>
  10. <div class=\"dropdown-divider\"></div>
  11. ";
in vendor/twig/twig/src/Template.php -> block_header (line 446)
  1. throw new \LogicException('A block must be a method on a \Twig\Template instance.');
  2. }
  3. if (null !== $template) {
  4. try {
  5. yield from $template->$block($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($template->getSourceContext());
  9. }
  1. 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);
  2. yield "\" height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"></iframe></noscript>
  3. <!-- End Google Tag Manager (noscript) -->
  4. ";
  5. // line 62
  6. yield from $this->unwrap()->yieldBlock('header', $context, $blocks);
  7. // line 122
  8. yield "
  9. ";
  10. // line 123
  11. yield from $this->unwrap()->yieldBlock('main', $context, $blocks);
in vendor/twig/twig/src/Template.php -> doDisplay (line 402)
  1. {
  2. $context += $this->env->getGlobals();
  3. $blocks = array_merge($this->blocks, $blocks);
  4. try {
  5. yield from $this->doDisplay($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($this->getSourceContext());
  9. }
  1. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "company/company_create_account.html.twig"));
  3. $this->parent = $this->load("base_user.html.twig", 1);
  4. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  5. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  6. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in vendor/twig/twig/src/Template.php -> doDisplay (line 402)
  1. {
  2. $context += $this->env->getGlobals();
  3. $blocks = array_merge($this->blocks, $blocks);
  4. try {
  5. yield from $this->doDisplay($context, $blocks);
  6. } catch (Error $e) {
  7. if (!$e->getSourceContext()) {
  8. $e->setSourceContext($this->getSourceContext());
  9. }
  1. return $this->blocks;
  2. }
  3. public function display(array $context, array $blocks = []): void
  4. {
  5. foreach ($this->yield($context, $blocks) as $data) {
  6. echo $data;
  7. }
  8. }
  9. public function render(array $context): string
in vendor/twig/twig/src/Template.php -> display (line 373)
  1. ob_start();
  2. } else {
  3. ob_start(function () { return ''; });
  4. }
  5. try {
  6. $this->display($context);
  7. } catch (\Throwable $e) {
  8. while (ob_get_level() > $level) {
  9. ob_end_clean();
  10. }
  1. yield from $this->template->yieldBlock($name, $context);
  2. }
  3. public function render(array $context = []): string
  4. {
  5. return $this->template->render($context);
  6. }
  7. /**
  8. * @return void
  9. */
  1. * @throws SyntaxError When an error occurred during compilation
  2. * @throws RuntimeError When an error occurred during rendering
  3. */
  4. public function render($name, array $context = []): string
  5. {
  6. return $this->load($name)->render($context);
  7. }
  8. /**
  9. * Displays a template.
  10. *
  1. if (null !== $block) {
  2. return $this->container->get('twig')->load($view)->renderBlock($block, $parameters);
  3. }
  4. return $this->container->get('twig')->render($view, $parameters);
  5. }
  6. private function doRender(string $view, ?string $block, array $parameters, ?Response $response, string $method): Response
  7. {
  8. $content = $this->doRenderView($view, $block, $parameters, $method);
  1. return $this->container->get('twig')->render($view, $parameters);
  2. }
  3. private function doRender(string $view, ?string $block, array $parameters, ?Response $response, string $method): Response
  4. {
  5. $content = $this->doRenderView($view, $block, $parameters, $method);
  6. $response ??= new Response();
  7. if (200 === $response->getStatusCode()) {
  8. foreach ($parameters as $v) {
  9. if ($v instanceof FormInterface && $v->isSubmitted() && !$v->isValid()) {
  1. * If an invalid form is found in the list of parameters, a 422 status code is returned.
  2. * Forms found in parameters are auto-cast to form views.
  3. */
  4. protected function render(string $view, array $parameters = [], ?Response $response = null): Response
  5. {
  6. return $this->doRender($view, null, $parameters, $response, __FUNCTION__);
  7. }
  8. /**
  9. * Renders a block in a view.
  10. *
AbstractController->render() in src/Controller/Company/CompanyAccountCreationController.php (line 125)
  1. // $this->addFlash('success', 'flash.success.account_created');
  2. return $this->redirectToRoute('confirm_company_registration');
  3. }
  4. return $this->render('company/company_create_account.html.twig', ['form' => $form]);
  5. }
  6. #[Route('/create-company-account/confirm', methods: ['GET'], name: 'confirm_company_registration')]
  7. public function confirmRegistration(): Response
  8. {
  1. $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2. $controller = $event->getController();
  3. $arguments = $event->getArguments();
  4. // call controller
  5. $response = $controller(...$arguments);
  6. // view
  7. if (!$response instanceof Response) {
  8. $event = new ViewEvent($this, $request, $type, $response, $event);
  9. $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  1. if (!$this->handlingHttpCache) {
  2. $this->resetServices = true;
  3. }
  4. try {
  5. return $this->getHttpKernel()->handle($request, $type, $catch);
  6. } finally {
  7. --$this->requestStackSize;
  8. }
  9. }
  1. ) {
  2. }
  3. public function run(): int
  4. {
  5. $response = $this->kernel->handle($this->request);
  6. if (Kernel::VERSION_ID >= 60400) {
  7. $response->send(false);
  8. if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 32)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/var/www/vhosts/1007/domains/n46.net/imobiliare/vendor/autoload_runtime.php') in public_html/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5. return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Logs

Level Channel Message
INFO 07:05:26 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "87b957"
    },
    "request_uri": "https://imobiliare.n46.net/_profiler/87b957",
    "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)