Support » Plugin: Custom Field Suite » [Plugin: Custom Field Suite] File Upload field within a Loop field js error: "_e is not defined

  • Resolved baysaa

    (@baysaa)


    Hi,

    I’ve just installed version 1.66 of Custom Fields Suite plugin on my WordPress 3.4.1.

    Straight away I tried the Loop field with a file upload field inside it.

    However when I click “Add row” button and then try the “Add image” button to upload a file, the upload dialog never opens and in my chrome’s javascript console I get this error (everytime the button is pressed):

    Uncaught ReferenceError: _e is not defined

    More details:


    Uncaught ReferenceError: _e is not defined post-new.php:471
    (anonymous function) post-new.php:471
    f.event.dispatch load-scripts.php:3
    f.event.add.h.handle.i load-scripts.php:3

    http://wordpress.org/extend/plugins/custom-field-suite/

Viewing 5 replies - 1 through 5 (of 5 total)
  • @baysaa – Thanks for reporting. I’ll try to reproduce the issue now.

    @baysaa – On line 149 of custom-field-suite/core/fields/file.php, can you try replacing:

    tb_show(_e('Attach file', 'cfs'), 'media-upload.php?post_id=<?php echo $post->ID; ?>&cfs_file=1&TB_iframe=1&width=640&height=480');

    with:

    tb_show('<?php _e('Attach file', 'cfs'); ?>', 'media-upload.php?post_id=<?php echo $post->ID; ?>&cfs_file=1&TB_iframe=1&width=640&height=480');

    That did it. Brilliant. Now that’s what I call fast support! 🙂

    I don’t know if you need to mark it as “Resolved” but I’ll just tick the box.

    Great, thanks. I’ll release an update to the plugin shortly.

    Please rate the plugin if you haven’t already!

    Matt

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Custom Field Suite] File Upload field within a Loop field js error: "_e is not defined’ is closed to new replies.