I have the same error, with a simple text field !
if I // update_field(‘slug_de_larticle’,$cSlug); then it works.
BTW i use also a repeater field, but the text field is not a part of it.
Thanks for your help.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users