Exception detected!

Warning: filesize(): stat failed for /home/dequatec/home/http/src/PointWeb/ProductBundle/Controller/../../../../web/upload/doc/7564f2683dd35e74a0ba466f7e64ebf1179c4bbf.pdf

500 Internal Server Error - ContextErrorException

Stack Trace

  1. in src/PointWeb/ProductBundle/Controller/ProductController.php at line 330  -
    1.     public function download($file)
    2.     {
    3.         $basename basename($file);
    4.         $length filesize($file);
    5.         header('Content-Description: File Transfer');
    6.         header('Content-Type: application/octet-stream');
    7.         header('Content-Disposition: attachment; filename="' $basename '"');
  2. at ErrorHandler ->handleError ('2', 'filesize(): stat failed for /home/dequatec/home/http/src/PointWeb/ProductBundle/Controller/../../../../web/upload/doc/7564f2683dd35e74a0ba466f7e64ebf1179c4bbf.pdf', '/home/dequatec/home/http/src/PointWeb/ProductBundle/Controller/ProductController.php', '330', array('file' => '/home/dequatec/home/http/src/PointWeb/ProductBundle/Controller/../../../../web/upload/doc/7564f2683dd35e74a0ba466f7e64ebf1179c4bbf.pdf', 'basename' => '7564f2683dd35e74a0ba466f7e64ebf1179c4bbf.pdf'))
  3. at filesize ('/home/dequatec/home/http/src/PointWeb/ProductBundle/Controller/../../../../web/upload/doc/7564f2683dd35e74a0ba466f7e64ebf1179c4bbf.pdf')
    in src/PointWeb/ProductBundle/Controller/ProductController.php at line 330  +
  4. at ProductController ->download ('/home/dequatec/home/http/src/PointWeb/ProductBundle/Controller/../../../../web/upload/doc/7564f2683dd35e74a0ba466f7e64ebf1179c4bbf.pdf')
    in src/PointWeb/ProductBundle/Controller/ProductController.php at line 307  +
  5. at ProductController ->downloadDocAction ('9')
  6. at call_user_func_array (array(object(ProductController), 'downloadDocAction'), array('9'))
    in app/bootstrap.php.cache at line 3054  +
  7. at HttpKernel ->handleRaw (object(Request), '1')
    in app/bootstrap.php.cache at line 3016  +
  8. at HttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 3165  +
  9. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 2406  +
  10. at Kernel ->handle (object(Request))
    in web/app.php at line 28  +

Logs  -

Stack Trace (Plain Text)  +