Fatal Error on import custom fields

Support General Fatal Error on import custom fieldsResolved

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #48967
    Ole PoetterOle Poetter
    Participant

    Hi,

    I would like to import a custom field set, but get a fatal error:

    Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /wp-content/plugins/meta-box-builder-ui/src/Import.php:97 Stack trace: #0 /wp-content/plugins/meta-box-builder-ui/src/Import.php(49): MBB\Import->import_json() #1 /wp-includes/class-wp-hook.php(324): MBB\Import->import() #2 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #3 /wp-includes/plugin.php(517): WP_Hook->do_action() #4 /wp-admin/admin.php(176): do_action() #5 /wp-admin/edit.php(10): require_once('...') #6 {main} thrown in /wp-content/plugins/meta-box-builder-ui/src/Import.php on line 97

    Kind regards,
    Ole

    #48971
    PeterPeter
    Moderator

    Hello Ole,

    Thanks for reaching out.

    What is the Meta Box Builder version on your site? Please update this plugin to the latest version 5.0.1 or use the plugin Meta Box AIO 3.0.1 and recheck the issue.

    If it doesn't help, please share the import file with me. I will try to import it to my demo site and investigate the issue.

    #48990
    morrow.jeff@gmail.com[email protected]
    Participant

    I am getting this fatal error: PHP Parse error: syntax error, unexpected ':', expecting ')' in /home/mbaguidi/public_html/wp-content/plugins/meta-box-aio/src/Tools.php on line 466\n

    I have version Version 5.10.14

    I can't activate the pro version Meta Box AIO Version 3.1.0, when I do it I can't get into my WP back end, I get this error:

    There has been a critical error on this website. Please check your site admin email inbox for instructions. If you continue to have problems, please try the support forums.

    #48991
    T DT D
    Participant

    getting the same error as Morrow Jeff

    #48992
    Ole PoetterOle Poetter
    Participant

    Hi Peter,

    I tried it again on withe the latest Version auf Metabox AIO and got the same error.

    Here is the json:
    {
    "$schema": "https://schemas.metabox.io/field-group.json",
    "fields": [
    {
    "type": "single_image",
    "id": "sc_screenshot",
    "name": "Screenshot",
    "force_delete": true
    },
    {
    "type": "textarea",
    "id": "sc_beschreibung",
    "name": "Beschreibung"
    },
    {
    "type": "url",
    "id": "sc_url",
    "name": "Url"
    },
    {
    "type": "text",
    "id": "verwendete_addons",
    "name": "verwendete Addons"
    },
    {
    "type": "text",
    "id": "verwendete_vorlagen",
    "name": "verwendete Vorlagen"
    },
    {
    "type": "text",
    "id": "verwendete_frameworks",
    "name": "verwendete Frameworks"
    },
    {
    "type": "text",
    "id": "verwendete_tools",
    "name": "verwendete Tools"
    }
    ],
    "id": "showcase-fields",
    "modified": 1755157515,
    "post_types": [
    "showcase"
    ],
    "title": "showcase Fields"
    }`
    `

    Kind regards,
    Ole

    #48994
    Ole PoetterOle Poetter
    Participant

    Found my issue.

    On the site where I wanted to import, the alpha version of MB Builder 5 was still installed and active.

    Kind regards,
    Ole

    #48999
    PeterPeter
    Moderator

    Hello Jeff,

    Please update Meta Box AIO to new version 3.1.1 to fix this issue. Thank you.

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