Installed the latest ACF and created a custom field to display on only pages using a text area. I now see the following error when editing a page…
Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/yellowco/public_html/randy/wp-includes/formatting.php on line 3058
No idea if this is applicable to you, but just in case it helps anybody in the future I had the same error message (though on an Options page with a textarea field) and it turned out to be unrelated to my fields at all, but because I had a deleted ACF Field Group in the trash. It was a duplicated and renamed group from an ACF import. Anyway, I emptied the Field Group trash and the error went away and my page fields worked again.
Not sure if it will help you, @martin-matties, but it’s worth trying:
Go to your Field Groups and see if you have any field groups in the trash:
If yes, click “Trash” then empty it by clicking “Delete permanently” on the field group(s).
If you don’t have any in the trash or that doesn’t help — hopefully somebody else can help you.
Thank you for the clarification @enfueggo seems as if I do not have a trash option.
Must mean I do not currently have trash.
Also to note I said same issue as in the behavior described is the same but the error is actually different.
: htmlspecialchars() expects parameter 1 to be string, array given in
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2022 Advanced Custom Fields.