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