Notice (8): Undefined index: json [APP/Controller/AppController.php, line 89]
Warning (512): Unable to emit headers. Headers sent in file=/home/k/kayaby/nodul.dev.msapps.ru/public_html/vendor/cakephp/cakephp/src/Error/Debugger.php line=954 [CORE/src/Http/ResponseEmitter.php, line 71]
Warning (2): Cannot modify header information - headers already sent by (output started at /home/k/kayaby/nodul.dev.msapps.ru/public_html/vendor/cakephp/cakephp/src/Error/Debugger.php:954) [CORE/src/Http/ResponseEmitter.php, line 168]
Warning (2): Cannot modify header information - headers already sent by (output started at /home/k/kayaby/nodul.dev.msapps.ru/public_html/vendor/cakephp/cakephp/src/Error/Debugger.php:954) [CORE/src/Http/ResponseEmitter.php, line 197]
Error: json_decode() expects parameter 1 to be string, null given

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

TypeError
Toggle Vendor Stack Frames
        }
        // Проверяем на администратора аккаунта МойСклад
        $json $context['json'];
        $arr  json_decode($jsontrue);
        $context['isAdministrator'] = !empty($arr['permissions']['admin']['view']) && $arr['permissions']['admin']['view'] == 'ALL' true false;
        // Доступ к приложению только администраторам
        if ($onlyAdministrator && $context['isAdministrator'] == false) {
Error in: ROOT/src/Controller/AppController.php, line 90

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