Support » Plugin: WP User Avatar » Bug: PHP notice on Add User page

  • I have a WordPress network. One of my subsites is using the WP User Avatar plugin.

    When I go to “Add New” user (as the network admin, OR “Add Existing User” as a local site administrator) I get the following php notice inside the “Choose Image” button under Avatar section.

    Notice: Trying to get property of non-object in /srv/www/wp/public_html/wp-content/plugins/wp-user-avatar/includes/class-wp-user-avatar.php on line 176

    Looking at the code…

    on line 176: <?php echo $user->display_name; ?> is what is throwing the notice.
    The object $user only has the following attributes (from var dump):
    string ‘add-existing-user’ (length=17).

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.