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]
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: Too few arguments to function Cake\ORM\Table::newEntity(), 0 passed in /var/www/plrt/src/Controller/AnnouncementsController.php on line 3822 and at least 1 expected

Too few arguments to function Cake\ORM\Table::newEntity(), 0 passed in /var/www/plrt/src/Controller/AnnouncementsController.php on line 3822 and at least 1 expected 📋

ArgumentCountError
Toggle Vendor Stack Frames
            }
        }
        $session $this->request->getSession();
        $announcement $this->Announcements->newEntity();
        $announcements = [];
        try {
            $this->checkCountry($this->request->getQuery('country_id'));
Error in: ROOT/vendor/cakephp/cakephp/src/ORM/Table.php, line 2782

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