Hi there.
I am getting an error when the WP Media Uploader is loading after hitting the ‘Add Image’ Button.
The error is:
GET https://0.0.0.10/ net::ERR_ADDRESS_UNREACHABLE
<?php
acf_form_head();
get_header();
?>
<div id="content">
<?php
acf_form(array(
'id' => 'ft-fly-auto-submit',
'post_id' => 'new_post',
'post_title' => true,
'post_content' => true,
'uploader' => 'wp',
'new_post' => array(
'post_type' => 'fly-pattern',
'post_status' => 'pending-fly'
),
'field_groups' => array('group_6403b6f4d0606'
),
));
?>
</div>
<?php acf_enqueue_uploader(); ?>
<?php get_footer(); ?>
Everything else seems to work…I just can’t get the media uploader to pop up with out an error…as a result I can’t use the Drag and Drop function. Interestingly I can use the media uploader to upload a file from a local drive.
I suspect the issue might have something to do with the section of the acf_form() documentation regarding modals…but when I add that code snippet:
// Trigger the append action and provide the newly appended jQuery element.
acf.do_action('append', $('#popup-id'));
I get a 502 error.
Any help would be appreciated.