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

Impossible to edit ACF fields for a current User (not a problem of authentication) #383

Open
djoo opened this issue Jul 13, 2021 · 0 comments

Comments

@djoo
Copy link

djoo commented Jul 13, 2021

Hi,

When i try to edit fields of a user i have the error :
{"code":"cant_update_item","message":"Cannot update item","data":{"status":500}}

My endpoint is : wp-json/acf/v3/users/(ID)

I use PUT method.

Idea of fix, but it's a problem

After few hours I found something really weird that make it works but i can't use this forever :
I need to put a rule in my ACF configuration like this to make it works (with the OR) :
Works

This configuration add all the ACF fields for all elements (post, custom post type...), but let the UPDATE works through the API.
The problem is that i can't let this fields everywhere. So i need to find a solution to make it works with this configuration
Works

How can i do this ?

Thanks

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

No branches or pull requests

1 participant