https://gogo002.xbiz.jp/rintec/blog/20/

Exceptions

Key "0" in object with ArrayAccess of class "Doctrine\ORM\PersistentCollection" does not exist.

  • Exception
  • Logs
  • Stack Trace

Twig\Error\ RuntimeError

  1. <div class="ec-recommended-page">
  2.     <div class="ec-banner">
  3.         <div class="ec-banner__inner">
  4.             <div class="inner">
  5.                 <h2>
  6.                     {% set category = blog.getBlogCategories[0].getCategory %}
  7.                     {% if category.getId == 1 %}
  8.                         コラム
  9.                     {% else %}
  10.                         工事実績
  11.                     {% endif %}
  1.         <div class=\"ec-banner__inner\">
  2.             <div class=\"inner\">
  3.                 <h2>
  4.                     ";
  5.         // line 50
  6.         $context["category"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["blog"]) || array_key_exists("blog"$context) ? $context["blog"] : (function () { throw new RuntimeError('Variable "blog" does not exist.'50$this->source); })()), "getBlogCategories", [], "any"falsefalsefalse50), 0, [], "array"falsefalsefalse50), "getCategory", [], "any"falsefalsefalse50);
  7.         // line 51
  8.         echo "                    ";
  9.         if ((twig_get_attribute($this->env$this->source, (isset($context["category"]) || array_key_exists("category"$context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.'51$this->source); })()), "getId", [], "any"falsefalsefalse51) == 1)) {
  10.             // line 52
  11.             echo "                        コラム
in vendor/twig/twig/src/Template.php -> block_main (line 182)
  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 188
  2.         echo "
  3.             ";
  4.         // line 190
  5.         echo "            ";
  6.         $this->displayBlock('main'$context$blocks);
  7.         // line 191
  8.         echo "
  9.             ";
  10.         // line 193
  11.         echo "            ";
in vendor/twig/twig/src/Template.php -> doDisplay (line 405)
  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 378)
  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();
Template->display(array('form' => object(FormView), 'blog' => object(Blog), 'Page' => array('author' => null, 'description' => '本格的な夏が到来し、エアコンをフル稼働させているため電気代が心配…というご家庭も多いでしょう。エアコンをお得に使うためには状況に応じて使い方を変える必要があるのをご存じでしょうか?今回は、節電効果の高いエアコンの使い方について解説します。', 'keyword' => null, 'meta_robots' => null, 'meta_tags' => null, 'edit_type' => 0), 'subtitle' => 'エアコンはつけっぱなしの方がお得?猛暑だからこそ知りたい節電効果の高いエアコンの使い方', 'tags' => array('エアコンつけっぱなし', ' 節電 ', ' エアコン', '節電方法'), 'monthArr' => array(array('2024-11' => array('ym' => '2024年11月', 'count' => 2), '2024-10' => array('ym' => '2024年10月', 'count' => 3), '2024-09' => array('ym' => '2024年09月', 'count' => 3), '2024-08' => array('ym' => '2024年08月', 'count' => 2), '2024-07' => array('ym' => '2024年07月', 'count' => 4), '2024-06' => array('ym' => '2024年06月', 'count' => 3), '2024-02' => array('ym' => '2024年02月', 'count' => 5))), 'app' => object(AppVariable), 'BaseInfo' => object(BaseInfo), 'eccube_config' => object(EccubeConfig), 'event_dispatcher' => object(TraceableEventDispatcher), 'Layout' => object(Layout), 'title' => '簡単ブログPro詳細ページ', 'isMaintenance' => false), array('stylesheet' => array(object(__TwigTemplate_464b5baace8cbeeb91375496a1c2e3733346f9f955ab095108a5f4520a9661c8), 'block_stylesheet'), 'javascript' => array(object(__TwigTemplate_464b5baace8cbeeb91375496a1c2e3733346f9f955ab095108a5f4520a9661c8), 'block_javascript'), 'main' => array(object(__TwigTemplate_464b5baace8cbeeb91375496a1c2e3733346f9f955ab095108a5f4520a9661c8), 'block_main'))) in src/Eccube/Twig/Template.php (line 41)
  1.             $eventDispatcher->dispatch($event$this->getTemplateName());
  2.             if ($event->getSource() !== $originCode) {
  3.                 $newTemplate $this->env->createTemplate($event->getSource());
  4.                 $newTemplate->display($event->getParameters(), $blocks);
  5.             } else {
  6.                 parent::display($event->getParameters(), $blocks);
  7.             }
  8.         } else {
  9.             parent::display($context$blocks);
  10.         }
  11.     }
  1.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""blog/detail.twig"));
  3.         $this->parent $this->loadTemplate("default_frame.twig""blog/detail.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 405)
  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 378)
  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();
Template->display(array('form' => object(FormView), 'blog' => object(Blog), 'Page' => array('author' => null, 'description' => '本格的な夏が到来し、エアコンをフル稼働させているため電気代が心配…というご家庭も多いでしょう。エアコンをお得に使うためには状況に応じて使い方を変える必要があるのをご存じでしょうか?今回は、節電効果の高いエアコンの使い方について解説します。', 'keyword' => null, 'meta_robots' => null, 'meta_tags' => null, 'edit_type' => 0), 'subtitle' => 'エアコンはつけっぱなしの方がお得?猛暑だからこそ知りたい節電効果の高いエアコンの使い方', 'tags' => array('エアコンつけっぱなし', ' 節電 ', ' エアコン', '節電方法'), 'monthArr' => array(array('2024-11' => array('ym' => '2024年11月', 'count' => 2), '2024-10' => array('ym' => '2024年10月', 'count' => 3), '2024-09' => array('ym' => '2024年09月', 'count' => 3), '2024-08' => array('ym' => '2024年08月', 'count' => 2), '2024-07' => array('ym' => '2024年07月', 'count' => 4), '2024-06' => array('ym' => '2024年06月', 'count' => 3), '2024-02' => array('ym' => '2024年02月', 'count' => 5)))), array()) in src/Eccube/Twig/Template.php (line 41)
  1.             $eventDispatcher->dispatch($event$this->getTemplateName());
  2.             if ($event->getSource() !== $originCode) {
  3.                 $newTemplate $this->env->createTemplate($event->getSource());
  4.                 $newTemplate->display($event->getParameters(), $blocks);
  5.             } else {
  6.                 parent::display($event->getParameters(), $blocks);
  7.             }
  8.         } else {
  9.             parent::display($context$blocks);
  10.         }
  11.     }
in vendor/twig/twig/src/Template.php -> display (line 390)
  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.      */
  2.     public function render(array $context = []): string
  3.     {
  4.         // using func_get_args() allows to not expose the blocks argument
  5.         // as it should only be used by internal code
  6.         return $this->template->render($context, \func_get_args()[1] ?? []);
  7.     }
  8.     /**
  9.      * Displays the template.
  10.      *
  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 = [])
  5.     {
  6.         return $this->load($name)->render($context);
  7.     }
  8.     /**
  9.      * Displays a template.
  10.      *
  1.                 $this->twig->display($template->getTemplate(), $parameters);
  2.             };
  3.             $event->setResponse(new StreamedResponse($callback));
  4.         } else {
  5.             $event->setResponse(new Response($this->twig->render($template->getTemplate(), $parameters)));
  6.         }
  7.         // make sure the owner (controller+dependencies) is not cached or stored elsewhere
  8.         $template->setOwner([]);
  9.     }
  1.         $this->called true;
  2.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.         $response $controller(...$arguments);
  2.         // view
  3.         if (!$response instanceof Response) {
  4.             $event = new ViewEvent($this$request$type$response);
  5.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  6.             if ($event->hasResponse()) {
  7.                 $response $event->getResponse();
  8.             } else {
  9.                 $msg sprintf('The controller must return a "Symfony\Component\HttpFoundation\Response" object but it returned %s.'$this->varToString($response));
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  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(object(Request)) in index.php/ (line 83)
  1.         }
  2.     }
  3. }
  4. $kernel = new Kernel($env$debug);
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);