Duplicating Field Group Gives Error

Support General Duplicating Field Group Gives ErrorResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #42235
    brandonjpbrandonjp
    Participant

    On my list of Custom Field Groups, when I click the Duplicate link under any of my field groups, I get a php error as follows:

    
    Fatal error: Uncaught TypeError: array_values(): Argument #1 ($array) must be of type array, string given in /wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-builder/src/Edit.php:44
    Stack trace:
    #0 /wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-builder/src/Edit.php(44): array_values('a:8:{s:15:"text...')
    #1 /wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-builder/src/BaseEditPage.php(34): MBB\Edit->enqueue()
    #2 /wp-includes/class-wp-hook.php(308): MBB\BaseEditPage->enqueue_wrapper('post.php')
    #3 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #4 /wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #5 /wp-admin/admin-header.php(118): do_action('admin_enqueue_s...', 'post.php')
    #6 /wp-admin/edit-form-advanced.php(425): require_once('/...')
    #7 /wp-admin/post.php(206): require('/...')
    #8 {main}
    thrown in /wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-builder/src/Edit.php on line 44
    

    duplicating field group gives php error
    Screenshot: https://cln.sh/p0L6QF9m

    #42245
    PeterPeter
    Moderator

    Hello,

    MB Builder does not support an option to duplicate the field group. It could be a feature of a third-party plugin that causes the issue.

    #42250
    brandonjpbrandonjp
    Participant

    Ha! Sorry. You're so right. It's even a snippet I wrote and added myself! 🤦 Apologies for my error. Feel free to delete this topic.

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