Notice: Undefined offset: 0

500 Internal Server Error - ContextErrorException

Stack Trace

  1. in src/SiteBundle/Controller/DefaultController.php at line 276  -
    1.         $dil $this->get('session')->get('dil');
    2.         $gelenSayfa $em->createQuery("SELECT st.id,s.dilgrup FROM AdminBundle:Sayfa s JOIN s.tip st WHERE s.seo='$sayfa_seo'")->getResult();
    3.         $gelenSayfaDil $em->createQuery("SELECT s.seo,s.dilgrup,s.title,s.keywords,s.description,s.adi,s.bannerUrl,s.paylasim FROM AdminBundle:Sayfa s WHERE s.dil=$dil and s.dilgrup=".$gelenSayfa[0]['dilgrup']."")->getResult();
    4.         $gelenSayfaTrId $this->TrBul($gelenSayfa[0]['dilgrup'],'Sayfa','id');
    5.         $gelenKategori $em->createQuery("SELECT k.ustid,k.baslik,k.dilgrup,k.title,k.keywords,k.description FROM AdminBundle:Kategori k JOIN k.sayfa s WHERE s.id='$gelenSayfaTrId' AND k.seo='$kategori_seo'")->getResult();
  2. at DefaultController ->kategoriAction ('cdn-cgi', 'email-protection')
  3. at call_user_func_array (array(object(DefaultController), 'kategoriAction'), array('cdn-cgi', 'email-protection'))
    in var/cache/prod/classes.php at line 4689  +
  4. at HttpKernel ->handleRaw (object(Request), 1)
    in var/cache/prod/classes.php at line 4644  +
  5. at HttpKernel ->handle (object(Request), 1, true)
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 168  +
  6. at Kernel ->handle (object(Request))
    in web/app.php at line 18  +

Logs  -

Stack Trace (Plain Text)  +