• Alle auswählen
Notice: Undefined offset: 0 (500 Internal Server Error)

Symfony Exception

Notice: Undefined offset: 0

Exception

ErrorException

  1.                 ?>
  2.                 </div>
  3.                 <div class="groupcontentrightbottompic">
  4.             
  5.                     <?php 
  6.                     $html->getGroupHeadline($_GET$paginator,$categoriesList[0]['products_sort_order']);
  7.                     ?>
  8.                 
  9.                         
  10.                     <ul class="groupcontentrightbottompic">
include('/home2/www/mybestshirt/kamashop_v2.0/public/_templates/_default/groups.php') in src/Resources/views/legacy/skeleton.html.php (line 21)
  1.         include shop::getLegacyRenderFile('body_top.php');
  2.         include shop::getLegacyRenderFile('body_content_open.php');
  3.             include shop::getLegacyRenderFile($page);
  4.         include shop::getLegacyRenderFile('body_content_close.php');
  5.         include shop::getLegacyRenderFile('body_bottom.php');
  1.         if ($this->evalTemplate instanceof FileStorage) {
  2.             extract($this->evalParameters, \EXTR_SKIP);
  3.             $this->evalParameters null;
  4.             ob_start();
  5.             require $this->evalTemplate;
  6.             $this->evalTemplate null;
  7.             return ob_get_clean();
  8.         } elseif ($this->evalTemplate instanceof StringStorage) {
  1.         $this->parents[$key] = null;
  2.         // attach the global variables
  3.         $parameters array_replace($this->getGlobals(), $parameters);
  4.         // render
  5.         if (false === $content $this->evaluate($storage$parameters)) {
  6.             throw new \RuntimeException(sprintf('The template "%s" cannot be rendered.'$this->parser->parse($name)));
  7.         }
  8.         // decorator
  9.         if ($this->parents[$key]) {
  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 121)
  1.             'paginator' => $paginator,
  2.             'maincat_id' => $maincat_id
  3.         ];
  4.         return ($this->render(shop::getRenderFile('groups.php'), $tmpldata));
  5.     }
  6.     public function motive()
  7.     {
in vendor/symfony/http-kernel/HttpKernel.php -> show_category (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

ErrorException

ErrorException:
Notice: Undefined offset: 0

  at public/_templates/_default/groups.php:169
  at include('/home2/www/mybestshirt/kamashop_v2.0/public/_templates/_default/groups.php')
     (src/Resources/views/legacy/skeleton.html.php:21)
  at require('/home2/www/mybestshirt/kamashop_v2.0/src/Resources/views/legacy/skeleton.html.php')
     (vendor/symfony/templating/PhpEngine.php:147)
  at Symfony\Component\Templating\PhpEngine->evaluate()
     (vendor/symfony/templating/PhpEngine.php:76)
  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:121)
  at App\Controller\ShoppingController->show_category()
     (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)