Urgent: Critical error after adding fields to CPTs (latest version of MB)

Support Meta Box AIO Urgent: Critical error after adding fields to CPTs (latest version of MB)

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #39711
    Martin CarterMartin Carter
    Participant

    Hi, this morning I edited a CPT record perfectly normally, then added some simple custom fields (a group with two text elements and a URL) then went back to edit the record - the website threw a critical error, and still does each time I try to view the CPT admin screen (or even use the front end!)

    Please can you advise on how to investigate/resolve?

    WordPress 6.1.1
    PHP 8.1.13
    Meta Box 5.6.12
    Meta Box AIO 1.16.7

    Stack trace:

    Active theme: Intentionally Blank (version 3.0.3)
    Current plugin: Oxygen (version 4.1.1)
    PHP version 8.1.13

    Error Details
    =============
    An error of type E_ERROR was caused in line 585 of the file /home/sites/20b/b/b592354546/public_html/mfbdev/wp-content/plugins/oxygen/component-framework/includes/metabox/oxygen-metabox-integration.php. Error message: Uncaught TypeError: array_reduce(): Argument #1 ($array) must be of type array, null given in /home/sites/20b/b/b592354546/public_html/mfbdev/wp-content/plugins/oxygen/component-framework/includes/metabox/oxygen-metabox-integration.php:585
    Stack trace:
    #0 /home/sites/20b/b/b592354546/public_html/mfbdev/wp-content/plugins/oxygen/component-framework/includes/metabox/oxygen-metabox-integration.php(585): array_reduce(NULL, Array)
    #1 [internal function]: OxygenMetaBoxIntegration->add_button(Array, Array)
    #2 /home/sites/20b/b/b592354546/public_html/mfbdev/wp-content/plugins/oxygen/component-framework/includes/metabox/oxygen-metabox-integration.php(108): array_reduce(Array, Array, Array)
    #3 /home/sites/20b/b/b592354546/public_html/mfbdev/wp-includes/class-wp-hook.php(308): OxygenMetaBoxIntegration->init_dynamic_data(Array)
    #4 /home/sites/20b/b/b592354546/public_html/mfbdev/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
    #5 /home/sites/20b/b/b592354546/public_html/mfbdev/wp-content/plugins/oxygen/component-framework/includes/oxygen-dynamic-shortcodes.php(18): apply_filters('oxygen_custom_d...', Array)
    #6 /home/sites/20b/b/b592354546/public_html/mfbdev/wp-includes/class-wp-hook.php(308): Oxygen_VSB_Dynamic_Shortcodes->init_custom_dynamic_data(Object(WP))
    #7 /home/sites/20b/b/b592354546/public_html/mfbdev/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #8 /home/sites/20b/b/b592354546/public_html/mfbdev/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
    #9 /home/sites/20b/b/b592354546/public_html/mfbdev/wp-includes/class-wp.php(797): do_action_ref_array('wp', Array)
    #10 /home/sites/20b/b/b592354546/public_html/mfbdev/wp-includes/functions.php(1332): WP->main(Array)
    #11 /home/sites/20b/b/b592354546/public_html/mfbdev/wp-admin/includes/post.php(1245): wp(Array)
    #12 /home/sites/20b/b/b592354546/public_html/mfbdev/wp-admin/includes/class-wp-posts-list-table.php(165): wp_edit_posts_query()
    #13 /home/sites/20b/b/b592354546/public_html/mfbdev/wp-admin/edit.php(235): WP_Posts_List_Table->prepare_items()
    #14 {main}
    thrown

    #39712
    Martin CarterMartin Carter
    Participant

    OK, if anyone else experiences this please try downgrading to (the now unsupported version) PHP 7.4
    This might not be an option for you if you already rely on later versions, but it seems to have allowed me to work around the issue for now
    I'll be very interested in continuing with investigations and fix though so I can upgrade back to a supported version again.
    All the best,
    Martin.

    #39758
    PeterPeter
    Moderator

    Hello Martin,

    As you can see in the log, the error comes from the plugin Oxygen builder. So I recommend contacting Oxygen support to ask for help with this issue.

    Thanks.

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