Exception detected!

Error: Call to a member function getCategoryId() on null

500 Internal Server Error - FatalErrorException

Stack Trace

  1. in src/DDD/AppBundle/Controller/DefaultController.php at line 271  -
    1.             // song detail
    2.             $ttl str_replace(".html"""$url);
    3.             $song $em->getRepository('DDD\AppBundle\Entity\Audio')->findOneByTitleEncoded($ttl); //get related song
    4.             $categ_id $song->getCategoryId();
    5.             if (!$song) {
    6.                 //audio file not found in db

Logs  -

Stack Trace (Plain Text)  +