title: Symfony2 ContextErrorException: Warning: filemtime(): stat failed
body: <p>When I deploy the application to production server, I got blank page for the production enviroment i.e <em>app.php</em>.</p>
  
  <p>However, I tried to figure out the  problem by using my development enviroment "*app_dev.php*", thereby commenting the code restricting me, then I got the following errors:</p>
  
  <blockquote>
    <p>ContextErrorException: Warning: filemtime(): stat failed for<br>
    C:\xampp\htdocs\deploy\Demo\src\SoftMarshal\Bundle\MainBundle/Resources/views/Default/index.html.twig<br>
    in /var/www/web/bilyonedemo/htdocs/vendor/twig/twig/lib/Twig/Loader/Filesystem.php
    line 165
    ContextErrorException: Warning: filemtime(): stat failed for C:\xampp\htdocs\deploy\Demo\src\SoftMarshal\Bundle\MainBundle/Resources/views/Default/index.html.twig in /var/www/web/bilyonedemo/htdocs/vendor/twig/twig/lib/Twig/Loader/Filesystem.php line 165</p>
  </blockquote>
  
  <pre><code>in /var/www/web/bilyonedemo/htdocs/vendor/twig/twig/lib/Twig/Loader/Filesystem.php line 165
  at ErrorHandler-&gt;handle('2', 'filemtime(): stat failed for C:\xampp\htdocs\deploy\Demo\src\SoftMarshal\Bundle\MainBundle/Resources/views/Default/index.html.twig', '/var/www/web/bilyonedemo/htdocs/vendor/twig/twig/lib/Twig/Loader/Filesystem.php', '165', array('name' =&gt; 'SoftMarshalMainBundle:Default:index.html.twig', 'time' =&gt; '1384444091'))
  at filemtime('C:\xampp\htdocs\deploy\Demo\src\SoftMarshal\Bundle\MainBundle/Resources/views/Default/index.html.twig') in /var/www/web/bilyonedemo/htdocs/vendor/twig/twig/lib/Twig/Loader/Filesystem.php line 165
  at Twig_Loader_Filesystem-&gt;isFresh('SoftMarshalMainBundle:Default:index.html.twig', '1384444091') in /var/www/web/bilyonedemo/htdocs/app/cache/dev/classes.php line 4582
  at Twig_Environment-&gt;isTemplateFresh('SoftMarshalMainBundle:Default:index.html.twig', '1384444091') in /var/www/web/bilyonedemo/htdocs/app/cache/dev/classes.php line 4563
  at Twig_Environment-&gt;loadTemplate('SoftMarshalMainBundle:Default:index.html.twig') in /var/www/web/bilyonedemo/htdocs/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line 131
  at TwigEngine-&gt;load('SoftMarshalMainBundle:Default:index.html.twig') in /var/www/web/bilyonedemo/htdocs/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line 53
  at TwigEngine-&gt;render('SoftMarshalMainBundle:Default:index.html.twig', array()) in /var/www/web/bilyonedemo/htdocs/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 79
  at TwigEngine-&gt;render('SoftMarshalMainBundle:Default:index.html.twig', array()) in /var/www/web/bilyonedemo/htdocs/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Debug/TimedTwigEngine.php line 52
  at TimedTwigEngine-&gt;render('SoftMarshalMainBundle:Default:index.html.twig', array()) in /var/www/web/bilyonedemo/htdocs/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 108
  at TwigEngine-&gt;renderResponse('SoftMarshalMainBundle:Default:index.html.twig', array(), null) in /var/www/web/bilyonedemo/htdocs/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php line 106
  at Controller-&gt;render('SoftMarshalMainBundle:Default:index.html.twig') in /var/www/web/bilyonedemo/htdocs/src/SoftMarshal/Bundle/MainBundle/Controller/DefaultController.php line 11
  at DefaultController-&gt;indexAction()
  at call_user_func_array(array(object(DefaultController), 'indexAction'), array()) in /var/www/web/bilyonedemo/htdocs/app/bootstrap.php.cache line 2844
  at HttpKernel-&gt;handleRaw(object(Request), '1') in /var/www/web/bilyonedemo/htdocs/app/bootstrap.php.cache line 2818
  at HttpKernel-&gt;handle(object(Request), '1', true) in /var/www/web/bilyonedemo/htdocs/app/bootstrap.php.cache line 2947
  at ContainerAwareHttpKernel-&gt;handle(object(Request), '1', true) in /var/www/web/bilyonedemo/htdocs/app/bootstrap.php.cache line 2249
  at Kernel-&gt;handle(object(Request)) in /var/www/web/bilyonedemo/htdocs/web/app_dev.php line 29
  </code></pre>
  
  <p>Although, it works fine on my local machine.</p>