Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined method closure::fields() #2422

Closed
Heraes-git opened this issue Mar 22, 2019 · 1 comment
Closed

Undefined method closure::fields() #2422

Heraes-git opened this issue Mar 22, 2019 · 1 comment
Assignees
Labels

Comments

@Heraes-git
Copy link

Heraes-git commented Mar 22, 2019

Hello,
I'm running Grav v1.6.0-rc.4 - Admin v1.9.0-rc.4.
Having a problem with the admin-addon-user-manager plugin that led me to open a ticket, I think that the problem is coming from a PHP error of syntax in the file \system\src\Grav\Common\User\DataUser\User.php, from line 154 to 157, as the Critkey error returns this code as failing :

public function getMediaFolder()
    {
        return $this->blueprints->fields()['avatar']['destination'] ?? 'user://accounts/avatars';
    }

I think it should be fields(['avatar']['destination']) instead of fields()['avatar']['destination'] .

Can you confirm me that ?

@Heraes-git
Copy link
Author

Thanks to @mahagr for the super quick support ! ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants