Exceptions
Exception
Symfony\Component\Debug\Exception\ FatalThrowableError
<?php if(!empty($cms__items)): ?><div class="results_inner"><?php foreach($cms__items as $item_index => $cms__item) : ?><?php$main_images = $cms__item->getMainImage();$thumbnail_images = $main_images->getChildren();$this_month_recommendation = $cms__item->isThisMonthRecommendation();$link = $cms__item->getDetailLink(LOCATION);?><!-- おすすめ店舗の場合はrecommendクラスを付与 -->
PhpEngine->evaluate()
in
vendor/symfony/symfony/src/Symfony/Component/Templating/PhpEngine.php
(line 78)
$this->parents[$key] = null;// attach the global variables$parameters = array_replace($this->getGlobals(), $parameters);// renderif (false === $content = $this->evaluate($storage, $parameters)) {throw new \RuntimeException(sprintf('The template "%s" cannot be rendered.', $this->parser->parse($name)));}// decoratorif ($this->parents[$key]) {
PhpEngine->render()
in
vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Templating/TimedPhpEngine.php
(line 42)
<?php if($cms__pagination['total'] > 0): ?><?phpif (isset($view)) {echo $view->render('CustomBundle:Default:restaurant-search/list.html.php',["cms__items" => isset($cms__items) ? $cms__items : null,]);echo $view->render('CustomBundle:Default:restaurant-search/pagination.html.php',["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)
PhpEngine->evaluate()
in
vendor/symfony/symfony/src/Symfony/Component/Templating/PhpEngine.php
(line 78)
$this->parents[$key] = null;// attach the global variables$parameters = array_replace($this->getGlobals(), $parameters);// renderif (false === $content = $this->evaluate($storage, $parameters)) {throw new \RuntimeException(sprintf('The template "%s" cannot be rendered.', $this->parser->parse($name)));}// decoratorif ($this->parents[$key]) {
PhpEngine->render()
in
vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Templating/TimedPhpEngine.php
(line 42)
TimedPhpEngine->render()
in
vendor/symfony/symfony/src/Symfony/Component/Templating/DelegatingEngine.php
(line 41)
DelegatingEngine->render()
in
vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php
(line 286)
* @final since version 3.4*/protected function render($view, array $parameters = [], Response $response = null){if ($this->container->has('templating')) {$content = $this->container->get('templating')->render($view, $parameters);} elseif ($this->container->has('twig')) {$content = $this->container->get('twig')->render($view, $parameters);} else {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".');}
BaseController->renderFront()
in
src/Mod/RestaurantBundle/Controller/Display/ActionController.php
(line 92)
ActionController->indexAction()
in
vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php
(line 151)
$this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS, $event);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = \call_user_func_array($controller, $arguments);// viewif (!$response instanceof Response) {$event = new GetResponseForControllerResultEvent($this, $request, $type, $response);$this->dispatcher->dispatch(KernelEvents::VIEW, $event);
HttpKernel->handleRaw()
in
vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php
(line 68)
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $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) {
HttpKernel->handle()
in
vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php
(line 200)
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)
|