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