Support

Account

Home Forums Front-end Issues acf_form() add image js error

Helping

acf_form() add image js error

  • I’m using acf_form() to allow a specific role (a copy of author’s capabilities) to edit its own post on the frontend.

    Everything is fine but the image cf: it display the current image (previously set on the wp-admin) and if you click the edit (pencil) you can modify it but if you remove it (x) and then click the “add image” link this error shows up:

    Uncaught TypeError: e.parent.find is not a function
    acf-input.min.js?ver=5.9.3:1 
    

    So I set true the SCRIPT_DEBUG and the error is here:

    args.parent.find is not a function
    acf-input.js?ver=5.9.3:606
    

    I want to use the wp version (not the basic).
    I already tried to add wp_enqueue_media(); and acf_enqueue_uploader(); before the headers but no luck.
    For the record, the “add media” button on the post content works.

    Am I missing something?
    Any help would be much appreciate, thanks.

  • I solved it, for future references: the theme was using a custom compiled version of jquery with god knows what plugins embedded in it, removed and replaced with a clean version everything works fine now.

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.