Problem with saving
- This topic has 12 replies, 4 voices, and was last updated 4 months, 1 week ago by
Hazmi.
-
AuthorPosts
-
November 18, 2024 at 8:40 PM #46954
Hazmi
ParticipantHi, I'm using a clone group inside a clone group. If I create a new subgroup, its content doesn't save when I save the post. If I fill in the same subgroup a second time, its content saves fine. The code worked for me for a client for a few years, but he noticed that this stopped working. WP 6.7, MB Group 1.4.3
November 18, 2024 at 11:34 PM #46959Peter
ModeratorHello Hazmi,
Thank you for your feedback.
I can reproduce the issue on the demo site and I've escalated it to the development team to fix the issue. I will let you know when it's done.
November 21, 2024 at 11:29 AM #46992Jai Ivarsson
ParticipantI've just discovered this bug too after updating my composer dependences.
Is there somewhere we can track the ticket apart from this post?November 26, 2024 at 2:55 PM #47024Hazmi
ParticipantHi, is there any estimate when this annoying bug will be fixed? It's making it hard to work.
November 27, 2024 at 9:51 AM #47034Tan Nguyen
ParticipantDear Hazmi, I have fixed this issue, need to test today and you will get an update shortly.
November 29, 2024 at 7:39 PM #47066Hazmi
ParticipantHi Tan, I really need to fix this issue. My clients can't work and are waiting..
November 30, 2024 at 5:36 AM #47076Tan Nguyen
ParticipantDear Hazmi,
While waiting for the original update, can you please try replacing meta-box-group/group.js with this file?
https://gist.github.com/tanftw/405e373c4cd388f2f3f999fac2953501
Cheers!
December 6, 2024 at 4:59 AM #47111Jai Ivarsson
ParticipantI have just tried dropping in that JS file into my vendor/meta-box/meta-box-group/group.js file and it doesn't fix the issue.
I have a major deadline that I can't hit right now because I can't specify an earlier version of the extension in my composer.json file. When is this fix getting pushed through?December 6, 2024 at 10:29 AM #47112Tan Nguyen
ParticipantDear Jai,
Can you please also replace meta-box/js/clone.js with this file?
https://gist.github.com/tanftw/5e05f2bf169e61c9832f60b286d92e7d
If this problem still persist, can you please send me your website's credentials like FTP, SSH, and admin access if possible via [email protected]?
December 6, 2024 at 3:16 PM #47116Hazmi
ParticipantI can confirm that the previously provided link to the JS file solved the bug I mentioned.
December 7, 2024 at 7:47 AM #47122Jai Ivarsson
ParticipantHi Tan. Thanks for the extra gist. Unfortunately replacing the clone.js file didn't fix it either.
I have two custom plugins using Meta Box with this project but only one with the Group feature. I discovered the clone.js file was loading from the other plugin and so updated that one too but the problem persists.
Unfortunately, I don't have this on a server yet as I'm still finishing it up in local dev.
@Hazmi Did you change both the group.js and clone.js files?December 7, 2024 at 8:45 AM #47123Jai Ivarsson
ParticipantI've been looking at this a bit closer. The top group row of data is being given the class of
rwmb-clone-template
which means it is being hidden. So looks like it has disappeared. This is rendered server side and has nothing to do with the JS files.This group is submitted as the first in the group array since the fields in the group are legitimately form fields. But the server side code receiving it must be dropping this first group since it is expecting it to be a blank cloneable group and not a real value.
I've checked what is saved and confirmed that it is being dropped before persisting to the database.
I tried to follow the PHP to see where the $_POST object is being processed but seems to be quite a bit of coupling between the group module and the main meta box clone file that I couldn't find what I would looking for.
December 7, 2024 at 10:19 PM #47125Hazmi
ParticipantI changed only the group.js file.
-
AuthorPosts
- You must be logged in to reply to this topic.