title: How to fix 'Uncaught PHP Exception Twig_Error_Loader: Unable to find template' on Symfony 3.4?
body: <p>I deployed a symfony 3.4 project from my local machine (Windows 10) to a cloud server (Digital Ocean) based on Ubuntu.</p>
  
  <p>I spent 2 days trying to resolve this (i think) routing problem: </p>
  
  <blockquote>
    <p>"request.CRITICAL: Uncaught PHP Exception Twig_Error_Loader..."</p>
  </blockquote>
  
  <p>Locally, on localhost with XAMPP, it works perfect.</p>
  
  <p>The project runs ok on the login (is like a backend user app), with the register ok But when it tries to pass the login, it needs to load the initial dashboard with some includes (like nav_side.html.twig) and the server response is error 500.</p>
  
  <p>How can i fix it?</p>
  
  <p>Thanks a lot for your response...i'm a little bit desperate. :)</p>
  
  <p>I made composer update, i deleted the cache folder, but the error is still there.</p>
  
  <blockquote>
    <p>request.CRITICAL: Uncaught PHP Exception Twig_Error_Loader: "Unable to
    find template "Backe            ndBundle:includes:nav_side.html.twig"
    (looked into: /var/www/onecup/app/Resources/views,
    /var/www/onecup/vendor/s<br>
    ymfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form) in
    "BackendBundle:Dashboard:index.html.twig" at line             7." at
    /var/www/onecup/vendor/twig/twig/lib/Twig/Loader/Filesystem.php line
    234 {"exception":"[object] (Twig_Err            or_Loader(code: 0):
    Unable to find template \"BackendBundle:includes:nav_side.html.twig\"
    (looked into: /var/www/            onecup/app/Resources/views,
    /var/www/onecup/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form)
    in \"BackendBundle:Dashboard:index.html.twig\" at line 7. at
    /var/www/onecup/vendor/twig/twig/lib/Twig/Loader/Fil<br>
    esystem.php:234)"} []</p>
  </blockquote>