Bug Metabox 5.10.0

Support MB Group Bug Metabox 5.10.0

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #46179
    ChilpancingoChilpancingo
    Participant

    Hello, i want to report a bug in the latest Meta box 5.10.0

    my environment

    WP Version 6.6.1
    Meta Box 5.10.0
    MB Group 1.3.14
    MB Tabs 1.1.13
    Classic Editor 1.6.4

    meta box code

    
    add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes' );
    function your_prefix_register_meta_boxes( $meta_boxes )
    {
    	$meta_boxes[] = array(
            'title'  => 'Data Sample',
    		'pages' => array( 'post' ),
    		'tabs'      => array(
                'input-version' => array(
                    'label' => 'Input Version',
                    'icon'  => 'dashicons-admin-customizer',
                ),
                'shortcode-version'  => array(
                    'label' => 'Shortcode Version',
                    'icon'  => 'dashicons-editor-code',
                ),
            ),
    		'tab_style' => 'default',
            'fields' => array(
                array(
                    'id'     => 'metagroup',
                    'type'   => 'group',
                    'clone'  => true,
    				'sort_clone'  => true,
    				'save_state' => true,
    				'desc' => '<b style="color:red;">You can insert here</b>',
    				'tab'  => 'input-version',
                    'fields' => array(
                        array(
                            'name'  => 'Name',
                            'id'    => 'name',
                            'type'  => 'text',
    						'columns' => '2',
                        ),
    					array(
                            'name'  => 'Location',
                            'id'    => 'location',
                            'type'  => 'text',
    						'columns' => '2',
                        ),
    					array(
                            'name'  => 'Order',
                            'id'    => 'order',
                            'type'  => 'text',
    						'columns' => '2',
                        ),
    					array(
                            'name'  => 'Username',
                            'id'    => 'username',
                            'type'  => 'text',
    						'columns' => '2',
                        ),
                        array(
                            'name'   => 'Description',
                            'id'     => 'desc',
                            'type'   => 'textarea',
    						'columns' => '4',
    						'rows' => '5',
    						'sanitize_callback' => 'none',
                        ),
                    ), //episode
                ), //input-version
    			array(
                    'name'  => __( 'Shortcode', 'meta-box' ),
                    'id'    => "scgr",
                    'type'  => 'textarea',
    				'clone' => 'true',
    				'sort_clone'  => true,
    				'sanitize_callback' => 'none',
    				'tab' => 'shortcode-version',
                ),
            ),
        );
    	return $meta_boxes;
    }
    

    I'm having a problem with the MB Group. When I add new data to a cloneable field group, it always loses one item. I've included a video that shows the issue.

    https://www.dropbox.com/scl/fi/w34m0ckuevj5ekp1ywb8n/Recording-2024-08-20-194440.mp4?rlkey=ime9rjsk524ysdklucw0gdyym&st=5ze6m2vh&dl=0

    Thank you. I hope this issue is resolved soon.

    #46192
    PeterPeter
    Moderator

    Hello,

    I'm not able to reproduce the issue on my demo site. All sub-field values and clone entries are saved as well. Please try to increase the PHP setting max_input_vars value and check the issue again. Following the documentation https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/
    and this topic https://support.metabox.io/topic/setting-up-a-post-type-loaction-on-the-custom-fields-was-not-saving/#post-46151

    #46197
    ChilpancingoChilpancingo
    Participant

    Hello, Thank you for responding to my thread. But..

    The data is already saved in the database. As you can see, after publishing the post and visiting it (front end), the array shows that the data is present. However, when returning to the editor, one piece of data is missing.

    Have you tested it in the same environment as I have?

    
    WP Version 6.6.1
    Meta Box 5.10.0
    MB Group 1.3.14
    MB Tabs 1.1.13
    Classic Editor 1.6.4
    

    I've tested it on a fresh WordPress installation using MetaBox 5.9.11, and the error doesn't occur.

    Please watch this video as proof that MetaBox 5.9.11 does not have this issue:

    https://www.dropbox.com/scl/fi/leyc5kw7ugfrecqx50pv1/firefox_nbuKLlfFdD.mp4?rlkey=go0cneylox7c0wflucu0hj4u1&st=j0niklgp&dl=0

    In the video, I first activate MetaBox 5.9.11 and create a post. There is no missing data. Then, I go back to the plugin page, switch from MetaBox 5.9.11 to 5.10.0, and reopen the previously created post (which was made using MetaBox 5.9.11). As expected, one piece of data is missing in the editor. However, when I visit the post page on the front end, it shows that the data is still in the database—MetaBox 5.10.0 simply fails to display all the data in the editor.

    Next, I create a new post using MetaBox 5.10.0, and again, one piece of data is missing. I then switch back from MetaBox 5.10.0 to 5.9.11 and reopen the post that was created with MetaBox 5.10.0. This time, no data is missing.

    ---
     
    I'm not sure if this issue only occurs with:

    
    MB Group 1.3.14
    MB Tabs 1.1.13
    

    These are the latest versions I have available.

    That is how i reproduce the issue,

    thank you

    #46198
    gerdagerda
    Participant

    Hello! I have the exact same problem on all my sites. First item is missing. I am using MB Group with MB Blocks.

    #46201
    CodogCodog
    Participant

    I am also experiencing an issue with MB Group clones after the upgrade to 5.10.0. See thread here - https://support.metabox.io/topic/metabox-5-10-0-metabox-aio-1-30-0-max_clone-issue/. They could be related issues?

    #46207
    PeterPeter
    Moderator

    Hello Chilpancingo,

    Can you please update the plugin MB Group to the new version 1.4.0 and recheck the issue?

    #46212
    Shalom PenningtonShalom Pennington
    Participant

    Seeming the same issue with MetaBox 5.10.0 and Meta Box AIO 1.30.0. Tried using MB Group 1.4.0, but still same error with when updating group field via rwmb_set_meta(), which has been running flawlessly for well over a year until 5.10.0 update. It just wipes out the group field entirely anytime try to update via rwmb_set_meta()

    Rolled back to 5.9.10 solves the problem.

    #46216
    ChilpancingoChilpancingo
    Participant

    Hello Peter,

    Unfortunately, I'm unable to test using MB Group 1.4.0 as my license has expired, and I no longer have access to the latest version.

    #46222
    ChilpancingoChilpancingo
    Participant

    Hello Peter,

    For additional information, I replaced the /inc/clone.php file from Meta Box 5.10.0 with the one from version 5.9.11, and it resolved the issue. I hope this helps with debugging.

    thanks

    #46292
    gerdagerda
    Participant

    Hey there,
    can we expect an update that fixed the problem soon?
    I've sold over 1000 themes using MB Blocks with MB Group and I keep getting emails from customers every day and I have to tell them to roll back...
    Thank you!

    #46311
    digitaalitoimistodigitaalitoimisto
    Participant

    Perhaps related issue, key_value field is broken due to how code handles cloning.

    #46330
    PeterPeter
    Moderator

    Hello,

    There is an issue with the cloneable group field in the new version of Meta Box 5.10.0 and our development team is working on it. The fix for the issue will be included in the next update of MB plugins.

    Thanks.

    #46357
    ChilpancingoChilpancingo
    Participant

    Hello Peter, has this issue already been patched in Meta Box 5.10.1?

    #46363
    PeterPeter
    Moderator

    Hello Chilpancingo,

    Yes, please update Meta Box and MB extensions to the new version to fix the issue.

    Let me know how it goes.

    #46366
    ChilpancingoChilpancingo
    Participant

    Thank you for your reply! Does this mean the older version is no longer supported?

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