Error message in admin
-
When trying to add a user and when clicking on the “choose imag” on the avatar, I get this:
Choose Image: Notice: Trying to get property of non-object in /.../wp-content/plugins/wp-user-avatar/includes/class-wp-user-avatar.php< on line 176
That is:
<p id="<?php echo ($user=='add-new-user') ? 'wpua-add-button' : 'wpua-add-button-existing'?>"><button type="button" class="button" id="<?php echo ($user=='add-new-user') ? 'wpua-add' : 'wpua-add-existing'?>" name="<?php echo ($user=='add-new-user') ? 'wpua-add' : 'wpua-add-existing'?>" data-title="<?php _e('Choose Image','wp-user-avatar'); ?>: <?php echo $user->display_name; ?>"><?php _e('Choose Image','wp-user-avatar'); ?></button></p>
If you have any idea and can correct it foe next version, I’d be glad.
Else the plugin works just great ??
- The topic ‘Error message in admin’ is closed to new replies.