Problems with update from 4.8.7 to 4.9.6

Support General Problems with update from 4.8.7 to 4.9.6

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4337
    MikeTrebilcockMikeTrebilcock
    Participant

    Hi, I have fallen a little behind with Metabox updates and as I feared now when I update I am seeing issues.(4.8.7 to 4.9.6)

    I have updated all my extensions to the latest version (Conditional logic, group and term meta) which is fine until I update the core plugin, then I see that most of the custom fields lose their values and appear blank.

    There are no errors from WP or in the browser console so I have no idea what the problem is or where to start.

    Once the plug-in is rolled back everything is fine again.

    #4342
    Anh TranAnh Tran
    Keymaster

    Hmm, it might relates with the way you register meta boxes. In 4.9.x, the biggest change is the WPML compatibility, which **forces** Meta Box to use init action to register meta boxes instead of previous admin_init.

    So, if you wrap your code like this:

    add_action( 'init', 'your_function' );
    function your_function() {
        add_filter( 'rwmb_meta_boxes', 'slug_register_meta_boxes' );
    }

    where init or any other hook is used, please change it to:

    add_filter( 'rwmb_meta_boxes', 'slug_register_meta_boxes' );

    I'm not sure if that's the correct problem, but some people meet it, so I guess you do. Please check your code for that.

    #4404
    MikeTrebilcockMikeTrebilcock
    Participant

    Sorry for the slow reply.

    Just made the changes you suggested and it seems to have done the trick.
    Many thanks for you help with this one.

    Cheers

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Problems with update from 4.8.7 to 4.9.6’ is closed to new replies.