Warning (2) : Attempt to read property "id" on null [in /var/www/coinstash.us/src/Controller/CategoriesController.php, line 47]
Warning (512) : Unable to emit headers. Headers sent in file=/var/www/coinstash.us/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php line=37 [in /var/www/coinstash.us/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 71]
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/coinstash.us/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /var/www/coinstash.us/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 168]
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/coinstash.us/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /var/www/coinstash.us/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 197]
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/coinstash.us/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /var/www/coinstash.us/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 197]
Error: The 'for' key is required for find('children')

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

InvalidArgumentException
CORE/src/ORM/Behavior/TreeBehavior.php at line 469 (edit)
        [$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