Exceptions
Exception
Twig\Error\ RuntimeError
in
templates/items/index.html.twig
(line 37)
<div>
<img src="{{ rutaimg }}{{ item.filename }}.png" alt="" style="max-width: 128px"/>
</div>
</div>
<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 %}
</div>
</div>
{% endfor %}
{% endif %}
in
var/cache/dev/twig/9d/9d38b3e5f0c1f33d743facaf8fa0fd59259514288f939613c9a10e960e20f7e4.php
twig_get_attribute
(line 245)
// line 37
echo twig_escape_filter($this->env, (isset($context["typeName"]) || array_key_exists("typeName", $context) ? $context["typeName"] : (function () { throw new RuntimeError('Variable "typeName" does not exist.', 37, $this->source); })()), "html", null, true);
echo "[";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "id", [], "any", false, false, false, 37), "html", null, true);
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 "\">";
echo twig_escape_filter($this->env, twig_title_string_filter($this->env, $this->extensions['App\Twig\TwigExtension']->translateItem(twig_get_attribute($this->env, $this->source, $context["item"], "internalid", [], "any", false, false, false, 37), (isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 37, $this->source); })()))), "html", null, true);
echo "</span><br>
";
// line 38
in
vendor/twig/twig/src/Template.php
->
block_principal
(line 173)
in
var/cache/dev/twig/9d/9d38b3e5f0c1f33d743facaf8fa0fd59259514288f939613c9a10e960e20f7e4.php
->
displayBlock
(line 163)
in
vendor/twig/twig/src/Template.php
->
block_content
(line 173)
in
var/cache/dev/twig/9d/9d38b3e5f0c1f33d743facaf8fa0fd59259514288f939613c9a10e960e20f7e4.php
->
displayBlock
(line 103)
in
vendor/twig/twig/src/Template.php
->
block_body
(line 173)
in
var/cache/dev/twig/ce/ce24f332617995fc957b446a07d62089b10a3d967a32a5c032a6b0069a58485d.php
->
displayBlock
(line 85)
in
vendor/twig/twig/src/Template.php
->
doDisplay
(line 396)
in
vendor/twig/twig/src/Template.php
->
displayWithErrorHandling
(line 369)
in
var/cache/dev/twig/9d/9d38b3e5f0c1f33d743facaf8fa0fd59259514288f939613c9a10e960e20f7e4.php
->
display
(line 54)
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "items/index.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "items/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
in
vendor/twig/twig/src/Template.php
->
doDisplay
(line 396)
in
vendor/twig/twig/src/Template.php
->
displayWithErrorHandling
(line 369)
in
vendor/twig/twig/src/Template.php
->
display
(line 381)
in
vendor/twig/twig/src/TemplateWrapper.php
->
render
(line 40)
public function render(array $context = []): string
{
// using func_get_args() allows to not expose the blocks argument
// as it should only be used by internal code
return $this->template->render($context, \func_get_args()[1] ?? []);
}
public function display(array $context = [])
{
// using func_get_args() allows to not expose the blocks argument
in
vendor/twig/twig/src/Environment.php
->
render
(line 277)
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
render
(line 249)
in
vendor/symfony/framework-bundle/Controller/AbstractController.php
->
renderView
(line 257)
in
vendor/symfony/http-kernel/HttpKernel.php
->
itemsIndex
(line 157)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 79)
public function handle(Request $request, int $type = HttpKernelInterface::MASTER_REQUEST, bool $catch = true)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 191)
Stack Trace
RuntimeError |
---|
Twig\Error\RuntimeError: 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". at templates/items/index.html.twig:37 at twig_get_attribute() (var/cache/dev/twig/9d/9d38b3e5f0c1f33d743facaf8fa0fd59259514288f939613c9a10e960e20f7e4.php:245) at __TwigTemplate_ea3366528d2f7eed49bf716ca54d3dd5fb57c3e5924e9b857c9d40464bc58a97->block_principal() (vendor/twig/twig/src/Template.php:173) at Twig\Template->displayBlock() (var/cache/dev/twig/9d/9d38b3e5f0c1f33d743facaf8fa0fd59259514288f939613c9a10e960e20f7e4.php:163) at __TwigTemplate_ea3366528d2f7eed49bf716ca54d3dd5fb57c3e5924e9b857c9d40464bc58a97->block_content() (vendor/twig/twig/src/Template.php:173) at Twig\Template->displayBlock() (var/cache/dev/twig/9d/9d38b3e5f0c1f33d743facaf8fa0fd59259514288f939613c9a10e960e20f7e4.php:103) at __TwigTemplate_ea3366528d2f7eed49bf716ca54d3dd5fb57c3e5924e9b857c9d40464bc58a97->block_body() (vendor/twig/twig/src/Template.php:173) at Twig\Template->displayBlock() (var/cache/dev/twig/ce/ce24f332617995fc957b446a07d62089b10a3d967a32a5c032a6b0069a58485d.php:85) at __TwigTemplate_b315508e1847501420bb7ea0bb1522dff6357b5b3a3597340755e3243035c57e->doDisplay() (vendor/twig/twig/src/Template.php:396) at Twig\Template->displayWithErrorHandling() (vendor/twig/twig/src/Template.php:369) at Twig\Template->display() (var/cache/dev/twig/9d/9d38b3e5f0c1f33d743facaf8fa0fd59259514288f939613c9a10e960e20f7e4.php:54) at __TwigTemplate_ea3366528d2f7eed49bf716ca54d3dd5fb57c3e5924e9b857c9d40464bc58a97->doDisplay() (vendor/twig/twig/src/Template.php:396) at Twig\Template->displayWithErrorHandling() (vendor/twig/twig/src/Template.php:369) at Twig\Template->display() (vendor/twig/twig/src/Template.php:381) at Twig\Template->render() (vendor/twig/twig/src/TemplateWrapper.php:40) at Twig\TemplateWrapper->render() (vendor/twig/twig/src/Environment.php:277) at Twig\Environment->render() (vendor/symfony/framework-bundle/Controller/AbstractController.php:249) at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->renderView() (vendor/symfony/framework-bundle/Controller/AbstractController.php:257) at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render() (src/Controller/ItemsController.php:76) at App\Controller\ItemsController->itemsIndex() (vendor/symfony/http-kernel/HttpKernel.php:157) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:79) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:191) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:25) |