Support » Plugin: Magic Fields 2 » Image Media field not working after updating to WP 3.6

  • Resolved robthedog


    Hello; After updating to WP 3.6 image media fields are not updating once an image is uploaded or selected from the media library.

    All looks as if it’s working normally except that the “Insert into field” button has reverted to “Insert into post” and when clicked the image media field remains empty.

    Tried on several sites over two servers and the result is the same after updating to WP 3.6 from 3.5.

    Any help gratefully received…

Viewing 15 replies - 1 through 15 (of 20 total)
  • Same problem here.

    Any chance you found a solution?

    For Mafic Fields 2, in magic-fields-2/field_types/image_media_field/image_media_field.php.

    $out .= sprintf(‘%s‘,$field[‘input_id’],$link,__(‘Set Image’,$mf_domain));

    $out .= “<script>
    jQuery(‘a#thumb_”.$field[‘input_id’].”‘).click( function(){
    window.mf_field_id = jQuery(this).attr(‘id’);

    It work for me. 🙂

    @another13 brilliant, thanks. I just added your snippet of code before the

    return $out;

    Around line 112 So now looks like:

    $out .= '</div></div>';
        $out .= '</div>';
    	$out .= "<script>
    jQuery('a#thumb_".$field['input_id']."').click( function(){
    window.mf_field_id = jQuery(this).attr('id');
        return $out;

    Works like a charm thank you

    Confirmed working. Thanks another13!

    Jake Love


    Oh my gosh!! This SAVED MY BACON! Thank you so much!!!!

    Jake Love


    So I’m seeing this work one moment and then not the other for some reason.. Has anyone else been having this same behavior?

    Really appreciate the assistance!


    To another13 : Thanks man
    No need to wait for updating 😉

    Plugin Author hunk


    Hi, the problem in this is MF for image_field uses live of jquery, but jquery remove this function in 1.7. so never enter in the correct function. for fix this change this line ~237 in file js/mf_admin.js

    $(‘.update_field_media_upload’).live(‘click’, function(){

    for this

    $(‘.update_field_media_upload’).on(‘click’, function(){

    I’m changing all. live and soon will put a new version of MF

    Plugin Author hunk


    I updated the 2.2 version which corrects this

    Don’t work in 2.2 too

    Does anybody could fix this issue in WP 3.7 and MF 2.2?

    Extending issue description.

    “Insert into Field” button has changed to “Insert into Post” and image is inserted into post field instead of being inserted in media field.

    If no post field is set in cpt, when you click “Insert into post” button a blank page is shown inside iframe, and no image is inserted in media field.


    I’m having the same problem, specifically with the “Image Media” field type, not the regular Image field.

    Any workarounds?

    @manuelrazzari: If you require assistance then, as per the Forum Welcome, please post your own topic.

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Image Media field not working after updating to WP 3.6’ is closed to new replies.