Notice (8): Trying to access array offset on value of type null [APP/Controller/VideosController.php, line 61]
Notice (8): Trying to access array offset on value of type null [APP/Controller/VideosController.php, line 74]
Notice (8): Trying to access array offset on value of type null [APP/Controller/VideosController.php, line 87]
Warning (512): Unable to emit headers. Headers sent in file=/var/www/almurshid-web/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/almurshid-web/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/almurshid-web/vendor/cakephp/cakephp/src/Error/Debugger.php:970) [CORE/src/Http/ResponseEmitter.php, line 197]
Error: Argument 1 passed to Cake\Http\Session::_overwrite() must be of the type array, null given, called in /var/www/almurshid-web/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/almurshid-web/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