Notice (8): Undefined index: HTTP_REFERER [APP/Controller/Admin/FilesController.php, line 30]
Warning (512): Unable to emit headers. Headers sent in file=/var/www/html/fostercare/vendor/cakephp/cakephp/src/Error/Debugger.php line=970 [CORE/src/Http/ResponseEmitter.php, line 71]
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/html/fostercare/vendor/cakephp/cakephp/src/Error/Debugger.php:970) [CORE/src/Http/ResponseEmitter.php, line 168]
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/html/fostercare/vendor/cakephp/cakephp/src/Error/Debugger.php:970) [CORE/src/Http/ResponseEmitter.php, line 197]
Error: strpos() expects parameter 1 to be string, null given

strpos() expects parameter 1 to be string, null given 📋

TypeError
Toggle Vendor Stack Frames
    {
        $session $this->request->getSession();
        $admin_user  $session->read('logindata');
        $front_user  $session->read('frontlogindata');
        if(empty($admin_user) && empty($front_user) && strpos($_SERVER['HTTP_REFERER'], 'fostercareregistration') == false && $this->request->getEnv('HTTP_REFERER') != 'https://fc.wcdcommpune.com/' )
        {
           return $this->redirect('../../unauthorized-access.php');
        }
        $file $this->getParam('file''');
Error in: ROOT/src/Controller/Admin/FilesController.php, line 30

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