Symfony Exception

InvalidArgumentException

HTTP 500 Internal Server Error

The template ":current:_default/products_info_not_found.html.php" does not exist.

Exception

InvalidArgumentException

  1.         }
  2.         $storage $this->loader->load($template);
  3.         if (false === $storage) {
  4.             throw new \InvalidArgumentException(sprintf('The template "%s" does not exist.'$template));
  5.         }
  6.         return $this->cache[$key] = $storage;
  7.     }
  8. }
  1.      *
  2.      * @throws \InvalidArgumentException if the template does not exist
  3.      */
  4.     public function render($name, array $parameters = [])
  5.     {
  6.         $storage $this->load($name);
  7.         $key hash('sha256'serialize($storage));
  8.         $this->current $key;
  9.         $this->parents[$key] = null;
  10.         // attach the global variables
  1.      */
  2.     public function render($name, array $parameters = [])
  3.     {
  4.         $e $this->stopwatch->start(sprintf('template.php (%s)'$name), 'template');
  5.         $ret parent::render($name$parameters);
  6.         $e->stop();
  7.         return $ret;
  8.     }
  1.     protected function render(string $view, array $parameters = [], Response $response null): Response
  2.     {
  3.         if ($this->container->has('templating') && $this->container->get('templating')->supports($view)) {
  4.             @trigger_error('Using the "templating" service is deprecated since version 4.3 and will be removed in 5.0; use Twig instead.', \E_USER_DEPRECATED);
  5.             $content $this->container->get('templating')->render($view$parameters);
  6.         } elseif ($this->container->has('twig')) {
  7.             $content $this->container->get('twig')->render($view$parameters);
  8.         } else {
  9.             throw new \LogicException('You can not use the "render" method if the Templating Component or the Twig Bundle are not available. Try running "composer require symfony/twig-bundle".');
  10.         }
AbstractController->render() in src/Controller/ShoppingController.php (line 248)
  1.             // Artikel nicht gefunden
  2.             $tmpldata = [
  3.                 'page' => 'products_info_not_found.php'
  4.             ];
  5.             return ($this->render(shop::getRenderFile($tmpldata['page']), $tmpldata));
  6.         }
  7.         $products_id = (int)$_GET['products_id'];
ShoppingController->show_product() in src/Controller/ShoppingController.php (line 212)
  1.             $pid str_replace('.html'''$i[count($i) - 1]);
  2.             $_GET['products_id'] = $pid;
  3.         }
  4.         return $this->show_product();
  5.     }
  6.     public function show_product()
  7.     {
in vendor/symfony/http-kernel/HttpKernel.php -> show_product_html (line 158)
  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 $request$type HttpKernelInterface::MASTER_REQUEST$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. }
  2. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  3. // $kernel = new Kernel('prod', false);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);
  8. function endsWith($haystack$needle)

Logs

No log messages

Stack Trace

InvalidArgumentException

InvalidArgumentException:
The template ":current:_default/products_info_not_found.html.php" does not exist.

  at vendor/symfony/templating/PhpEngine.php:515
  at Symfony\Component\Templating\PhpEngine->load()
     (vendor/symfony/templating/PhpEngine.php:68)
  at Symfony\Component\Templating\PhpEngine->render()
     (vendor/symfony/framework-bundle/Templating/TimedPhpEngine.php:46)
  at Symfony\Bundle\FrameworkBundle\Templating\TimedPhpEngine->render()
     (vendor/symfony/framework-bundle/Controller/ControllerTrait.php:233)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render()
     (src/Controller/ShoppingController.php:248)
  at App\Controller\ShoppingController->show_product()
     (src/Controller/ShoppingController.php:212)
  at App\Controller\ShoppingController->show_product_html()
     (vendor/symfony/http-kernel/HttpKernel.php:158)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:80)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:25)