http://194.91.3.31/restaurant-search/

Exceptions

Call to a member function getChildren() on null

Exception

Symfony\Component\Debug\Exception\ FatalThrowableError

  1. <?php if(!empty($cms__items)): ?>
  2. <div class="results_inner">
  3.     <?php foreach($cms__items as $item_index => $cms__item) : ?>
  4.         <?php
  5.             $main_images $cms__item->getMainImage();
  6.             $thumbnail_images $main_images->getChildren();
  7.             $this_month_recommendation $cms__item->isThisMonthRecommendation();
  8.             $link $cms__item->getDetailLink(LOCATION);
  9.         ?>
  10.         <!-- おすすめ店舗の場合はrecommendクラスを付与 -->
  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.     }
TimedPhpEngine->render() in /usr/home/hbw1003dss5t/html/restaurant-search/index.php (line 110)
  1.                 <?php if($cms__pagination['total'] > 0): ?>
  2.                 <?php
  3.                 if (isset($view)) {
  4.                     echo $view->render('CustomBundle:Default:restaurant-search/list.html.php',
  5.                         [
  6.                             "cms__items" => isset($cms__items) ? $cms__items null,
  7.                         ]
  8.                     );
  9.                     echo $view->render('CustomBundle:Default:restaurant-search/pagination.html.php',
  10.                         [
  11.                             "cms__pagination" => isset($cms__pagination) ? $cms__pagination null,
require('/usr/home/hbw1003dss5t/html/restaurant-search/index.php') in vendor/symfony/symfony/src/Symfony/Component/Templating/PhpEngine.php (line 150)
  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.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function render($name, array $parameters = [])
  5.     {
  6.         return $this->getEngine($name)->render($name$parameters);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.      * @final since version 3.4
  2.      */
  3.     protected function render($view, array $parameters = [], Response $response null)
  4.     {
  5.         if ($this->container->has('templating')) {
  6.             $content $this->container->get('templating')->render($view$parameters);
  7.         } elseif ($this->container->has('twig')) {
  8.             $content $this->container->get('twig')->render($view$parameters);
  9.         } else {
  10.             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".');
  11.         }
Controller->render() in src/AppBundle/Controller/BaseController.php (line 56)
  1.     }
  2.     protected function render($view, array $parameters = array(), Response $response null)
  3.     {
  4.         $parameters array_merge($this->view_params->all(), $parameters);
  5.         return parent::render($view$parameters$response);
  6.     }
  7.     // ルート直下の php テンプレートを表示する
  8.     public function renderFront($template$data=array())
  9.     {
BaseController->render() in src/AppBundle/Controller/BaseController.php (line 69)
  1.         $file realpath($rootDir '/../../../') . '/' ltrim($template'/');
  2.         if (CMS__IS_FRONT_ROUTING){
  3.             return array_merge($this->view_params->all(), $data);
  4.         } else {
  5.             return $this->render($file$data);
  6.         }
  7.     }
BaseController->renderFront() in src/Mod/RestaurantBundle/Controller/Display/ActionController.php (line 92)
  1.         return $this->renderFront($this->views['index'], [
  2.             'cms__items' => $items,
  3.             'cms__pagination' => $pagination,
  4.             'cms__form' => $form->createView(),
  5.             'cms__tags' => $tags,
  6.             'cms__banner' => $this->getBanner(),
  7.         ]);
  8.     }
  9.     /**
  10.      * @Route("/restaurant-search/{id}/", name="mod_restaurant_detail")
ActionController->indexAction() in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 151)
  1.         $this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS$event);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response = \call_user_func_array($controller$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new GetResponseForControllerResultEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch(KernelEvents::VIEW$event);
  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 /usr/home/hbw1003dss5t/html/admin/app.php (line 63)
  1.             $content
  2.         );
  3.     });
  4.     $request Request::createFromGlobals();
  5.      $response $kernel->handle($request);
  6.     $response->send();
  7.     $kernel->terminate($request$response);
  8.     
  9. } catch (Exception $ex) {
  10.     

Stack Trace

FatalThrowableError

Symfony\Component\Debug\Exception\FatalThrowableError:
Call to a member function getChildren() on null

  at src/CustomBundle/Resources/views/Default/restaurant-search/list.html.php:7
  at require()
     (vendor/symfony/symfony/src/Symfony/Component/Templating/PhpEngine.php:150)
  at Symfony\Component\Templating\PhpEngine->evaluate()
     (vendor/symfony/symfony/src/Symfony/Component/Templating/PhpEngine.php:78)
  at Symfony\Component\Templating\PhpEngine->render()
     (vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Templating/TimedPhpEngine.php:42)
  at Symfony\Bundle\FrameworkBundle\Templating\TimedPhpEngine->render()
     (/usr/home/hbw1003dss5t/html/restaurant-search/index.php:110)
  at require('/usr/home/hbw1003dss5t/html/restaurant-search/index.php')
     (vendor/symfony/symfony/src/Symfony/Component/Templating/PhpEngine.php:150)
  at Symfony\Component\Templating\PhpEngine->evaluate()
     (vendor/symfony/symfony/src/Symfony/Component/Templating/PhpEngine.php:78)
  at Symfony\Component\Templating\PhpEngine->render()
     (vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Templating/TimedPhpEngine.php:42)
  at Symfony\Bundle\FrameworkBundle\Templating\TimedPhpEngine->render()
     (vendor/symfony/symfony/src/Symfony/Component/Templating/DelegatingEngine.php:41)
  at Symfony\Component\Templating\DelegatingEngine->render()
     (vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php:286)
  at Symfony\Bundle\FrameworkBundle\Controller\Controller->render()
     (src/AppBundle/Controller/BaseController.php:56)
  at AppBundle\Controller\BaseController->render()
     (src/AppBundle/Controller/BaseController.php:69)
  at AppBundle\Controller\BaseController->renderFront()
     (src/Mod/RestaurantBundle/Controller/Display/ActionController.php:92)
  at Mod\RestaurantBundle\Controller\Display\ActionController->indexAction()
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (/usr/home/hbw1003dss5t/html/admin/app.php:63)