Getting admin page errors when using parent id
Support › MB Include Exclude › Getting admin page errors when using parent id
- This topic has 2 replies, 2 voices, and was last updated 9 years, 10 months ago by
chillifish.
-
AuthorPosts
-
May 29, 2015 at 12:18 AM #906
chillifish
ParticipantWhen 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_removeWARNING: 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, headerWARNING: 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, headerWARNING: 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'), headerNOTICE: 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_parentMay 30, 2015 at 10:48 AM #910Anh Tran
KeymasterHi, this bug was reported and fixed in version 0.2.2. Please go to your profile and re-download the plugin.
Thank you
June 1, 2015 at 3:14 PM #919chillifish
ParticipantWill do, thanks.
-
AuthorPosts
- The topic ‘Getting admin page errors when using parent id’ is closed to new replies.