Symfony Exception

RuntimeError

HTTP 500 Internal Server Error

Neither the property "description" nor one of the methods "description()", "getdescription()", "isdescription()", "hasdescription()" or "__call()" exist and have public access in class "App\Entity\Testimony" in pub/main/depoimentos.html.twig at line 58.

Exception

Twig\Error\ RuntimeError

Show exception properties
Twig\Error\RuntimeError {#1739
  -lineno: 58
  -rawMessage: "Neither the property "description" nor one of the methods "description()", "getdescription()", "isdescription()", "hasdescription()" or "__call()" exist and have public access in class "App\Entity\Testimony"."
  -source: Twig\Source {#1470
    -code: """
      {% extends 'pub/base.html.twig' %}\n
      \n
      {% block title %}Depoimentos · Colégio Conexão{% endblock %}\n
      \n
      {% block body %}\n
      <main>\n
          {# Hero #}\n
          <section class="bg-[#080a28] py-24 relative overflow-hidden text-white">\n
              <div class="absolute top-0 right-0 -mr-40 -mt-20 w-[600px] h-[600px] bg-secondary/10 rounded-full blur-3xl pointer-events-none"></div>\n
              <div class="mx-auto max-w-7xl px-6 lg:px-8 relative z-10">\n
                  <div class="flex items-center gap-4 mb-6" data-aos="fade-right">\n
                      <div class="flex gap-1.5">\n
                          <div class="w-1.5 h-1.5 bg-secondary"></div>\n
                          <div class="w-1.5 h-1.5 bg-secondary/50"></div>\n
                      </div>\n
                      <span class="text-white/60 text-xs font-bold tracking-[0.25em] uppercase">Nossa Comunidade</span>\n
                  </div>\n
                  <h1 class="text-4xl font-black tracking-tight sm:text-6xl uppercase font-headline" data-aos="fade-right">\n
                      O que dizem <span class="text-secondary">nossos alunos</span>\n
                  </h1>\n
                  <p class="mt-6 text-xl text-white/60 max-w-2xl font-medium" data-aos="fade-up">\n
                      Histórias reais de quem viveu o Conexão e realizou seus sonhos.\n
                  </p>\n
              </div>\n
          </section>\n
      \n
          {# Grid de Depoimentos #}\n
          <section class="py-24 bg-white">\n
              <div class="mx-auto max-w-7xl px-6 lg:px-8">\n
                  {% if testimonies|length > 0 %}\n
                      <div class="grid sm:grid-cols-2 lg:grid-cols-3 gap-10">\n
                          {% for testimony in testimonies %}\n
                          <article class="bg-slate-50 rounded-[24px] p-8 border border-slate-100 flex flex-col gap-6 shadow hover:shadow-xl transition-all duration-300" data-aos="fade-up" data-aos-delay="{{ loop.index0 * 80 }}">\n
                              {# Avatar + Nome #}\n
                              <div class="flex items-center gap-4">\n
                                  <div class="w-14 h-14 rounded-full overflow-hidden bg-slate-200 shrink-0 border-2 border-secondary/30">\n
                                      {% if testimony.photo %}\n
                                          <img src="{{ vich_uploader_asset(testimony, 'photoFile') | replace({'news/news/': 'news/', 'album/album/': 'album/', 'aprovados/aprovados/': 'aprovados/', 'depoimentos/depoimentos/': 'depoimentos/', 'banners/banners/': 'banners/', 'staff/staff/': 'staff/'}) }}"\n
                                               alt="{{ testimony.name }}" class="w-full h-full object-cover">\n
                                      {% else %}\n
                                          <div class="w-full h-full flex items-center justify-center">\n
                                              <span class="material-symbols-outlined text-slate-400">person</span>\n
                                          </div>\n
                                      {% endif %}\n
                                  </div>\n
                                  <div>\n
                                      <h3 class="font-black text-primary text-sm uppercase">{{ testimony.name }}</h3>\n
                                      {% if testimony.date %}\n
                                          <p class="text-xs text-slate-400">{{ testimony.date|date('Y') }}</p>\n
                                      {% endif %}\n
                                  </div>\n
                              </div>\n
      \n
                              {# Aspas decorativas #}\n
                              <div class="relative">\n
                                  <span class="text-6xl text-secondary/20 font-serif leading-none absolute -top-3 -left-1">&ldquo;</span>\n
                                  <p class="text-slate-600 text-sm leading-relaxed pl-5">\n
                                      {{ testimony.description }}\n
                                  </p>\n
                              </div>\n
      \n
                              {# Estrelas #}\n
                              <div class="flex gap-1 mt-auto">\n
                                  {% for i in 1..5 %}\n
                                      <span class="material-symbols-outlined text-secondary text-[18px]" style="font-variation-settings: 'FILL' 1">star</span>\n
                                  {% endfor %}\n
                              </div>\n
                          </article>\n
                          {% endfor %}\n
                      </div>\n
                  {% else %}\n
                      <div class="py-32 text-center bg-slate-50 rounded-2xl border border-dashed border-slate-200">\n
                          <span class="material-symbols-outlined text-6xl text-slate-300 mb-6 block">chat_bubble</span>\n
                          <h3 class="text-xl font-bold text-primary">Nenhum depoimento encontrado</h3>\n
                          <p class="text-slate-400 mt-2">Estamos coletando histórias. Volte em breve!</p>\n
                      </div>\n
                  {% endif %}\n
              </div>\n
          </section>\n
      </main>\n
      {% endblock %}\n
      """
    -name: "pub/main/depoimentos.html.twig"
    -path: "/home/runcloud/webapps/app-conexao/templates/pub/main/depoimentos.html.twig"
  }
  -phpFile: "/home/runcloud/webapps/app-conexao/vendor/twig/twig/src/Extension/CoreExtension.php"
  -phpLine: 1893
}
Attempted to call undefined function "highlight_file" from namespace "Symfony\Component\ErrorHandler\ErrorRenderer". (500 Internal Server Error)

Symfony Exception

Attempted to call undefined function "highlight_file" from namespace "Symfony\Component\ErrorHandler\ErrorRenderer".

Exception

Symfony\Component\ErrorHandler\Error\ UndefinedFunctionError

Attempted to call undefined function "highlight_file" from namespace "Symfony\Component\ErrorHandler\ErrorRenderer". (500 Internal Server Error)

Symfony Exception

Attempted to call undefined function "highlight_file" from namespace "Symfony\Component\ErrorHandler\ErrorRenderer".

Exception

Symfony\Component\ErrorHandler\Error\ UndefinedFunctionError


Fatal error: Uncaught Symfony\Component\ErrorHandler\Error\UndefinedFunctionError: Attempted to call undefined function "highlight_file" from namespace "Symfony\Component\ErrorHandler\ErrorRenderer". in /home/runcloud/webapps/app-conexao/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php:257 Stack trace: #0 /home/runcloud/webapps/app-conexao/vendor/symfony/error-handler/Resources/views/trace.html.php(36): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->fileExcerpt() #1 /home/runcloud/webapps/app-conexao/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php(337): include('...') #2 /home/runcloud/webapps/app-conexao/vendor/symfony/error-handler/Resources/views/traces.html.php(48): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include() #3 /home/runcloud/webapps/app-conexao/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php(337): include('...') #4 /home/runcloud/webapps/app-conexao/vendor/symfony/error-handler/Resources/views/exception.html.php(54): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include() #5 /home/runcloud/webapps/app-conexao/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php(337): include('...') #6 /home/runcloud/webapps/app-conexao/vendor/symfony/error-handler/Resources/views/exception_full.html.php(35): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include() #7 /home/runcloud/webapps/app-conexao/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php(337): include('...') #8 /home/runcloud/webapps/app-conexao/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php(140): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include() #9 /home/runcloud/webapps/app-conexao/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php(72): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->renderException() #10 /home/runcloud/webapps/app-conexao/vendor/symfony/error-handler/ErrorHandler.php(634): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render() #11 /home/runcloud/webapps/app-conexao/vendor/symfony/error-handler/ErrorHandler.php(517): Symfony\Component\ErrorHandler\ErrorHandler->renderException() #12 /home/runcloud/webapps/app-conexao/vendor/symfony/error-handler/ErrorHandler.php(535): Symfony\Component\ErrorHandler\ErrorHandler->handleException() #13 [internal function]: Symfony\Component\ErrorHandler\ErrorHandler->handleException() #14 {main} thrown in /home/runcloud/webapps/app-conexao/vendor/symfony/error-handler/ErrorRenderer/HtmlErrorRenderer.php on line 257