an
groups-icon

PHP Notice: Trying to get property of non-object

Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
  • Version 9
    OSCAR CHICA LUCENA
    0 points
    Beginner

    Good afternoon,

    This theme is giving me the above error on the file class_Admin.php

    line 21:
    // REMOVE PASSWORD FROM ADMIN
    if( !current_user_can( ‘edit_user’, $userdata->ID ) ) {
    add_filter( ‘show_password_fields’, ‘__return_false’ );
    }
    line 427:
    // SWITCH PAGES
    if(isset($_GET[‘page’]) && user_can($userdata->ID, ‘administrator’) ){

    Line 500:
    // ON THEME OVERVIEW PAGE
    if ( user_can($userdata->ID, ‘administrator’) && $pagenow == ‘themes.php’ ) {
    $this->UPDATECHILDTHEME();
    }

    Line 520:

    // FIX FOR ADMIN QUERY
    if (strpos(strtolower($_SERVER[‘REQUEST_URI’]), ‘/wp-admin’) !== false && $userdata->ID) {

    And class_core.php

    Line 9332:

    if(is_numeric($id)){ $checkID = $id; }else{ $checkID = $post->ID; }

    These warnings appear every day, is there any way to sort them out? Maybe a theme update?

    Thanks,

    Oscar

    December 11, 2017 at 12:05 pm
  • OSCAR CHICA LUCENA
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    December 13, 2017 at 1:49 pm
  • Josh njenga
    -10 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    December 13, 2017 at 1:54 pm

385

Views

2

Replies