http://tienda.sharksgames.es/items/villagers?p=items%2Fvillagers

Exceptions

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".

Exception

Twig\Error\ RuntimeError

  1.                                                 <div>
  2.                                                     <img src="{{ rutaimg }}{{ item.filename }}.png"  alt="" style="max-width: 128px"/>
  3.                                                 </div>
  4.                                             </div>
  5.                                             <div class="details">
  6.                                                 <span><input type="checkbox" name="{{ typeName }}[{{ item.id }}]" value="{{ item.internalid }}">{{ translateItem(item.internalid, type)|title }}</span><br>
  7.                                                 {% if item.buy is defined %}<img src="{{ asset('build/iconos/baya.png') }}">{{ item.buy }} {% endif %}
  8.                                             </div>
  9.                                         </div>
  10.                                     {% endfor %}
  11.                                 {% endif %}
  1.                 // line 37
  2.                 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"nulltrue);
  3.                 echo "[";
  4.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "id", [], "any"falsefalsefalse37), "html"nulltrue);
  5.                 echo "]\" value=\"";
  6.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "internalid", [], "any"falsefalsefalse37), "html"nulltrue);
  7.                 echo "\">";
  8.                 echo twig_escape_filter($this->envtwig_title_string_filter($this->env$this->extensions['App\Twig\TwigExtension']->translateItem(twig_get_attribute($this->env$this->source$context["item"], "internalid", [], "any"falsefalsefalse37), (isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'37$this->source); })()))), "html"nulltrue);
  9.                 echo "</span><br>
  10.                                                 ";
  11.                 // line 38
in vendor/twig/twig/src/Template.php -> block_principal (line 173)
  1.             throw new \LogicException('A block must be a method on a \Twig\Template instance.');
  2.         }
  3.         if (null !== $template) {
  4.             try {
  5.                 $template->$block($context$blocks);
  6.             } catch (Error $e) {
  7.                 if (!$e->getSourceContext()) {
  8.                     $e->setSourceContext($template->getSourceContext());
  9.                 }
  1.                 ";
  2.         // line 18
  3.         $this->displayBlock('aside'$context$blocks);
  4.         // line 21
  5.         echo "                ";
  6.         $this->displayBlock('principal'$context$blocks);
  7.         // line 96
  8.         echo "            </div>
  9.         </div>
  10.     ";
  11.         
in vendor/twig/twig/src/Template.php -> block_content (line 173)
  1.             throw new \LogicException('A block must be a method on a \Twig\Template instance.');
  2.         }
  3.         if (null !== $template) {
  4.             try {
  5.                 $template->$block($context$blocks);
  6.             } catch (Error $e) {
  7.                 if (!$e->getSourceContext()) {
  8.                     $e->setSourceContext($template->getSourceContext());
  9.                 }
  1.         // line 12
  2.         echo "
  3.     ";
  4.         // line 14
  5.         $this->displayBlock('content'$context$blocks);
  6.         // line 99
  7.         echo "
  8.     ";
  9.         // line 101
in vendor/twig/twig/src/Template.php -> block_body (line 173)
  1.             throw new \LogicException('A block must be a method on a \Twig\Template instance.');
  2.         }
  3.         if (null !== $template) {
  4.             try {
  5.                 $template->$block($context$blocks);
  6.             } catch (Error $e) {
  7.                 if (!$e->getSourceContext()) {
  8.                     $e->setSourceContext($template->getSourceContext());
  9.                 }
  1.         // line 22
  2.         echo "</head>
  3. <body>
  4. ";
  5.         // line 24
  6.         $this->displayBlock('body'$context$blocks);
  7.         // line 67
  8.         echo "<hr>
  9. ";
  10.         // line 68
  11.         $this->displayBlock('footer'$context$blocks);
in vendor/twig/twig/src/Template.php -> doDisplay (line 396)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 369)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""items/index.html.twig"));
  3.         $this->parent $this->loadTemplate("base.html.twig""items/index.html.twig"1);
  4.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  5.         
  6.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  7.         
  8.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
in vendor/twig/twig/src/Template.php -> doDisplay (line 396)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 369)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
in vendor/twig/twig/src/Template.php -> display (line 381)
  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.     public function render(array $context = []): string
  2.     {
  3.         // using func_get_args() allows to not expose the blocks argument
  4.         // as it should only be used by internal code
  5.         return $this->template->render($context, \func_get_args()[1] ?? []);
  6.     }
  7.     public function display(array $context = [])
  8.     {
  9.         // using func_get_args() allows to not expose the blocks argument
  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.     {
  2.         if (!$this->container->has('twig')) {
  3.             throw new \LogicException('You can not use the "renderView" method if the Twig Bundle is not available. Try running "composer require symfony/twig-bundle".');
  4.         }
  5.         return $this->container->get('twig')->render($view$parameters);
  6.     }
  7.     /**
  8.      * Renders a view.
  9.      */
  1.     /**
  2.      * Renders a view.
  3.      */
  4.     protected function render(string $view, array $parameters = [], Response $response null): Response
  5.     {
  6.         $content $this->renderView($view$parameters);
  7.         if (null === $response) {
  8.             $response = new Response();
  9.         }
AbstractController->render() in src/Controller/ItemsController.php (line 76)
  1.             'items'     => $itemsResultado,
  2.             'maxPages'  => $maxPages,
  3.             'thisPage'  => $currentPage,
  4.             'all_items' => $itemsQueryCompleta,
  5.             'rutaimg'   => $name[2],
  6.             'type'      => $type
  7.         ]);
  8.     }
  9.     /**
  1.         $this->dispatcher->dispatch($eventKernelEvents::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);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     public function handle(Request $requestint $type HttpKernelInterface::MASTER_REQUESTbool $catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle() in public/index.php (line 25)
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

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)