Notice (8): Undefined index: HTTP_REFERER [APP/Controller/PController.php, line 1670]
Warning (512): Unable to emit headers. Headers sent in file=/var/www/html/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/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/vendor/cakephp/cakephp/src/Error/Debugger.php:970) [CORE/src/Http/ResponseEmitter.php, line 197]
Error: stristr() expects parameter 1 to be string, null given

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

TypeError
Toggle Vendor Stack Frames
            return $this->redirect(['action' => 'index','controller' => 'pages']);
        }
        
        $app_type 15//UserLinks
        if(stristr($_SERVER["HTTP_REFERER"], "https://folioprojects.com/p/")){
            $app_type 14// ProjectLinks
        }
        
        try{
Error in: ROOT/src/Controller/PController.php, line 1670

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