mb-json various bugs/strange behaviours

Support Meta Box AIO mb-json various bugs/strange behaviours

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #49438
    goninski@gmail.com[email protected]
    Participant

    Hi there

    After renaming the id of a field group, 2 mb-json were created automatically. Both of them are now rendered but I cannot delete the old one. It is showing up 'for sync' for deletion is not possible (unless via ftp).

    Another bug is that fields are rendered even if they status is set to off.

    See short video
    https://vento.so/view/61098bfd-0ba2-4e6a-9c9b-931d134fc583?utm_medium=share

    Thanks for fixing/optimizing these behaviours or let know if I'm doing something wrong.

    Best, François

    #49442
    PeterPeter
    Moderator

    Hello François,

    Thanks for reaching out.

    I understand that there are 2 issues in your screen record:

    1. You update the field group ID and Meta Box creates a new local JSON file under the mb-json folder.
    2. You disable the field group but the fields still display on the editing page.

    Both of them are expected and work as they are. If you change the field group ID, Meta Box will create a new JSON file based on the new ID. The JSON file will be deleted if you delete the field group with UI. Otherwise, you need to delete the JSON file in the folder mb-json manually.

    Second thing, there is a note in the documentation https://docs.metabox.io/local-json/#syncing-changes

    Syncing from JSON to the database has only one purpose: to edit fields visually, and then sync back to JSON files (or export to JSON file to save somewhere else). Meta Box will NOT load fields from the database (to avoid making unnessary queries), and use JSON files only.

    That means Meta Box will load fields from JSON files, not from the UI field group in this case.

    #49450
    goninski@gmail.com[email protected]
    Participant

    Hi Peter
    Thanks for your reply.
    You say this 'The JSON file will be deleted if you delete the field group with UI'
    How ?
    As shown in the video and also explained above, I can't find any possibility to delete the field with the UI.
    Thanks for a quick hint
    François

    #49459
    PeterPeter
    Moderator

    Hello,

    As I mentioned previously, you can delete the field group with the builder (UI) but not the JSON file, see this screenshot https://imgur.com/PVKtL1p

    If you want to delete the JSON file, you can delete it in the folder mb-json manually.

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