Notice (8): Undefined index: id [APP/Controller/CursosController.php, line 733]
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('children')

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

InvalidArgumentException
Toggle Vendor Stack Frames
/var/www/html/portal-cake/vendor/cakephp/cakephp/src/ORM/Behavior/TreeBehavior.php Toggle Arguments
        [$for$direct] = [$options['for'], $options['direct']];
        if (empty($for)) {
            throw new InvalidArgumentException("The 'for' key is required for find('children')");
        }
        if ($query->clause('order') === null) {
            $query->order([$left => 'ASC']);

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