Warning (2) : Trying to access array offset on null [in /var/www/html/doorledgers/src/Controller/UsersController.php, line 438]
Warning (512) : Unable to emit headers. Headers sent in file=/var/www/html/doorledgers/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php line=37 [in /var/www/html/doorledgers/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 65]
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/html/doorledgers/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /var/www/html/doorledgers/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 159]
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/html/doorledgers/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /var/www/html/doorledgers/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 192]
Error: str_starts_with(): Argument #1 ($haystack) must be of type string, null given

str_starts_with(): Argument #1 ($haystack) must be of type string, null given 📋

TypeError
Error in: APP/Controller/UsersController.php, line 439
APP/Controller/UsersController.php at line 439 (edit)
        $config = Configure::read('OAuth.Google');
        // Build absolute redirect URI
        $redirectUri = $config['redirectUri'];
        if (!str_starts_with($redirectUri, 'http')) {
            $request = $this->getRequest();
            $baseUrl = $request->scheme() . '://' . $request->host();
            $redirectUri = $baseUrl . $redirectUri;
        }

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