Warning (2): file_put_contents(/var/www/html/logs/queries.log): failed to open stream: Permission denied [CORE/src/Log/Engine/FileLog.php, line 131]
Warning (2): file_put_contents(/var/www/html/logs/queries.log) [<a href='https://secure.php.net/function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: Permission denied [CORE/src/Log/Engine/FileLog.php, line 131]
Warning (2): Use of undefined constant DEFAULT_IMAGE_PATH - assumed 'DEFAULT_IMAGE_PATH' (this will throw an Error in a future version of PHP) [CORE/src/View/HelperRegistry.php, line 153]
Warning (512): Unable to emit headers. Headers sent in file=/var/www/html/vendor/cakephp/cakephp/src/Error/Debugger.php line=971 [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:971) [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:971) [CORE/src/Http/ResponseEmitter.php, line 201]
Error: Argument 1 passed to Cake\Http\Session::_overwrite() must be of the type array, null given, called in /var/www/html/vendor/cakephp/cakephp/src/Http/Session.php on line 513

Argument 1 passed to Cake\Http\Session::_overwrite() must be of the type array, null given, called in /var/www/html/vendor/cakephp/cakephp/src/Http/Session.php on line 513 📋

TypeError
Toggle Vendor Stack Frames
     * @param array $old Set of old variables => values
     * @param array $new New set of variable => value
     * @return void
     */
    protected function _overwrite(array &$old, array $new): void
    {
        if (!empty($old)) {
            foreach ($old as $key => $var) {
                if (!isset($new[$key])) {
Error in: ROOT/vendor/cakephp/cakephp/src/Http/Session.php, line 559

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