Exceptions
Exception
Symfony\Component\Debug\Exception\ ContextErrorException
/* userAgent
--------------------------------------------------------------*/
//Decision
$ua = $_SERVER['HTTP_USER_AGENT'];
$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;
$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;
$mouse = (!$touch) ? true : false;
$chrome = strstr($ua, 'Chrome') && !strstr($ua, 'Edg') && !strstr($ua, 'OPR') && !strstr($ua, 'Vivaldi') && !strstr($ua, 'Sleipnir') ? true : false;
$opera = strstr($ua, 'OPR') ? true : false;
include('/usr/home/hbw1003dss5t/html/config/setting.php')
in
/usr/home/hbw1003dss5t/html/config/include.php
(line 4)
include('/usr/home/hbw1003dss5t/html/config/include.php')
in
/usr/home/hbw1003dss5t/html/index.php
(line 3)
require('/usr/home/hbw1003dss5t/html/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);
// render
if (false === $content = $this->evaluate($storage, $parameters)) {
throw new \RuntimeException(sprintf('The template "%s" cannot be rendered.', $this->parser->parse($name)));
}
// decorator
if ($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".');
}
GroupHomeController->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);
// view
if (!$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
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) |