Warning (512) : Support for loading components using $components property is removed. Use $this->loadComponent() instead in initialize(). - [internal], line: ?? [in /var/www/plrt/vendor/cakephp/cakephp/src/Core/functions.php, line 268]
Notice (1024) : Undefined property: AnnouncementsController::$Comments in /var/www/plrt/src/Controller/AnnouncementsController.php on line 3110 [in /var/www/plrt/vendor/cakephp/cakephp/src/Controller/Controller.php, line 337]
Warning (512) : Unable to emit headers. Headers sent in file=/var/www/plrt/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php line=36 [in /var/www/plrt/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 71]
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/plrt/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:36) [in /var/www/plrt/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 168]
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/plrt/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:36) [in /var/www/plrt/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 197]
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/plrt/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:36) [in /var/www/plrt/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 197]
Error: Call to a member function getComments() on null

Call to a member function getComments() on null 📋

Error
Toggle Vendor Stack Frames
            'or call the other action as a method.'
        );
        $this->setRequest($this->request->withParam('action'$action));
        return $this->$action(...$args);
    }
    /**
     Instantiates the correct view class, hands it its data, and uses it to render the view output.
Error in: ROOT/src/Controller/AnnouncementsController.php, line 3110

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