Warning (2) : Undefined array key "page" [in /var/www/html/Lexicon2/src/Model/Table/WordsTable.php, line 259]
Warning (2) : Undefined array key "page" [in /var/www/html/Lexicon2/src/Model/Table/WordsTable.php, line 264]
Warning (512) : Unable to emit headers. Headers sent in file=/var/www/html/Lexicon2/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php line=37 [in /var/www/html/Lexicon2/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/Lexicon2/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /var/www/html/Lexicon2/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/Lexicon2/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /var/www/html/Lexicon2/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 192]
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/html/Lexicon2/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /var/www/html/Lexicon2/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 192]
Error: ucfirst(): Argument #1 ($string) must be of type string, null given

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

TypeError
Error in: APP/Model/Table/WordsTable.php, line 264
APP/Model/Table/WordsTable.php at line 264 (edit)
                        'type' => 'LEFT',
                        'conditions' => 'Words.id = d.word_id']])
                ->where([$params, 
                         'language_id' => $langid])
                ->contain([ucfirst($pluralization[$ortdtype])])
                         ->distinct()
                ->order(['spelling' => 'ASC']);
        return $query;
    }

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