Support » Plugin: Content Views - Post Grid & List for WordPress » Undefined property message

  • Resolved intarwebsdeveloper


    With Content Views version –

    When editing a View, right above the Content Type section, I’m seeing this message:

    Notice: Undefined property: stdClass::$user_login in /wp-content/plugins/content-views-query-and-display-post-page/includes/values.php on line 268

    Line 268 is in a foreach loop –
    $display = !empty( $user->$show ) ? $user->$show : '(' . $user->user_login . ')';

    Any idea what’s causing this message to appear?

    • This topic was modified 2 years, 4 months ago by intarwebsdeveloper. Reason: Added additional text
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Content Views


    Thank you for contacting us.

    It is strange.
    As you see that loop is used for result of WP function get_users().
    And user_login should be available for all users.

    Are you using any other plugins which manager users, roles…?

    What’s strange is that I cloned the production site (which is showing that message) to my local dev and the local dev doesn’t have that message. So I wonder if it’s a server configuration issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Undefined property message’ is closed to new replies.