Notice (8): Trying to get property 'sigla' of non-object [APP/Controller/PaginasController.php, line 331]
Notice (8): Trying to get property 'sigla' of non-object [APP/Controller/PaginasController.php, line 340]
Warning (512): Unable to emit headers. Headers sent in file=/var/www/html/portal-cake/vendor/cakephp/cakephp/src/Error/Debugger.php line=831 [CORE/src/Http/ResponseEmitter.php, line 72]
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/html/portal-cake/vendor/cakephp/cakephp/src/Error/Debugger.php:831) [CORE/src/Http/ResponseEmitter.php, line 169]
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/html/portal-cake/vendor/cakephp/cakephp/src/Error/Debugger.php:831) [CORE/src/Http/ResponseEmitter.php, line 198]
Error: The 'for' key is required for find('path')

The 'for' key is required for find('path') 📋

InvalidArgumentException
Toggle Vendor Stack Frames
/var/www/html/portal-cake/vendor/cakephp/cakephp/src/ORM/Behavior/TreeBehavior.php Toggle Arguments
     */
    public function findPath(Query $query, array $options): Query
    {
        if (empty($options['for'])) {
            throw new InvalidArgumentException("The 'for' key is required for find('path')");
        }
        $config $this->getConfig();
        [$left$right] = array_map(

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