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

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

TypeError
Toggle Vendor Stack Frames
/var/www/html/biznes/src/Controller/AppController.php Toggle Arguments
        } else {
            if(isset($language)){
                I18n::setLocale($language);
            } else {
                $language substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 02);
                if ($language == 'pl') {
                    I18n::setLocale('pl_PL');
                    $session->write('Config.language''pl_PL');
                } else {
Error in: ROOT/src/Controller/AppController.php, line 98

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