Support Forum
Support › Meta Box Group › Bug Metabox 5.10.0
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
Meta Box Group 1.3.14
Meta Box 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 Meta Box 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.
Thank you. I hope this issue is resolved soon.
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
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
Meta Box Group 1.3.14
Meta Box 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:
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:
Meta Box Group 1.3.14
Meta Box Tabs 1.1.13
These are the latest versions I have available.
That is how i reproduce the issue,
thank you
Hello! I have the exact same problem on all my sites. First item is missing. I am using MB Group with MB Blocks.
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?
Hello Chilpancingo,
Can you please update the plugin Meta Box Group to the new version 1.4.0 and recheck the issue?
Seeming the same issue with MetaBox 5.10.0 and Meta Box AIO 1.30.0. Tried using Meta Box 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.
Hello Peter,
Unfortunately, I'm unable to test using Meta Box Group 1.4.0 as my license has expired, and I no longer have access to the latest version.
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
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!
Perhaps related issue, key_value field is broken due to how code handles cloning.
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.
Hello Peter, has this issue already been patched in Meta Box 5.10.1?
Hello Chilpancingo,
Yes, please update Meta Box and MB extensions to the new version to fix the issue.
Let me know how it goes.
Thank you for your reply! Does this mean the older version is no longer supported?