Home › Forums › Front-end Issues › JS Error – Front End Image Upload
Hi
I am using acf form for front end submission, this form contains image upload field, If I click on Add Image button nothing happens , if I check in console i found following error, can u pls help, I tried by login as admin as well same issue
Uncaught ReferenceError: wp is not defined input.min.js?ver=4.3.8:1
acf.fields.image.popup input.min.js?ver=4.3.8:1
(anonymous function) input.min.js?ver=4.3.8:1
x.event.dispatch jquery.js?ver=1.10.2:4
v.handle
Hi
Following is the template code
<?php
/* Template Name: Add Service
*/
acf_form_head();
the_post();
?>
<?php include (TEMPLATEPATH . ‘/header-inner.php’); ?>
<section id=”main_content”>
<div class=”container”>
<div class=”row”>
<div class=”col-lg-10 col-md-15 col-sm-15″>
<div class=”col-item”>
<span class=”ribbon_course”></span>
<div class=”photo”>
<div class=”cat_row voilet”>Input Here</div>
</div>
<div class=”info voilet-text”>
<div class=”row add_bottom_5″>
<div class=”form-body”>
<div class=”col-md-8″>
<div id=”primary”>
<div id=”content” role=”main”>
<?php
$args = array(
‘post_id’ => ‘new’,
‘field_groups’ => array( 5303 )
);
acf_form( $args );
?>
</div><!– #content –>
</div><!– #primary –>
</div>
</div>
</div>
</div>
</div><!– End row –>
</div><!– End container –>
</section><!– End main_content –>
<?php get_footer(); ?>
Hi
I even tried by using the exact code which is shown in following article
http://www.advancedcustomfields.com/resources/how-to/create-a-front-end-form/
but still Add Image button gives same error
I did one small test I tried by removing header, and I found that now I can see two options near Add Image button – (Remove,Edit) these buttons are not getting shown when we use header so some thing issue with js files if u required I can give wp login details and cpanel access
http://ezwebstore.in/health/add-new-service/
Thanks
I have this problem as well. Anyone have a solution?
When I click on the Add Image on any of my front end forms I get the following error in the console:
Uncaught ReferenceError: wp is not defined input.min.js?ver=4.3.8:1
acf.fields.image.popup input.min.js?ver=4.3.8:1
(anonymous function) input.min.js?ver=4.3.8:1
n.event.dispatch jquery.js?ver=1.11.0:3
r.handle jquery.js?ver=1.11.0:3
I had a similar error but it was in the admin. I deactivated the WooDojo plugin and it fixed the problem so you may have to deactivate each plugin and retest to see if one is causing the error.
The topic ‘JS Error – Front End Image Upload’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.