Add New User Error
-
Hello!
Great plugin, was needing something to supplement the BBPress Gravatars and this integrated smoothly. My only complaint is when creating a new user, we get a PHP Notice:
PHP Notice: Trying to get property of non-object in \wp-content\plugins\wp-user-avatar\includes\class-wp-user-avatar.php on line 176This also shows up in the Media Library if you ignore the error and proceed to upload. The problem is that on a new user page the
$userobject isn’t passed so the$user->display_namethrows a fit ( on line 176 ). A simple solution to this is adding a variable holding the name, if it exists:$display_name = ( is_object( $user ) ) ? $user->display_name : '';Of course we could turn off debugging but that hides just hides the problems instead of fixing them. We would love to see this patched in a future update!
The topic ‘Add New User Error’ is closed to new replies.