Symfony Exception

RuntimeError

HTTP 500 Internal Server Error

Variable "otel" does not exist.

Exception

Twig\Error\ RuntimeError

  1. <head>
  2.     <meta charset="utf-8">
  3.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  4.     <meta name="viewport" content="width=device-width, initial-scale=1">
  5.     <title>{% block title %}{% endblock %}</title>
  6.     <meta name="description" content="{{ otel.baslik }} Hotel Reservation" />
  7.     <meta name="keywords" content="{{ otel.baslik }}, booking, hotel, resort, travel, holiday, tour, accommodation, vocation, trip" />
  8.     <meta name="author" content="www.hmsotel.com">
  9.     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  10.     <style type="text/css">
  11.         .konaklamatipi { float:left; border:0px solid red; padding-top:10px; width: 50%; }
__TwigTemplate_33523985bfa43fa3cce1e46d24bea31e722cbe5e8f190bec842a00648df30ae9->{closure}() in var/cache/prod/twig/79/79bab6311ebd281d83aaef6bd2a4734e2f300d3e41253154bcbf1ed7c0b8eec9.php (line 85)
  1.         // line 22
  2.         $this->displayBlock('title'$context$blocks);
  3.         echo "</title>
  4.     <meta name=\"description\" content=\"";
  5.         // line 23
  6.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["otel"]) || array_key_exists("otel"$context) ? $context["otel"] : (function () { throw new RuntimeError('Variable "otel" does not exist.'23$this->source); })()), "baslik", [], "any"falsefalsefalse23), "html"nulltrue);
  7.         echo " Hotel Reservation\" />
  8.     <meta name=\"keywords\" content=\"";
  9.         // line 24
  10.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["otel"]) || array_key_exists("otel"$context) ? $context["otel"] : (function () { throw new RuntimeError('Variable "otel" does not exist.'24$this->source); })()), "baslik", [], "any"falsefalsefalse24), "html"nulltrue);
  11.         echo ", booking, hotel, resort, travel, holiday, tour, accommodation, vocation, trip\" />
__TwigTemplate_33523985bfa43fa3cce1e46d24bea31e722cbe5e8f190bec842a00648df30ae9->doDisplay() in vendor/twig/twig/src/Template.php (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.             }
Template->displayWithErrorHandling() in vendor/twig/twig/src/Template.php (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();
  1.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'4$this->source); })()), "request", [], "any"falsefalsefalse4), "get", [=> "website"], "method"falsefalsefalse4)) {
  2.             // line 5
  3.             $context["website"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'5$this->source); })()), "request", [], "any"falsefalsefalse5), "get", [=> "website"], "method"falsefalsefalse5);
  4.         }
  5.         // line 2
  6.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  7.         
  8.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  9.     }
__TwigTemplate_878d12e8874c679c4c40e20063b993146edc4ebc2dced22d7b10b3940d89f136->doDisplay() in vendor/twig/twig/src/Template.php (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.             }
Template->displayWithErrorHandling() in vendor/twig/twig/src/Template.php (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() in vendor/twig/twig/src/Template.php (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.      * @throws Error if something went wrong like a thrown exception while rendering the template
  3.      */
  4.     public function render($name, array $parameters = [])
  5.     {
  6.         return $this->load($name)->render($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.         }
  1.         return $this->render("WebRezervasyonBundle:Thema$temaversiyon/Widgets:contact.html.twig", array(
  2.             'hotel' => $otel,
  3.             'user' => $user,
  4.             'thema' => "Thema$temaversiyon",
  5.             'dilsec'        => $dilbu,
  6.         ));
  7.     }
  8. }
ContactController->contactAction() 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 web/app.php (line 16)
  1. //$kernel = new AppCache($kernel);
  2. // When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
  3. //Request::enableHttpMethodParameterOverride();
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Logs 1

Level Channel Message
INFO 17:28:23 request Matched route "subdomain_contact".
INFO 17:28:23 php User Deprecated: Creating Doctrine\ORM\Mapping\UnderscoreNamingStrategy without making it number aware is deprecated and will be removed in Doctrine ORM 3.0.
INFO 17:28:23 security Populated the TokenStorage with an anonymous Token.
DEBUG 17:28:23 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
DEBUG 17:28:23 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
DEBUG 17:28:23 event Notified event "kernel.request" to listener "Nelmio\CorsBundle\EventListener\CorsListener::onKernelRequest".
DEBUG 17:28:23 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest".
DEBUG 17:28:23 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest".
DEBUG 17:28:23 event Notified event "kernel.request" to listener "FOS\RestBundle\EventListener\FormatListener::onKernelRequest".
DEBUG 17:28:23 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
DEBUG 17:28:23 event Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\ResolveControllerNameSubscriber::onKernelRequest".
DEBUG 17:28:23 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
DEBUG 17:28:23 event Notified event "kernel.request" to listener "FOS\RestBundle\EventListener\BodyListener::onKernelRequest".
DEBUG 17:28:23 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\TranslatorListener::onKernelRequest".
DEBUG 17:28:23 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest".
DEBUG 17:28:23 event Notified event "kernel.request" to listener "Knp\Bundle\PaginatorBundle\Subscriber\SlidingPaginationSubscriber::onKernelRequest".
DEBUG 17:28:23 event Notified event "kernel.request" to listener "Web\AdminBundle\EventListener\LocaleEventListener::onKernelRequest".
DEBUG 17:28:23 event Notified event "kernel.controller" to listener "FOS\RestBundle\EventListener\ParamFetcherListener::onKernelController".
DEBUG 17:28:23 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
DEBUG 17:28:23 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RequestDataCollector::onKernelController".
DEBUG 17:28:23 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
DEBUG 17:28:23 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
DEBUG 17:28:23 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
DEBUG 17:28:23 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelController".
DEBUG 17:28:23 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".
DEBUG 17:28:23 doctrine SELECT t0.id AS id_1, t0.baslik AS baslik_2, t0.seourl AS seourl_3, t0.telefons AS telefons_4, t0.bakiye AS bakiye_5, t0.ceps AS ceps_6, t0.unvan AS unvan_7, t0.adres AS adres_8, t0.koy AS koy_9, t0.sayi_bina AS sayi_bina_10, t0.sayi_oda AS sayi_oda_11, t0.v_numarasi AS v_numarasi_12, t0.v_dairesi AS v_dairesi_13, t0.mikrotik AS mikrotik_14, t0.mikrotikuser AS mikrotikuser_15, t0.mikrotikpw AS mikrotikpw_16, t0.adisyonnum AS adisyonnum_17, t0.konaklama_vergisi AS konaklama_vergisi_18, t0.mahsuplastir AS mahsuplastir_19, t0.sms_kontor AS sms_kontor_20, t0.acenta AS acenta_21, t0.kisi_basi_fiyat AS kisi_basi_fiyat_22, t0.web_cam AS web_cam_23, t0.otel_ip AS otel_ip_24, t0.kilit AS kilit_25, t0.bolum AS bolum_26, t0.dogum_gunu_hatirlatma AS dogum_gunu_hatirlatma_27, t0.maas_gunu AS maas_gunu_28, t0.gun_sonu AS gun_sonu_29, t0.checkin AS checkin_30, t0.checkout AS checkout_31, t0.latitude AS latitude_32, t0.longitude AS longitude_33, t0.tarih_kayit AS tarih_kayit_34, t0.uyebitis AS uyebitis_35, t0.uyebitis_int AS uyebitis_int_36, t0.uyebaslama_int AS uyebaslama_int_37, t0.vadebitis_int AS vadebitis_int_38, t0.durum AS durum_39, t0.grup_otel_onay AS grup_otel_onay_40, t0.grup_hms_onay AS grup_hms_onay_41, t0.VersiyonControl_id AS VersiyonControl_id_42, t0.grup_otel_id AS grup_otel_id_43, t0.user_id AS user_id_44, t0.pesonel_id AS pesonel_id_45, t0.il_id AS il_id_46, t0.ParaBirimi_Id AS ParaBirimi_Id_47, t0.KanalParaBirimi_id AS KanalParaBirimi_id_48, t0.ilce_id AS ilce_id_49, t0.otel_turu_id AS otel_turu_id_50, t0.Ulkeler_id AS Ulkeler_id_51, t52.id AS id_53, t52.anasayfa AS anasayfa_54, t52.otel_id AS otel_id_55 FROM otel t0 LEFT JOIN otel_ayar t52 ON t52.otel_id = t0.id WHERE t0.seourl = ? LIMIT 1
DEBUG 17:28:24 doctrine SELECT t0.id AS id_1, t0.isoA2 AS isoA2_2, t0.baslik AS baslik_3, t0.baslik_dil AS baslik_dil_4, t0.resim AS resim_5, t0.sira AS sira_6, t0.durum AS durum_7, t0.ozelKod AS ozelKod_8, t0.dil_paket AS dil_paket_9 FROM dil t0 WHERE t0.durum = ?
INFO 17:28:24 php User Deprecated: The "http.cookie" service is private, getting it from the container is deprecated since Symfony 3.2 and will fail in 4.0. You should either make the service public, or stop using the container directly and use dependency injection instead.
INFO 17:28:24 php User Deprecated: The "encryptor.aes128" service is private, getting it from the container is deprecated since Symfony 3.2 and will fail in 4.0. You should either make the service public, or stop using the container directly and use dependency injection instead.
DEBUG 17:28:24 php Notice: Undefined index: time
DEBUG 17:28:24 php Notice: Undefined index: user
DEBUG 17:28:24 php Notice: Trying to access array offset on value of type null
DEBUG 17:28:24 php Notice: Undefined index: user
DEBUG 17:28:24 doctrine SELECT k0_.parola AS parola_0 FROM kanal k0_ INNER JOIN otel o1_ ON k0_.otel_id = o1_.id INNER JOIN kanallar k2_ ON k0_.kanallar_id = k2_.id WHERE o1_.seourl = ? AND k2_.id = 2 LIMIT 1
DEBUG 17:28:24 doctrine SELECT u0_.email AS email_0 FROM user u0_ INNER JOIN otel o1_ ON u0_.otel_id = o1_.id WHERE u0_.birincil = 1 AND o1_.id = ? ORDER BY u0_.id ASC LIMIT 1
INFO 17:28:24 php User Deprecated: The "http.cookie" service is private, getting it from the container is deprecated since Symfony 3.2 and will fail in 4.0. You should either make the service public, or stop using the container directly and use dependency injection instead.
INFO 17:28:24 php User Deprecated: The "http.cookie" service is private, getting it from the container is deprecated since Symfony 3.2 and will fail in 4.0. You should either make the service public, or stop using the container directly and use dependency injection instead.
INFO 17:28:24 php User Deprecated: The "app.util.redis_helper" service is private, getting it from the container is deprecated since Symfony 3.2 and will fail in 4.0. You should either make the service public, or stop using the container directly and use dependency injection instead.
INFO 17:28:24 php User Deprecated: The "http.cookie" service is private, getting it from the container is deprecated since Symfony 3.2 and will fail in 4.0. You should either make the service public, or stop using the container directly and use dependency injection instead.
CRITICAL 17:28:24 request Uncaught PHP Exception Twig\Error\RuntimeError: "Variable "otel" does not exist." at /var/www/html/app/Resources/views/thema/Thema1/site.html.twig line 23
DEBUG 17:28:24 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
DEBUG 17:28:24 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
DEBUG 17:28:24 event Notified event "kernel.request" to listener "Nelmio\CorsBundle\EventListener\CorsListener::onKernelRequest".
DEBUG 17:28:24 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest".
DEBUG 17:28:24 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest".
DEBUG 17:28:24 event Notified event "kernel.request" to listener "FOS\RestBundle\EventListener\FormatListener::onKernelRequest".
DEBUG 17:28:24 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
DEBUG 17:28:24 event Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\ResolveControllerNameSubscriber::onKernelRequest".
DEBUG 17:28:24 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
DEBUG 17:28:24 event Notified event "kernel.request" to listener "FOS\RestBundle\EventListener\BodyListener::onKernelRequest".
DEBUG 17:28:24 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\TranslatorListener::onKernelRequest".
DEBUG 17:28:24 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest".
DEBUG 17:28:24 event Notified event "kernel.request" to listener "Knp\Bundle\PaginatorBundle\Subscriber\SlidingPaginationSubscriber::onKernelRequest".
DEBUG 17:28:24 event Notified event "kernel.request" to listener "Web\AdminBundle\EventListener\LocaleEventListener::onKernelRequest".
DEBUG 17:28:24 event Notified event "kernel.controller" to listener "FOS\RestBundle\EventListener\ParamFetcherListener::onKernelController".
DEBUG 17:28:24 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
DEBUG 17:28:24 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RequestDataCollector::onKernelController".
DEBUG 17:28:24 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
DEBUG 17:28:24 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
DEBUG 17:28:24 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
DEBUG 17:28:24 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelController".
DEBUG 17:28:24 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".

Stack Trace

RuntimeError

Twig\Error\RuntimeError:
Variable "otel" does not exist.

  at app/Resources/views/thema/Thema1/site.html.twig:23
  at __TwigTemplate_33523985bfa43fa3cce1e46d24bea31e722cbe5e8f190bec842a00648df30ae9->{closure}()
     (var/cache/prod/twig/79/79bab6311ebd281d83aaef6bd2a4734e2f300d3e41253154bcbf1ed7c0b8eec9.php:85)
  at __TwigTemplate_33523985bfa43fa3cce1e46d24bea31e722cbe5e8f190bec842a00648df30ae9->doDisplay()
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (var/cache/prod/twig/28/28d1352775dc4f111557fea596cddaab4718a12b8a835f6e58a4be42a1473f73.php:52)
  at __TwigTemplate_878d12e8874c679c4c40e20063b993146edc4ebc2dced22d7b10b3940d89f136->doDisplay()
     (vendor/twig/twig/src/Template.php:405)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:378)
  at Twig\Template->display()
     (vendor/twig/twig/src/Template.php:390)
  at Twig\Template->render()
     (vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php:50)
  at Symfony\Bridge\Twig\TwigEngine->render()
     (vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php:286)
  at Symfony\Bundle\FrameworkBundle\Controller\Controller->render()
     (src/Web/RezervasyonBundle/Controller/Widgets/ContactController.php:112)
  at Web\RezervasyonBundle\Controller\Widgets\ContactController->contactAction()
     (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()
     (web/app.php:16)