Deprecated (8192) : str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated [in /home/site/wwwroot/src/Controller/WarrantyController.php, line 88]
Warning (512) : Unable to emit headers. Headers sent in file=/home/site/wwwroot/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php line=36 [in /home/site/wwwroot/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 71]
Warning (2) : Cannot modify header information - headers already sent by (output started at /home/site/wwwroot/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:36) [in /home/site/wwwroot/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 168]
Warning (2) : Cannot modify header information - headers already sent by (output started at /home/site/wwwroot/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:36) [in /home/site/wwwroot/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 197]
Error: Cake\Http\Session::_overwrite(): Argument #1 ($old) must be of type array, null given, called in /home/site/wwwroot/vendor/cakephp/cakephp/src/Http/Session.php on line 508

Cake\Http\Session::_overwrite(): Argument #1 ($old) must be of type array, null given, called in /home/site/wwwroot/vendor/cakephp/cakephp/src/Http/Session.php on line 508 📋

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
    {
        foreach ($old as $key => $var) {
            if (!isset($new[$key])) {
                unset($old[$key]);

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