• Resolved Andrrew

    (@andrrew)


    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?

Viewing 1 replies (of 1 total)
  • Thread Starter Andrrew

    (@andrrew)

    Eventually I found the cause – the routine is being called by wp-db-backup.php line 609, and by commenting out the call, I get no warning messages.

    Now to contact the plug-in creators.

Viewing 1 replies (of 1 total)
  • The topic ‘notice: non-object in wp-admin/includes/template.php’ is closed to new replies.