Repeated "Undefined array key _id" in mbb-parser creates 390 MB log

Support › Meta Box AIO › Repeated "Undefined array key _id" in mbb-parser creates 390 MB log

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #50265
    Simon EgleSimon Egle
    Participant

    Hello Meta Box support team,

    We are experiencing a recurring PHP warning on a WordPress website using Meta Box AIO and Bricks Builder:

    PHP Warning: Undefined array key "_id" in wp-content/plugins/meta-box-aio/vendor/wpmetabox/mbb-parser/src/Unparsers/MetaBox.php on line 792

    Between October 23 and November 3, 2026, this exact warning was logged 1,937,803 times, accounting for approximately 99.8% of all log lines. The error log grew to approximately 390 MB.

    The warning is still occurring, often repeatedly within the same second. The log does not identify the triggering field group or request, and we have not yet isolated reliable reproduction steps.

    Could you please advise:

    1. Is this a known issue, and is a fix available?
    2. How can we identify the field group or configuration that triggers the missing _id key?
    3. What diagnostic information would you need to investigate this further?

    We would like to resolve the underlying cause without affecting existing field definitions or stored content. We can provide a sanitized log excerpt and additional environment details.

    Thank you for your help.

    Best regards,
    Simon

    #50266
    PeterPeter
    Moderator

    Hello Simon,

    Thanks for reaching out and for your detailed report.

    Is this a known issue?

    Yes, I can reproduce it. It is an issue with the parser that Meta Box Builder uses, which is bundled in Meta Box AIO. Some field definitions carry an internal key called _id, which the field group editor uses to track fields. The parser wrongly treats that key as an unknown custom setting, removes it, and then reads it on the next line. That produces the warning.

    How to find the affected field group?

    Field groups saved from the builder never contain _id. It's only present when a field group was imported or synced from a JSON file whose fields include _id, for example, a file that was edited by hand or an old version of the builder. Two places to check:

    1. Local JSON files, if you use them: grep -l '"_id"' wp-content/themes/your-theme/mb-json/*.json. Also check any folder added through the mb_json_paths filter.
    2. The database. Adjust the wp_ prefix if yours is different:

    
    SELECT p.ID, p.post_title FROM wp_posts p
    JOIN wp_postmeta m ON m.post_id = p.ID
    WHERE p.post_type = 'meta-box' AND m.meta_key = 'meta_box'
    AND m.meta_value LIKE '%s:3:"\_id"%';
    

    Your stored values are not affected, because they're saved under each field's id, not _id, and the fields keep working on the frontend. But in the builder, an affected group can show fewer fields than are actually registered. So please don't import, sync or re-save the affected field groups in the editor until you've updated. In the JSON files, it's safe to delete the "_id" lines from the fields.

    #50267
    Simon EgleSimon Egle
    Participant

    Hello Peter,

    Thank you for reproducing the issue and explaining the cause.

    You mentioned that we should avoid importing, syncing or re-saving affected field groups until we have updated. Could you please confirm which Meta Box AIO version includes the parser fix? If the fix has not been released yet, is an official patch available, or is there an expected release date?

    Also, after installing the fixed version, will affected field groups stored in the database display all fields correctly again without any manual cleanup of the _id keys?

    We will avoid re-saving affected groups in the meantime.

    Best regards,
    Simon

    #50268
    PeterPeter
    Moderator

    Hello Simon,

    I'm afraid that there is no official patch for now or recent AIO version includes the fix. You can find the affectef field group as I suggested above, then try steps below to fix the issue:
    - export the field group to a JSON file
    - delete the field group in the builder
    - edit the file and remove "_id" key
    - save the file and import the field group back to your site

    Let me know if it helps.

    #50269
    Joseph WalkerJoseph Walker
    Participant

    Hi Simon,
    Thank you for your report. We have fixed the issues and will release an update shortly.

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