Warning: file_get_contents(/home/footballfightmus/domains/footballfightmusic.com/tvtunes/app/../web/uploads/audio/Memphis - I'm So Glad.mp3): failed to open stream: No such file or directory
500 Internal Server Error - ContextErrorException
Stack Trace
-
in src/DDD/AppBundle/Controller/DefaultController.php at line 405
$em->persist($song);
$em->flush();
$path = $this->container->getParameter('assetic.write_to') . "/uploads/audio/" . $song->getFileName();
$content = file_get_contents($path);
$response = new Response($content, 200, array(
'Content-Type' => 'audio/mpeg3',
'Content-Disposition' => 'attachment; filename="' . $song->getFileName() . '"',
- at ErrorHandler ->handleError ('2', 'file_get_contents(/home/footballfightmus/domains/footballfightmusic.com/tvtunes/app/../web/uploads/audio/Memphis - I'm So Glad.mp3): failed to open stream: No such file or directory', '/home/footballfightmus/domains/footballfightmusic.com/tvtunes/src/DDD/AppBundle/Controller/DefaultController.php', '405', array('id' => '13413', 'em' => object(EntityManager), 'song' => object(Audio), 'path' => '/home/footballfightmus/domains/footballfightmusic.com/tvtunes/app/../web/uploads/audio/Memphis - I'm So Glad.mp3'))
-
at
file_get_contents
('/home/footballfightmus/domains/footballfightmusic.com/tvtunes/app/../web/uploads/audio/Memphis - I'm So Glad.mp3')
in src/DDD/AppBundle/Controller/DefaultController.php at line 405 - at DefaultController ->downloadSongAction ('13413')
-
at
call_user_func_array
(array(object(DefaultController), 'downloadSongAction'), array('13413'))
in app/bootstrap.php.cache at line 3038 -
at
HttpKernel
->handleRaw
(object(Request), '1')
in app/bootstrap.php.cache at line 3000 -
at
HttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 3149 -
at
ContainerAwareHttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 2390 -
at
Kernel
->handle
(object(Request))
in web/app.php at line 23