Notice (8): Trying to get property 'locale' of non-object [APP/Controller/AppController.php, line 53]
Warning (512): Unable to emit headers. Headers sent in file=/var/www/vhosts/amber.lexiconnect.uk/httpdocs/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/vhosts/amber.lexiconnect.uk/httpdocs/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/vhosts/amber.lexiconnect.uk/httpdocs/vendor/cakephp/cakephp/src/Error/Debugger.php:970) [CORE/src/Http/ResponseEmitter.php, line 197]
Error: Argument 1 passed to Cake\I18n\I18n::setLocale() must be of the type string, null given, called in /var/www/vhosts/amber.lexiconnect.uk/httpdocs/src/Controller/AppController.php on line 53

Argument 1 passed to Cake\I18n\I18n::setLocale() must be of the type string, null given, called in /var/www/vhosts/amber.lexiconnect.uk/httpdocs/src/Controller/AppController.php on line 53 📋

TypeError
Toggle Vendor Stack Frames
     *
     * @param string $locale The name of the locale to set as default.
     * @return void
     */
    public static function setLocale(string $locale): void
    {
        static::getDefaultLocale();
        Locale::setDefault($locale);
        if (isset(static::$_collection)) {
Error in: ROOT/vendor/cakephp/cakephp/src/I18n/I18n.php, line 218

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