Issues with Custom Field Groups not saving to Custom Table

Support MB Custom Table Issues with Custom Field Groups not saving to Custom TableResolved

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #41336
    CameronCameron
    Participant

    I'm having an issue on 5.6.18 where I create a Custom Field Group with both "Save data in a custom table" and "Create table automatically" selected, and no custom table gets created in the database.

    Existing Custom Field Groups with Custom Tables work only if updating an existing Post. Any new Post with these previously created Custom Field Groups do not save to the Custom Table.

    #41354
    PeterPeter
    Moderator

    Hello,

    Can you please share some screenshots of the issue on your site? You can try to deactivate all plugins except Meta Box, MB AIO and switch to a standard theme and check the issue again. If it does not help, please enable WP debug and check if there is any error in the log then share it with me.

    #41362
    CameronCameron
    Participant

    I deactivated all plugins except for Meta Box, MB AIO, and WP Debugger.

    I created a test Custom Field Group with one text field and set it to be stored in a Custom Table and for Meta Box to create that automatically.

    The Customs Field Group saves, and I create a new post with text in the new custom field.

    The data saves to my wp_postmeta table.

    I did not log any errors when creating this.

    https://drive.google.com/file/d/1I4T10MaTH7OeVBylCigBabmN3M6ZLz_X/view?usp=share_link
    https://drive.google.com/file/d/1Oc0E_27tZIBj1NKRLxWcOzd7uWBq2jo9/view?usp=share_link
    https://drive.google.com/file/d/1IU3yiroyfaFOkDUtJn-ipguXxm7DwQKj/view?usp=share_link
    https://drive.google.com/file/d/1Syq-ci5KzSG6r6d3I7BlnSoS10MO4kAL/view?usp=share_link

    #41369
    CameronCameron
    Participant

    Just to be clear, the above example is still in error because the data is not saving to a Custom Table (the table was not created in the database at all, even though "Save Data in a Custom Table" is selected), and the data entered into the field saves to wp_postmeta like a normal Custom Field would do.

    #41371
    CameronCameron
    Participant

    I just installed Metabox to a clean WordPress install on a staging site and I'm seeing the same issue. Metabox is not creating the Custom Table. Data added to customer fields saves to wp_postmeta each time.

    #41379
    PeterPeter
    Moderator

    Hello,

    Please add the table name to create the custom table and save the field value to the table.

    #41390
    CameronCameron
    Participant

    Thank you Peter, that was it. We can mark this as Resolved. The only issue I have now is updating Custom Table via REST is not working, but there are other threads for that.

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