Notice (1024) : Undefined property `PagesController::$Authentication` in `/var/www/html/src/Controller/PagesController.php` on line 43 [in /var/www/html/vendor/cakephp/cakephp/src/Controller/Controller.php, line 314]
Warning (512) : Unable to emit headers. Headers sent in file=/var/www/html/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php line=37 [in /var/www/html/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/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /var/www/html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 158]
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/html/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /var/www/html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 191]
Error: Call to a member function allowUnauthenticated() on null

Call to a member function allowUnauthenticated() on null 📋

Error
Error in: APP/Controller/PagesController.php, line 43
APP/Controller/PagesController.php at line 43 (edit)
     */
    public function beforeFilter(\Cake\Event\EventInterface $event): void
    {
        parent::beforeFilter($event);
        $this->Authentication->allowUnauthenticated(['display']);
    }
    /**
     * Displays a view

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