Title: [Plugin: Advanced Custom Fields] htmlspecialchars() expects parameter 1 to be string
Last modified: August 20, 2016

---

# [Plugin: Advanced Custom Fields] htmlspecialchars() expects parameter 1 to be string

 *  [Paul de Wouters](https://wordpress.org/support/users/pauldewouters/)
 * (@pauldewouters)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields-htmlspecialchars-expects-parameter-1-to-be-string/)
 * Hi
 * I get the following error with a WYSIWYG field
    `Warning: htmlspecialchars() 
   expects parameter 1 to be string, array given in /home/.../wp-content/plugins/
   advanced-custom-fields/core/fields/text.php on line 109`
 * [http://wordpress.org/extend/plugins/advanced-custom-fields/](http://wordpress.org/extend/plugins/advanced-custom-fields/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [kjparish](https://wordpress.org/support/users/kjparish/)
 * (@kjparish)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields-htmlspecialchars-expects-parameter-1-to-be-string/#post-2398327)
 * I am getting the same message. Any fix for this?
 *  [ColinD](https://wordpress.org/support/users/colind/)
 * (@colind)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields-htmlspecialchars-expects-parameter-1-to-be-string/#post-2398328)
 * I just got this error and figured it out. Go to settings->advanced custom fields
   and edit the field group that’s causing the error. In my case, in my field group
   I had accidentally clicked the “add field” button and left it there mostly empty(
   no name, etc.) Deleting that field resolved the issue.
 *  [kjparish](https://wordpress.org/support/users/kjparish/)
 * (@kjparish)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields-htmlspecialchars-expects-parameter-1-to-be-string/#post-2398329)
 * Thank you so much! That’s exactly what I needed. Hadn’t even realized I’d added
   an empty field.
 *  Thread Starter [Paul de Wouters](https://wordpress.org/support/users/pauldewouters/)
 * (@pauldewouters)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields-htmlspecialchars-expects-parameter-1-to-be-string/#post-2398355)
 * thanks. I switched to using something else as I couldn’t wait for a fix.
    But
   this will be useful for the plugin author.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: Advanced Custom Fields] htmlspecialchars() expects parameter
1 to be string’ is closed to new replies.

 * ![](https://ps.w.org/advanced-custom-fields/assets/icon.svg?rev=3207824)
 * [Advanced Custom Fields (ACF®)](https://wordpress.org/plugins/advanced-custom-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-custom-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-custom-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-custom-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-custom-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-custom-fields/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Paul de Wouters](https://wordpress.org/support/users/pauldewouters/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields-htmlspecialchars-expects-parameter-1-to-be-string/#post-2398355)
 * Status: not resolved