exception |
Twig\Error\RuntimeError {#1422
-lineno: 37
-name: "items/index.html.twig"
-rawMessage: "Neither the property "internalid" nor one of the methods "internalid()", "getinternalid()"/"isinternalid()"/"hasinternalid()" or "__call()" exist and have public access in class "App\Entity\DataVillagers"."
-sourcePath: "/home/www/www/acnh/templates/items/index.html.twig"
-sourceCode: """
{% extends 'base.html.twig' %}\n
\n
{% block title %}Items!{% endblock %}\n
\n
{% block body %}\n
\n
\n
{% block header %}\n
{% set menu = 'foo' %}\n
{{ parent() }}\n
{% endblock %}\n
\n
\n
{% block content %}\n
<div id="main" role="main" class="container-fluid">\n
<!-- contained-->\n
<div class="contained">\n
{% block aside %}\n
{% include 'aside.html.twig' %}\n
{% endblock %}\n
{% block principal %}\n
<div id="page-content">\n
<div class="container-fluid clearfix">\n
<div id="contenedor"> <!-- contenedor flex -->\n
{% if items is defined %}\n
{% for item in items %}\n
<div class="item">\n
<div class="contenido">\n
<div>\n
<img src="{{ asset('build/iconos/Sombra Wishlist.png') }}">\n
</div>\n
<div>\n
<img src="{{ rutaimg }}{{ item.filename }}.png" alt="" style="max-width: 128px"/>\n
</div>\n
</div>\n
<div class="details">\n
<span><input type="checkbox" name="{{ typeName }}[{{ item.id }}]" value="{{ item.internalid }}">{{ translateItem(item.internalid, type)|title }}</span><br>\n
{% if item.buy is defined %}<img src="{{ asset('build/iconos/baya.png') }}">{{ item.buy }} {% endif %}\n
</div>\n
</div>\n
{% endfor %}\n
{% endif %}\n
<div class="clearfix"></div>\n
\n
\n
</div>\n
{% if maxPages is defined %}\n
<div class="paginate">\n
{% if maxPages > 1 %}\n
\n
{%if thisPage > 1 %}\n
\n
{% if category is defined %}\n
<a href="{{ path('items_type_category', {type: typeName, currentPage: thisPage-1 < 1 ? 1 : thisPage-1, category: category}) }}"><i class="fas fa-angle-left"></i></a>\n
\n
{% else %}\n
<a href="{{ path('items_type', {type: typeName, currentPage: thisPage-1 < 1 ? 1 : thisPage-1}) }}"><i class="fas fa-angle-left"></i></a>\n
{% endif %}\n
{% endif %}\n
\n
{# Render each page number #}\n
{% for i in 1..maxPages %}\n
\n
{% if i==thisPage %}\n
<a class="currentpage">{{ i }}</a>\n
{% else %}\n
{% if (maxPages>10 and i < thisPage+6 and i > thisPage-6) or (i < 9 and thisPage<9) %}\n
{% if category is defined %}\n
<a href="{{ path('items_type_category', { type: typeName, currentPage: i, category: category}) }}">{{ i }}</a>\n
{% else %}\n
<a href="{{ path('items_type', {type: typeName, currentPage: i}) }}">{{ i }}</a>\n
{% endif %}\n
{% else %}\n
\n
{% endif %}\n
{% endif %}\n
\n
{% endfor %}\n
\n
{# `»` arrow #}\n
{%if thisPage < maxPages %}\n
\n
{% if category is defined %}\n
<a href="{{ path('items_type_category', {type: typeName, currentPage: thisPage+1 <= maxPages ? thisPage+1 : thisPage, category: category}) }}"><i class="fas fa-angle-right"></i></a>\n
{% else %}\n
<a href="{{ path('items_type', { type: typeName, currentPage: thisPage+1 <= maxPages ? thisPage+1 : thisPage}) }}"><i class="fas fa-angle-right"></i></a>\n
{% endif %}\n
{% endif %}\n
\n
{% endif %}\n
{% endif %}\n
</div>\n
</div>\n
</div>\n
{% endblock %}\n
</div>\n
</div>\n
{% endblock %}\n
\n
\n
{% block javascripts %}\n
{{ encore_entry_script_tags('app') }}\n
{% endblock %}\n
{% endblock %}\n
"""
#message: "Neither the property "internalid" nor one of the methods "internalid()", "getinternalid()"/"isinternalid()"/"hasinternalid()" or "__call()" exist and have public access in class "App\Entity\DataVillagers"."
#code: 0
#file: "/home/www/www/acnh/templates/items/index.html.twig"
#line: 37
trace: {
/home/www/www/acnh/templates/items/index.html.twig:37 {
twig_get_attribute(Environment $env, Source $source, $object, $item, array $arguments = [], $type = 'any', $isDefinedTest = false, $ignoreStrictCheck = false, $sandboxed = false, int $lineno = -1) …
› <div class="details">
› <span><input type="checkbox" name="{{ typeName }}[{{ item.id }}]" value="{{ item.internalid }}">{{ translateItem(item.internalid, type)|title }}</span><br>
› {% if item.buy is defined %}<img src="{{ asset('build/iconos/baya.png') }}">{{ item.buy }} {% endif %}
}
/home/www/www/acnh/var/cache/dev/twig/9d/9d38b3e5f0c1f33d743facaf8fa0fd59259514288f939613c9a10e960e20f7e4.php:245 {
__TwigTemplate_ea3366528d2f7eed49bf716ca54d3dd5fb57c3e5924e9b857c9d40464bc58a97->block_principal($context, array $blocks = []) …
› echo "]\" value=\"";
› echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "internalid", [], "any", false, false, false, 37), "html", null, true);
› echo "\">";
}
/home/www/www/acnh/vendor/twig/twig/src/Template.php:173 {
Twig\Template->displayBlock($name, array $context, array $blocks = [], $useBlocks = true, self $templateContext = null) …
› try {
› $template->$block($context, $blocks);
› } catch (Error $e) {
}
/home/www/www/acnh/var/cache/dev/twig/9d/9d38b3e5f0c1f33d743facaf8fa0fd59259514288f939613c9a10e960e20f7e4.php:163 {
__TwigTemplate_ea3366528d2f7eed49bf716ca54d3dd5fb57c3e5924e9b857c9d40464bc58a97->block_content($context, array $blocks = []) …
› echo " ";
› $this->displayBlock('principal', $context, $blocks);
› // line 96
}
/home/www/www/acnh/vendor/twig/twig/src/Template.php:173 {
Twig\Template->displayBlock($name, array $context, array $blocks = [], $useBlocks = true, self $templateContext = null) …
› try {
› $template->$block($context, $blocks);
› } catch (Error $e) {
}
/home/www/www/acnh/templates/items/index.html.twig:14 {
__TwigTemplate_ea3366528d2f7eed49bf716ca54d3dd5fb57c3e5924e9b857c9d40464bc58a97->block_body($context, array $blocks = []) …
›
› {% block content %}
› <div id="main" role="main" class="container-fluid">
}
/home/www/www/acnh/vendor/twig/twig/src/Template.php:173 {
Twig\Template->displayBlock($name, array $context, array $blocks = [], $useBlocks = true, self $templateContext = null) …
› try {
› $template->$block($context, $blocks);
› } catch (Error $e) {
}
/home/www/www/acnh/templates/base.html.twig:24 {
__TwigTemplate_b315508e1847501420bb7ea0bb1522dff6357b5b3a3597340755e3243035c57e->doDisplay(array $context, array $blocks = []) …
› <body>
› {% block body %}
› {% block header %}
}
/home/www/www/acnh/vendor/twig/twig/src/Template.php:396 {
Twig\Template->displayWithErrorHandling(array $context, array $blocks = []) …
› try {
› $this->doDisplay($context, $blocks);
› } catch (Error $e) {
}
/home/www/www/acnh/vendor/twig/twig/src/Template.php:369 {
Twig\Template->display(array $context, array $blocks = []) …
› {
› $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
› }
}
/home/www/www/acnh/var/cache/dev/twig/9d/9d38b3e5f0c1f33d743facaf8fa0fd59259514288f939613c9a10e960e20f7e4.php:54 {
__TwigTemplate_ea3366528d2f7eed49bf716ca54d3dd5fb57c3e5924e9b857c9d40464bc58a97->doDisplay(array $context, array $blocks = []) …
› $this->parent = $this->loadTemplate("base.html.twig", "items/index.html.twig", 1);
› $this->parent->display($context, array_merge($this->blocks, $blocks));
›
}
/home/www/www/acnh/vendor/twig/twig/src/Template.php:396 {
Twig\Template->displayWithErrorHandling(array $context, array $blocks = []) …
› try {
› $this->doDisplay($context, $blocks);
› } catch (Error $e) {
}
/home/www/www/acnh/vendor/twig/twig/src/Template.php:369 {
Twig\Template->display(array $context, array $blocks = []) …
› {
› $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
› }
}
/home/www/www/acnh/vendor/twig/twig/src/Template.php:381 {
Twig\Template->render(array $context) …
› try {
› $this->display($context);
› } catch (\Throwable $e) {
}
/home/www/www/acnh/vendor/twig/twig/src/TemplateWrapper.php:40 {
Twig\TemplateWrapper->render(array $context = []): string …
› // as it should only be used by internal code
› return $this->template->render($context, \func_get_args()[1] ?? []);
› }
}
/home/www/www/acnh/vendor/twig/twig/src/Environment.php:277 {
Twig\Environment->render($name, array $context = []): string …
› {
› return $this->load($name)->render($context);
› }
}
/home/www/www/acnh/vendor/symfony/framework-bundle/Controller/AbstractController.php:249 {
Symfony\Bundle\FrameworkBundle\Controller\AbstractController->renderView(string $view, array $parameters = []): string …
›
› return $this->container->get('twig')->render($view, $parameters);
› }
}
/home/www/www/acnh/vendor/symfony/framework-bundle/Controller/AbstractController.php:257 {
Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render(string $view, array $parameters = [], Response $response = null): Response …
› {
› $content = $this->renderView($view, $parameters);
›
}
/home/www/www/acnh/src/Controller/ItemsController.php:76 {
App\Controller\ItemsController->itemsIndex(Request $request, $type, $currentPage = 1) …
› 'rutaimg' => $name[2],
› 'type' => $type
›
}
/home/www/www/acnh/vendor/symfony/http-kernel/HttpKernel.php:157 {
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MASTER_REQUEST): Response …
› // call controller
› $response = $controller(...$arguments);
›
}
/home/www/www/acnh/vendor/symfony/http-kernel/HttpKernel.php:79 {
Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MASTER_REQUEST, bool $catch = true) …
› try {
› return $this->handleRaw($request, $type);
› } catch (\Exception $e) {
}
/home/www/www/acnh/vendor/symfony/http-kernel/Kernel.php:191 {
Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MASTER_REQUEST, bool $catch = true) …
› try {
› return $this->getHttpKernel()->handle($request, $type, $catch);
› } finally {
}
/home/www/www/acnh/public/index.php:25 {
› $request = Request::createFromGlobals();
› $response = $kernel->handle($request);
› $response->send();
}
}
} |