notice: non-object in wp-admin/includes/template.php
-
with debug set to true, when opening dashboard for non-administratot I get the message at the top of the screen “Notice: Trying to get property of non-object in […url…]/wp-admin/includes/template.php on line 1858”
the line 1858 is
$_wp_contextual_help[$screen->id] = $help;
in the following function:
function add_contextual_help($screen, $help) {
global $_wp_contextual_help;
if ( is_string($screen) )
$screen = convert_to_screen($screen);
if ( !isset($_wp_contextual_help) )
$_wp_contextual_help = array();
$_wp_contextual_help[$screen->id] = $help;
}
I have removed my theme’s functions.php, and re-installed 3.2.1, to no avail.
As administrator I didn’t see the problem until I logged on a a test user.
Any suggestions?
- The topic ‘notice: non-object in wp-admin/includes/template.php’ is closed to new replies.