Problem with saving

Support MB Group Problem with saving

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #46954
    HazmiHazmi
    Participant

    Hi, 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

    #46959
    PeterPeter
    Moderator

    Hello 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.

    #46992
    Jai IvarssonJai Ivarsson
    Participant

    I've just discovered this bug too after updating my composer dependences.
    Is there somewhere we can track the ticket apart from this post?

    #47024
    HazmiHazmi
    Participant

    Hi, is there any estimate when this annoying bug will be fixed? It's making it hard to work.

    #47034
    Tan NguyenTan Nguyen
    Participant

    Dear Hazmi, I have fixed this issue, need to test today and you will get an update shortly.

    #47066
    HazmiHazmi
    Participant

    Hi Tan, I really need to fix this issue. My clients can't work and are waiting..

    #47076
    Tan NguyenTan Nguyen
    Participant

    Dear 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!

    #47111
    Jai IvarssonJai Ivarsson
    Participant

    I 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?

    #47112
    Tan NguyenTan Nguyen
    Participant

    Dear 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]?

    #47116
    HazmiHazmi
    Participant

    I can confirm that the previously provided link to the JS file solved the bug I mentioned.

    #47122
    Jai IvarssonJai Ivarsson
    Participant

    Hi 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?

    #47123
    Jai IvarssonJai Ivarsson
    Participant

    I'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.

    #47125
    HazmiHazmi
    Participant

    I changed only the group.js file.

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