RWMB_File_Field does not have a method "post_edit_form_tag"

Support General RWMB_File_Field does not have a method "post_edit_form_tag"Resolved

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #39512
    Alaan TVAlaan TV
    Participant

    I started to get this error after updating the plugin to 1.16.7 when I'm trying to edit a custom taxonomy term channel:

    PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class RWMB_File_Field does not have a method "post_edit_form_tag" in ...../wp-includes/class-wp-hook.php:308
    Stack trace:
    #0 ...../wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #1 ...../wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #2 ...../wp-admin/edit-tag-form.php(111): do_action('channel_term_ed...')
    #3 ...../wp-admin/term.php(74): require('...../S...')
    #4 {main}
    thrown in ...../wp-includes/class-wp-hook.php on line 308
    
    #39520
    Alaan TVAlaan TV
    Participant

    This happens ONLY when the custom taxonomy has custom fields.

    #39521
    Alaan TVAlaan TV
    Participant

    You have deleted these lines from the file wp-content/plugins/meta-box/inc/fields/file.php, after putting them back the error disappeared:

    /**
     * Add data encoding type for file uploading
     */
    public static function post_edit_form_tag() {
        echo ' enctype="multipart/form-data"';
    }
    

    Could you please fix this ASAP!? 🙏🏻

    #39561
    PeterPeter
    Moderator

    Hello Alaan,

    Thanks for your feedback.

    The function name post_edit_form_tag is changed to add_form_enctype in the new version. I will inform the development team to update it in the MB Term Meta extension also.

    #39565
    Alaan TVAlaan TV
    Participant

    Thank you! Please do it ASAP 🙏🏻. It breaks some features here!

    #39792
    JulienJulien
    Participant

    Any idea about update ?

    I have same issue

    #39797
    JulienJulien
    Participant

    It's already fixed, sorry I wasn't on last version

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.