WordPress.org

Forums

Advanced Custom Fields
htmlspecialchars() expects parameter 1 to be string (5 posts)

  1. Paul de Wouters
    Human Made
    Posted 3 years ago #

    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/

  2. kjparish
    Member
    Posted 3 years ago #

    I am getting the same message. Any fix for this?

  3. ColinD
    Member
    Posted 3 years ago #

    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.

  4. kjparish
    Member
    Posted 3 years ago #

    Thank you so much! That's exactly what I needed. Hadn't even realized I'd added an empty field.

  5. Paul de Wouters
    Human Made
    Posted 3 years ago #

    thanks. I switched to using something else as I couldn't wait for a fix.
    But this will be useful for the plugin author.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Custom Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic