Bug Metabox 5.10.0
- This topic has 16 replies, 6 voices, and was last updated 7 months, 1 week ago by
Shalom Pennington.
-
AuthorPosts
-
August 20, 2024 at 7:52 PM #46179
Chilpancingo
ParticipantHello, 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.4meta 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.
Thank you. I hope this issue is resolved soon.
August 21, 2024 at 9:23 PM #46192Peter
ModeratorHello,
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-46151August 22, 2024 at 12:15 PM #46197Chilpancingo
ParticipantHello, 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:
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
August 22, 2024 at 2:05 PM #46198gerda
ParticipantHello! I have the exact same problem on all my sites. First item is missing. I am using MB Group with MB Blocks.
August 22, 2024 at 3:51 PM #46201Codog
ParticipantI 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?
August 22, 2024 at 10:14 PM #46207Peter
ModeratorHello Chilpancingo,
Can you please update the plugin MB Group to the new version 1.4.0 and recheck the issue?
August 23, 2024 at 5:35 AM #46212Shalom Pennington
ParticipantSeeming 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.
August 23, 2024 at 9:47 AM #46216Chilpancingo
ParticipantHello 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.
August 23, 2024 at 9:45 PM #46222Chilpancingo
ParticipantHello 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
August 30, 2024 at 11:48 AM #46292gerda
ParticipantHey 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!September 3, 2024 at 1:25 PM #46311digitaalitoimisto
ParticipantPerhaps related issue, key_value field is broken due to how code handles cloning.
September 4, 2024 at 10:04 PM #46330Peter
ModeratorHello,
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.
September 7, 2024 at 4:09 PM #46357Chilpancingo
ParticipantHello Peter, has this issue already been patched in Meta Box 5.10.1?
September 8, 2024 at 7:03 AM #46363Peter
ModeratorHello Chilpancingo,
Yes, please update Meta Box and MB extensions to the new version to fix the issue.
Let me know how it goes.
September 8, 2024 at 11:52 AM #46366Chilpancingo
ParticipantThank you for your reply! Does this mean the older version is no longer supported?
-
AuthorPosts
- You must be logged in to reply to this topic.