http://194.91.3.31/

Exceptions

Notice: Undefined index: HTTP_USER_AGENT

Exception

Symfony\Component\Debug\Exception\ ContextErrorException

  1. /*    userAgent
  2. --------------------------------------------------------------*/
  3. //Decision
  4. $ua $_SERVER['HTTP_USER_AGENT'];
  5. $phone strstr($ua'iPhone') || strstr($ua'Android') && strstr($ua'Mobile') || strstr($ua'Windows Phone') || strstr($ua'BlackBerry') || strstr($ua'SamsungBrowser') || strstr($ua'UCBrowser') &&  !strstr($ua'iPad') &&  !strstr($ua'iPod') ? true false;
  6. $touch strstr($ua'iPhone') || strstr($ua'iPad') || strstr($ua'iPod') || strstr($ua'Android') || strstr($ua'Windows Phone') || strstr($ua'BlackBerry') || strstr($ua'SamsungBrowser') || strstr($ua'UCBrowser') ? true false;
  7. $mouse = (!$touch) ? true false;
  8. $chrome strstr($ua'Chrome') &&  !strstr($ua'Edg') && !strstr($ua'OPR') && !strstr($ua'Vivaldi')  && !strstr($ua'Sleipnir') ? true false;
  9. $opera strstr($ua'OPR') ? true false;
include('/usr/home/hbw1003dss5t/html/config/setting.php') in /usr/home/hbw1003dss5t/html/config/include.php (line 4)
  1. <?php
  2.     
  3.     //関数の定義やその他設定
  4.     include __DIR__.'/setting.php';
  5.     //定数の定義
  6.     include __DIR__.'/config.php';
  7.     //metaタグに関する設定
include('/usr/home/hbw1003dss5t/html/config/include.php') in /usr/home/hbw1003dss5t/html/index.php (line 3)
  1. <?php
  2.     $page 'homepage';
  3.     include realpath(__DIR__.'/config/include.php');
  4. ?>
  5. <?php if(file_exists(LOCATION_ROOT_DIR.'/mobile_thumbnail.jpg') && $modern) : ?>
  6. <?php
  7. // モバイルサムネールの画像サイズ
  8. $mobile_thumb_width 100;
require('/usr/home/hbw1003dss5t/html/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/CustomBundle/Controller/GroupHomeController.php (line 52)
  1.             'cms__genres' => $genres,
  2.             'cms__gourmet_pickup_items' => $gourmet_pickup_items,
  3.             'cms__restaurant_pickup_items' => $restaurant_pickup_items,
  4.             'cms__recommended_news' => $recommended_news,
  5.             'cms__list_news' => $list_news,
  6.             'cms__banner' => $this->getBanner(),
  7.         ]);
  8.     }
  9.     // バナー取得
  10.     public function getBanner()
GroupHomeController->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

ContextErrorException

Symfony\Component\Debug\Exception\ContextErrorException:
Notice: Undefined index: HTTP_USER_AGENT

  at /usr/home/hbw1003dss5t/html/config/setting.php:67
  at include('/usr/home/hbw1003dss5t/html/config/setting.php')
     (/usr/home/hbw1003dss5t/html/config/include.php:4)
  at include('/usr/home/hbw1003dss5t/html/config/include.php')
     (/usr/home/hbw1003dss5t/html/index.php:3)
  at require('/usr/home/hbw1003dss5t/html/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/CustomBundle/Controller/GroupHomeController.php:52)
  at CustomBundle\Controller\GroupHomeController->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)