Getting admin page errors when using parent id

Support MB Include Exclude Getting admin page errors when using parent id

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #906
    chillifishchillifish
    Participant

    When I add the following to my metabox script, I'm getting errors on my admin screen:

        $meta_boxes[] = array(
            'id'       => 'pp_summary',
            'title'    => 'Parent page summary',
            'pages'    => array( 'post', 'page' ),
            'context'  => 'normal',
            'priority' => 'high',
    
    		'include' => array(
    			'parent' => array( '10067' ),
    		),
    
    		'fields' => array(
                array(
                    'name'  => 'Caption',
                    'desc'  => 'Caption to appear on parent page',
                    'id'    => $prefix . 'pp_caption',
                    'type'  => 'textarea',
                ),
                array(
                    'name'  => 'Background image',
                    'desc'  => 'Around 350 pixels wide by 250 pixels high',
                    'id'    => $prefix . 'pp_image',
                    'type'  => 'image_advanced',
                ),
           )
        );

    I get the following errors:

    WARNING: wp-includes/class-wp.php:422 - Cannot modify header information - headers already sent by (output started at *REMOVED_PATH*/wp-content/plugins/meta-box-include-exclude/class-mb-include-exclude.php:145)
    WP_Posts_List_Table->prepare_items, wp_edit_posts_query, wp, WP->main, WP->send_headers, header_remove

    WARNING: wp-includes/class-wp.php:436 - Cannot modify header information - headers already sent by (output started at *REMOVED_PATH*/wp-content/plugins/meta-box-include-exclude/class-mb-include-exclude.php:145)
    WP_Posts_List_Table->prepare_items, wp_edit_posts_query, wp, WP->main, WP->send_headers, header

    WARNING: wp-includes/functions.php:1000 - Cannot modify header information - headers already sent by (output started at *REMOVED_PATH*/wp-content/plugins/meta-box-include-exclude/class-mb-include-exclude.php:145)
    WP_Posts_List_Table->prepare_items, wp_edit_posts_query, wp, WP->main, WP->handle_404, status_header, header

    WARNING: wp-admin/admin-header.php:9 - Cannot modify header information - headers already sent by (output started at *REMOVED_PATH*/wp-content/plugins/meta-box-include-exclude/class-mb-include-exclude.php:145)
    require_once('wp-admin/admin-header.php'), header

    NOTICE: wp-content/plugins/meta-box-include-exclude/class-mb-include-exclude.php:145 - Trying to get property of non-object
    require_once('wp-admin/admin.php'), do_action('admin_init'), call_user_func_array, rwmb_register_meta_boxes, RW_Meta_Box->__construct, apply_filters('rwmb_show'), call_user_func_array, MB_Include_Exclude::check, MB_Include_Exclude::maybe_exclude_include, call_user_func, MB_Include_Exclude::check_parent

    #910
    Anh TranAnh Tran
    Keymaster

    Hi, this bug was reported and fixed in version 0.2.2. Please go to your profile and re-download the plugin.

    Thank you

    #919
    chillifishchillifish
    Participant

    Will do, thanks.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Getting admin page errors when using parent id’ is closed to new replies.