WordPress file/image uploader isn’t working with the front end form.
-
I’m using an image field type with my front end form. If I select browser as the uploader type, everything works as it should.
If I select default or WordPress the upload button doesn’t work on the front end form (It works as it should using the backend. )
This is the console error I get when I click to add image
”Uncaught TypeError: Cannot read property 'query' of undefined at n.addFrameStates (acf-input.min.js?ver=5.10.2:1) at n.initialize (acf-input.min.js?ver=5.10.2:1) at n.t (acf.min.js?ver=5.10.2:1) at n.acf.Model (acf.min.js?ver=5.10.2:1) at n [as constructor] (acf.min.js?ver=5.10.2:1) at new n (acf.min.js?ver=5.10.2:1) at Object.acf.newMediaPopup (acf-input.min.js?ver=5.10.2:1) at n.selectAttachment (acf-input.min.js?ver=5.10.2:1) at n.onClickAdd (acf-input.min.js?ver=5.10.2:1) at n.<anonymous> (acf.min.js?ver=5.10.2:1)
”
I have added <?php acf_form_head(); ?> to the top of my template file. I have also gone into the form settings and made sure the uploader is set to default or WordPress.
Do you know what could be causing this issue?
any help will be really appreciated
Thank you
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘WordPress file/image uploader isn’t working with the front end form.’ is closed to new replies.