title: debug bar symfony not working
body: <p>The debug bar is not showing at the bottom of the website:</p>
  
  <p>This is my base.html.twig</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html class="no-js" lang="fr"&gt;
  &lt;head&gt;&lt;meta name="google-site-verification" content="8ftgUdHWfZa5ANhU7DJxSpGof4khdKGz5X0phHaWa64" /&gt;
  &lt;title&gt;{% block title %}{% endblock %}&lt;/title&gt;&lt;meta name="description" content="Location en ligne de vêtements et accessoires de luxe entre particuliers : robes, costumes, sacs, vestes - Assurance incluse - Authenticité 100% garantie."&gt;&lt;meta charset="utf-8"&gt;&lt;meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1" /&gt;&lt;link rel="shortcut icon" href="{{ asset('bundles/frontoffice/images/faviconii.png') }}"&gt;&lt;link rel="apple-touch-icon" href="{{ asset('bundles/frontoffice/images/apple-touch-icon-57x57.png') }}"&gt;&lt;link rel="apple-touch-icon" sizes="72x72" href="{{ asset('bundles/frontoffice/images/apple-touch-icon-72x72.png') }}"&gt;&lt;link rel="apple-touch-icon" sizes="114x114" href="{{ asset('bundles/frontoffice/images/apple-touch-icon-114x114.png') }}"&gt;
  {% block stylesheets  %}  &lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css"&gt;&lt;link rel="stylesheet" href="{{ asset('/css/generalstyle.css') }}" type="text/css" /&gt;
  {% endblock %}
  {% javascripts '@ADFrontBundle/Resources/public/js/jquery.min.js' %}
  &lt;script type="text/javascript" src="{{ asset_url }}"&gt;&lt;/script&gt;
  {% endjavascripts %}
  
  &lt;script type="text/javascript"&gt;
      window.smartlook||(function(d) {
      var o=smartlook=function(){ o.api.push(arguments)},h=d.getElementsByTagName('head')[0];
      var c=d.createElement('script');o.api=new Array();c.async=true;c.type='text/javascript';
      c.charset='utf-8';c.src='//rec.smartlook.com/recorder.js';h.appendChild(c);
      })(document);
      smartlook('init', 'fec4728dc14b7eb5ae97ba5745a6fcc5763e911c');
  &lt;/script&gt;
  
  
  
  &lt;/head&gt;
  &lt;body&gt;
  {{ render(controller("ADFrontBundle:Default:menu")) }} 
  {% block body %}{% endblock %}
  {{ include("ADFrontBundle:Default:footer/pied.html.twig") }}
  &lt;script&gt;
  !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
        n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
        n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
        t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
          document,'script','https://connect.facebook.net/en_US/fbevents.js');
        fbq('init', '1139325582796441');
        fbq('track', "PageView");&lt;/script&gt;&lt;noscript&gt;&lt;img height="1" width="1" style="display:none"
          src="https://www.facebook.com/tr?id=1139325582796441&amp;ev=PageView&amp;noscript=1"
          /&gt;&lt;/noscript&gt;&lt;script type="text/javascript"&gt; 
  &lt;/script&gt;
  {% block javascript %}
  &lt;script src="https://maps.googleapis.com/maps/api/js?sensor=false&amp;amp;libraries=places"&gt;&lt;/script&gt;&lt;script type="text/javascript" src=" https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"&gt;&lt;/script&gt;&lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/js/bootstrap.min.js"&gt;&lt;/script&gt;&lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-hover-dropdown/2.2.1/bootstrap-hover-dropdown.min.js"&gt;&lt;/script&gt;&lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/jquery.magnific-popup.min.js"&gt;&lt;/script&gt;&lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.imagesloaded/3.1.8/imagesloaded.pkgd.min.js"&gt;&lt;/script&gt;&lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-smooth-scroll/1.4.10/jquery.smooth-scroll.min.js"&gt;&lt;/script&gt;&lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-parallax/1.1.3/jquery-parallax-min.js"&gt;&lt;/script&gt;&lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.32/owl.carousel.min.js"&gt;&lt;/script&gt;
  {%  endblock %}
  {% javascripts '@ADFrontBundle/Resources/public/js/skrollr.min.js' %}
  &lt;script type="text/javascript" src="{{ asset_url }}"&gt;&lt;/script&gt;
  {% endjavascripts %}
  {% javascripts '@ADFrontBundle/Resources/public/js/wow.min.js' %}
  &lt;script type="text/javascript" src="{{ asset_url }}"&gt;&lt;/script&gt;
  {% endjavascripts %}
  {% javascripts '@ADFrontBundle/Resources/public/js/page-scroll.js' %}
  &lt;script type="text/javascript" src="{{ asset_url }}"&gt;&lt;/script&gt;
  {% endjavascripts %}
  {% javascripts '@ADFrontBundle/Resources/public/js/jquery.easypiechart.js' %}
  &lt;script type="text/javascript" src="{{ asset_url }}"&gt;&lt;/script&gt;
  {% endjavascripts %}
  {% javascripts '@ADFrontBundle/Resources/public/js/jquery.isotope.min.js' %}
  &lt;script type="text/javascript" src="{{ asset_url }}"&gt;&lt;/script&gt;
  {% endjavascripts %}
  {% javascripts '@ADFrontBundle/Resources/public/js/popup-gallery.js' %}
  &lt;script type="text/javascript" src="{{ asset_url }}"&gt;&lt;/script&gt;
  {% endjavascripts %}
  {% javascripts '@ADFrontBundle/Resources/public/js/text-effect.js' %}
  &lt;script type="text/javascript" src="{{ asset_url }}"&gt;&lt;/script&gt;
  {% endjavascripts %}
  {% javascripts '@ADFrontBundle/Resources/public/js/jquery.tools.min.js' %}
  &lt;script type="text/javascript" src="{{ asset_url }}"&gt;&lt;/script&gt;
  {% endjavascripts %}     
  {% javascripts '@ADFrontBundle/Resources/public/js/jquery.revolution.js' %}
  &lt;script type="text/javascript" src="{{ asset_url }}"&gt;&lt;/script&gt;
  {% endjavascripts %}
  {% javascripts '@ADFrontBundle/Resources/public/js/counter.js' %}
  &lt;script type="text/javascript" src="{{ asset_url }}"&gt;&lt;/script&gt;
  {% endjavascripts %}
  {% javascripts '@ADFrontBundle/Resources/public/js/jquery.fitvids.js' %}
  &lt;script type="text/javascript" src="{{ asset_url }}"&gt;&lt;/script&gt;
  {% endjavascripts %}
  {% javascripts '@ADFrontBundle/Resources/public/js/jquery.geocomplete.js' %}
  &lt;script type="text/javascript" src="{{ asset_url }}"&gt;&lt;/script&gt;
  {% endjavascripts %}
  {% javascripts '@ADFrontBundle/Resources/public/js/chosen.jquery.js' %}
  &lt;script type="text/javascript" src="{{ asset_url }}"&gt;&lt;/script&gt;
  {% endjavascripts %}
  {% javascripts '@ADFrontBundle/Resources/public/js/main.js' %}
  &lt;script type="text/javascript" src="{{ asset_url }}"&gt;&lt;/script&gt;
  {% endjavascripts %}
  &lt;script type="text/javascript"&gt;
  $(document).ready(function() {
  $('.chosen-select').chosen();
  $('.chosen-select-deselect').chosen({ allow_single_deselect: true });
  $("#geocomplete").geocomplete({
  details: "form",
  blur: true,
  geocodeAfterResult: true
  });}); &lt;/script&gt;
  {% for message in app.session.flashbag.get('facebookNotValid') %}
  
  &lt;div id="my-modal" style="display:block;" class="modal fade in"&gt;
      &lt;div  class="modal-dialog" style="margin-top:20%;"&gt;
          &lt;div class="modal-content" style="width: 92%;   margin: 0 auto;"&gt;
              &lt;div style="padding: 30px;    border: none;" class="modal-header"&gt;
                  &lt;span style="text-transform: uppercase;" class="text-center slider-subtitle5 black-text no-margin-bottom"&gt;Vérification adresse email&lt;/span&gt; 
              &lt;/div&gt;
              &lt;div class="modal-facebook modal-body" style="padding: 30px; height: 174px;"&gt;
                  &lt;p  class="paragraphe-facebook" &gt;Afin de profiter de toutes les fonctionnalités de Dressingavenue.com, veuillez renseigner une adresse email valide&lt;/p&gt;
                  &lt;div class="email-facebook col-sm-12" style="display: block;"&gt;
                        &lt;form method="POST" action="{{   path('valider_fb') }}"&gt;
                              &lt;input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}" / &gt;
  
                            &lt;div class="col-sm-8 col-md-8 col-xs-8 no-padding"&gt;&lt;input type="text" name="emailFb" placeholder="Votre E-mail ..." style="text-transform:lowercase;padding: 9px;" required="" pattern="[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,3}$"&gt;&lt;/div&gt;
  
                             &lt;div class="col-sm-4 col-md-4  col-xs-4 no-padding"&gt;&lt;button type="submit" class="highlight-button btn btn-medium button  no-margin bg-logo2 white-text no-border"&gt;Valider&lt;/button&gt;&lt;/div&gt;
                        &lt;/form&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt; 
  &lt;/div&gt;
  &lt;div class="modal-backdrop fade in"&gt;&lt;/div&gt;
  
  {% endfor %}
  &lt;script&gt;
  $( document ).ready(function() {
  
  var close=true;
  $('.display-it').click(function(){
      $('.panel-mobile-hide').slideToggle( "slow" ,function(){
        if(close){
            $('.display-it').removeClass( "fa-minus" );
            $('.display-it').addClass( "fa-plus" );
            close=false;
        }else{
           $('.display-it').removeClass( "fa-plus" );
            $('.display-it').addClass( "fa-minus" );
            close=true;
        }
      });
  });
  
      if($('#fos_user_registration_form_tel').length){
     $('#fos_user_registration_form_tel').prop("type", "tel");
  }
  
      if($('.telephone-input').length){
     $('.telephone-input').prop("type", "tel");
  }
  });
  &lt;/script&gt;
  
  &lt;script src='https://cdn.slaask.com/chat.js'&gt;&lt;/script&gt;
  &lt;script&gt;
      _slaask.init('74cfba4484b889bb6949aec78237743f');
  &lt;/script&gt;
  
  &lt;script&gt;
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
        (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
        m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
      ga('create', 'UA-79582949-1', 'auto');
      ga('send', 'pageview');
  &lt;/script&gt;
  
  {% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
  
  &lt;script&gt;
    smartlook('tag', 'email', '{{ app.user.email }}');
    smartlook('tag', 'name', '{{ app.user.prenom|title }} {{ app.user.nom|title }} ');
  &lt;/script&gt;
  {% endif %}
  
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>This my app kernel:</p>
  
  <pre><code>if (in_array($this-&gt;getEnvironment(), array('dev', 'test'))) {
      $bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle();
      $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
      $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
      $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
      $bundles[] = new CoreSphere\ConsoleBundle\CoreSphereConsoleBundle();
  }
  </code></pre>
  
  <p>This is my app_dev.php</p>
  
  <pre><code>&lt;?php
  
  use Symfony\Component\HttpFoundation\Request;
  use Symfony\Component\Debug\Debug;
  
  // If you don't want to setup permissions the proper way, just uncomment the following PHP line
  // read http://symfony.com/doc/current/book/installation.html#checking-symfony-application-configuration-and-setup
  // for more information
  //umask(0000);
  
  // This check prevents access to debug front controllers that are deployed by accident to production servers.
  // Feel free to remove this, extend it, or make something more sophisticated.
  
  if (isset($_SERVER['HTTP_CLIENT_IP'])
      || isset($_SERVER['HTTP_X_FORWARDED_FOR'])
      || !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '41.250.108.226','fe80::1', '::1']) || php_sapi_name() === 'cli-server')
  ) {
      header('HTTP/1.0 403 Forbidden');
      exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
  }
  
  /**
   * @var Composer\Autoload\ClassLoader $loader
   */
  $loader = require_once __DIR__.'/../app/bootstrap.php.cache';
  Debug::enable();
  require_once __DIR__.'/../app/AppKernel.php';
  $kernel = new AppKernel('dev', true);
  $kernel-&gt;loadClassCache();
  $request = Request::createFromGlobals();
  $response = $kernel-&gt;handle($request);
  $response-&gt;send();
  $kernel-&gt;terminate($request, $response);
  </code></pre>