Notice (1024) : Undefined property: SongsController::$Movie in /var/www/vhosts/bollygane.com/httpdocs/src/Controller/SongsController.php on line 108 [in /var/www/vhosts/bollygane.com/httpdocs/vendor/cakephp/cakephp/src/Controller/Controller.php, line 342]
Warning (512) : Unable to emit headers. Headers sent in file=/var/www/vhosts/bollygane.com/httpdocs/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php line=37 [in /var/www/vhosts/bollygane.com/httpdocs/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 71]
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/vhosts/bollygane.com/httpdocs/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /var/www/vhosts/bollygane.com/httpdocs/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 164]
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/vhosts/bollygane.com/httpdocs/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /var/www/vhosts/bollygane.com/httpdocs/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 197]
Error: Call to a member function findAllBySlug() on null

Call to a member function findAllBySlug() on null 📋

Error
Error in: APP/Controller/SongsController.php, line 108
APP/Controller/SongsController.php at line 108 (edit)
        $this->loadModel('Advertisements');
        $this->loadModel('SearchContents');
        $this->set('tcategory'$this->Category->findAllByType('1'));
        $this->set('lcategory'$this->Category->findAllByType('2'));
        $movies=$this->Movie->findAllBySlug($slug);
        //$this->set('movies', $movies);
        // $movies = $this->Songs->find()
        // ->contain(['Movies'])
        // ->where(['Songs.slug' => $slug])

If you want to customize this error message, create templates/Error/error500.php