Home Forums Backend Issues (wp-admin) Unable to save Field If add


Unable to save Field If add

    • Zulff94

    • August 17, 2019 at 1:04 pm

    Hi everyone,

    I just started using acf plugin.
    Im using acf to add custom javascript/jquery in home page.

    My custom field is text area called “jquery_field”

    However, when I try to save(publish), it stuck at Updating and the field is never saved.

    The following is the content that I try to save:
    <script type=”text/javascript”>alert(“testing”);</script>

    But if I try inserting “//testtesttesttesttesttesttest” or “abc123”, the field is saved.

    The issue only happen when “<script>” is added.

    Debug.log content:
    Array to string conversion in /home/memberso/ on line 1111

    Any help is very much appreciated. Thank you.

  • I would think the data is sanitized to specifically prevent JS from being entered because this is a major security issue (script injection). The error message suggests that this is an error on the WordPress level, not with ACF itself.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.