Support Forum » User Profile

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Bug Metabox 5.10.0 #46398
    Shalom PenningtonShalom Pennington
    Participant

    Upgraded to MB 5.10.1 and MB AOI 1.30.1 seems to solve the original problem (wiping out the group field entirely anytime perform an update via rwmb_set_meta().)

    However, seeing these console errors in WP Admin if there is a group element present on the page/post/user:

    Uncaught Error: Syntax error, unrecognized expression: ##type_1:not(.rwmb-clone-template ##type_1)
    at I.error (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,zxcvbn-async&ver=6.6.1:2:11769)

    in reply to: Bug Metabox 5.10.0 #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.

    in reply to: How to access older versions of extensions #46211
    Shalom PenningtonShalom Pennington
    Participant

    Previous version of plugins is critical, especially when problems are caused by latest updates and no way to do anything about them. PLEASE offer way to get older versions ASAP @Long

    in reply to: rwmb_set_meta returns nothing #44472
    Shalom PenningtonShalom Pennington
    Participant

    I second this, @netalys. Being able to do something like this would be very helpful:

    $result = rwmb_set_meta( $post_id, $field_id, $value );
    
    if ($result === true) {
        // update successfully
    } else {
        // update failed
    }
    in reply to: Text fields stripping out #41257
    Shalom PenningtonShalom Pennington
    Participant

    That was it. Thanks for your help

    in reply to: Rest API Post to Custom Tables not work #41191
    Shalom PenningtonShalom Pennington
    Participant

    Yes, having the same problem, but relatively new to MB so haven't ever upgraded. Posting with Postman shows updated info in the response, but updates aren't written to DB when using REST.

    Original value:

    {
        "meta_box": {
            "file_key": "123123",
            "file_name": "Basement"
        }
    }

    What I'm posting to CPT endpoint: domain.local/wp-json/wp/v2/cpt_slug/428

    {
        "meta_box": {
            "file_key": "123123",
            "file_name": "Basement NEW"
        }
    }

    What POST response shows: (abbreviated for clarity)

    {
        "meta_box": {
            "file_key": "123123",
            "file_name": "Basement NEW"
        }
    }

    What a GET request to same endpoint shows (domain.local/wp-json/wp/v2/cpt_slug/428)

    {
        "meta_box": {
            "file_key": "123123",
            "file_name": "Basement"
        }
    }

    Changes aren't being stored when using custom table. If I switch to just using default storage these EXACT same REST calls work exactly as expected. This is causing all kinds of heartburn. Is this a bug or is there some other setting that needs to be set? Making changes through WP admin works fine and data is written to custom table just fine. Problem is my use case relies HEAVILY on REST.

Viewing 6 posts - 1 through 6 (of 6 total)