WordPress.org

Forums

Custom Field Suite
[resolved] File Upload field within a Loop field js error: "_e is not defined (6 posts)

  1. baysaa
    Member
    Posted 2 years ago #

    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/

  2. logikal16
    Member
    Plugin Author

    Posted 2 years ago #

    @baysaa - Thanks for reporting. I'll try to reproduce the issue now.

  3. logikal16
    Member
    Plugin Author

    Posted 2 years ago #

    @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');
  4. baysaa
    Member
    Posted 2 years ago #

    That did it. Brilliant. Now that's what I call fast support! :)

  5. baysaa
    Member
    Posted 2 years ago #

    I don't know if you need to mark it as "Resolved" but I'll just tick the box.

  6. logikal16
    Member
    Plugin Author

    Posted 2 years ago #

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

    Please rate the plugin if you haven't already!

    Matt

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Field Suite
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic