WordPress.org

Forums

[resolved] notice: non-object in wp-admin/includes/template.php (2 posts)

  1. Andrrew
    Member
    Posted 3 years ago #

    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?

  2. Andrrew
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic