Avatar breaks when updated to latest.
]]>Hi, am I missing something, I can’t see a way to remove the image from the profile?
On clicking disable Gravatar, issues arise with broken images:
Hello,
I am presenting the following problem, it happens that in the “library” section, there is an “upload to” column that shows all the users of my site as you can see in the following image:
This makes this section unusable since it stretches too long between one image and another.
If you could solve it I would appreciate it.
Thank you
]]>Hi,
cool plugin! ?? Is there a way to deactivate the plugin (or upload button) for all user roles except “admin”. Is there a filter or action for functions.php? Couldn′t find anything in docs.
At the moment it seems all roles “higher” then “contributor” or “subscriber” have permission to add a pic. Code Snippet would be awesome or better, read out all available user roles and let admin select each role individually who will be allowed to add pics.
Thanks for your help! ??
Regards
]]>Everything seems to be working fine, except that when I “remove” the avatar and click on “update profile”, the avatar doesn’t update to the default one unless I manually reload the page or click again on update profile.
Any advice?
]]>I’ve encountered an issue with the One User Avatar plugin for WordPress, where three PHP warnings are generated each time a new user is added to the site. These warnings seem to relate to attempts to read properties on a string as if it were an object within the plugin’s codebase.
Details of the issue:
Attempt to read property "ID" on string
at wp-content/plugins/one-user-avatar/includes/class-wp-user-avatar.php:206
Attempt to read property "ID" on string
at wp-content/plugins/one-user-avatar/includes/class-wp-user-avatar.php:209
Attempt to read property "user_email" on string
at wp-content/plugins/one-user-avatar/includes/class-wp-user-avatar.php:218
WP_User_Avatar::wpua_core_show_user_profile()
at wp-content/plugins/one-user-avatar/includes/class-wp-user-avatar.php:349
WP_User_Avatar::wpua_action_show_user_profile()
at wp-includes/class-wp-hook.php:324
do_action('user_new_form')
at wp-admin/user-new.php:650
Expected Behavior:
Adding a new user should not trigger any warnings or errors, and the One User Avatar functionality should integrate seamlessly with the WordPress user creation process.
Actual Behavior:
The specified PHP warnings are generated, indicating a potential issue with how properties are being accessed within the plugin’s code, likely due to treating a string as an object.
Steps to Reproduce:
tested here: https://selectcalendar.s2-tastewp.com/wp-admin/index.php
admin
INEz8JJAA68
Environment:
Possible Solution:
It appears that there may be a misunderstanding or incorrect handling of a variable type within the plugin’s codebase, particularly in the wpua_core_show_user_profile
and wpua_action_show_user_profile
functions. A review and adjustment of how the user object is accessed and utilized in these functions might resolve the issue.
I hope this information is helpful for diagnosing and resolving the issue. Please let me know if there’s any additional information or testing I can provide to assist further.
Thank you for your attention to this matter.
]]>For some reason this plugin prevents me from adding a border-radius to the Avatar block in Twenty Twenty Three (and presumably any FSE theme).
I tested with a clean installation and this plugin only.
Adding a border radius to the Avatar block with the block editor, in template editing, isn’t saved to the template and as such have no effect.
(Adding a border radius to the Avatar block in global styles work, but it can’t be customised for individual templates.)
]]>get_wp_user_avatar_src
doesn’t work correctly when called in the rest_post_dispatch
hook. So when using the wp-json WordPress rest api.
It randomly shows the default avatar or the uploaded/chosen avatar, but the default more often.
Just wanting to let you know. I’ve solved the issue for myself by using ACF Pro which I was already using with this particular site.
]]>Hi ??
When I downloaded the plugin, I thought it worked slightly differently. Unfortunately, I didn’t find what I was looking for anywhere, so please add new functions:
Requests are sorted from the most needed to the least desired, although I would be happy if all of the above features could be added.
Thx.
]]>Hi, I’ve just activated and configured this plugin and so far I’m liking it; however right now I’m facing a little problem.
How can I upload avatars for existing users who don’t have one? I’ve tried visiting each user profile in the backend, hoping to find a field there for avatar upload, but nothing shows. Not even the default avatar they’re using now.
And another question: where do uploaded avatars go? To the uploads folder?
TIA!
]]>Hi,
it seems, that there is a conflict with your WordPress add-on “One User Avatar | User Profile Picture”. I have noticed that within a very short time an error log file of several GB in size is generated with “Got a packet bigger than ‘max_allowed_packet’ bytes” errors and slow down WordPress. Each page view creates an entry of approximately 30 MB. So the error-log file grows extremely quick! If either “wpDiscuz” or “One User Avatar | User Profile Picture” is disabled, the error messages stop immediately.
I’m currently using version 7.6.10 of wpDiscuz, but I have investigated that these errors have been occurring since version 7.6.2. Until version 7.6.1 all works fine. I am using the current version 2.4.0 of “One User Avatar”.
I talked to the developer of wpDiscuz. After investigation, they told me, the problem is not related to wpDiscuz, but to “One User Avatar”, which tries to add a lot of information to the database, which causes an error.
Please take a look at this support thread:
https://www.ads-software.com/support/topic/conflict-wpdiscuz-and-one-user-avatar-user-profile-picture/
A part of the error-log is available here:
https://easyupload.io/muqdmj (next 7 days! – rar-file)
Let me explain:
This is just one of many same entries extracted from a 4GB error log file that was created overnight after updating wpdiscuz. Because this single entry is so large, I split it into 12 parts, otherwise it would be too big for my editor. Every page view on my WordPress-Blog creates this huge entry in the error log!
These error-entries are only created with wpDiscuz and One User Avatar at the same time activated.
WP-Version: 6.3.1
PHP-Version: 8.1.23
wpDiscuz: 7.6.10
One User Avatar: 2.4.0
Greetings,
Andy
I would like to change the size of the thumbnail image of Author that is shown. It is always too blurry.
]]>I’m wondering if a day the [avatar] shortcode will work and everyone finally will say that this is the best ever avatar plugin
]]>I am adding [avatar_upload] shortcode in a page and setting the maximum file upload size from the admin panel. But the shortcode outputs the maximum file upload message like these: “Maximum upload file size: 10046KBKB.?Allowed Files:?jpg jpeg png gif
“. There is no need to print KB twice. Please fix this and if it is possible then please give the option to display this size in MB also.
I am building a directory site with potentially thousands of members.
Is it possible to direct One User Avatar to put uploaded images into a dedicated folder?
i.e. /wp-content/uploads/avatars/
Hello
First of all, thank you for your very good plugin.
There is a problem with your plugin, when the user clicks the back button it means they don’t want their avatar image to be deleted, So the avatar should not be deleted when he clicks on the back button and hits the update button, If the plugin is not like this.
You need to fix the problem so that the avatar is not removed if you click the back button and save the settings.
And if you click on the clear button, the avatar will be deleted.
]]>Hello,
In the code line 267 of the file class-wp-user-avatar.php the following error is present since the unit “KB” is added to the variable $wpua_upload_size_limit_with_units when it already includes units. Showing in this way values ??with repeated units in this way 1000KBKB without contemplating separation between the value and the unit.
If they could fix it that would be great.
For now, replace that line of code with the following.
esc_html( str_replace('KB', ' KB', $wpua_upload_size_limit_with_units) )
Stay tuned to your comments.
Greetings,
]]>Hi there!
The Query Monitor plugin shows “Duplicate Queries” when I open a post with comments.
See the screenshot for more information.
Can you fix this, please?
View post on imgur.com
]]>
We have a lot of users and this leads to a very large ‘wpua_hash_gravatar’ value. Now it seems that you plugin is reading and writing this option several times in every request. Is it possible to reduce this? We are very happy with your plugin but we would have to replace it otherwise.
]]>When I select default image in the plugin settings and click update checkmark went out. Sure, we get expected image, but it’s not clear what option is chosen now.
Video:
https://drive.google.com/file/d/1v1iV0U9RcXZ6dR_IT8oUhSiqpF2i6JLb/view?usp=sharing
]]>Am creating a site whereby am enabling users to upload their own avatars using One User Avatar plugin. The upload functionality works fine.
Since my menus are created dynamically using Wp Custom Navwalker. Am using a filter called wp_nav_menu_objects to filter the menu of a logged in user and display the avatar beside the username eg Welcome [avatar image] John Doe ,
The problem is that instead of the avatar showing, what shows is the code . Below is the filter hook am using:
function add_avatar( $menu_items ) {
foreach ( $menu_items as $menu_item ) {
if ( strpos($menu_item->title, 'Welcome') !== false) {
$menu_item->title = 'Welcome' . ' ' . get_wp_user_avatar( get_the_author_meta( 'ID' ), 'medium' ) . 'John Doe';
}
}
return $menu_items;
}
add_filter( 'wp_nav_menu_objects', 'add_avatar', 10 );
This is what displays on the frontend
It shows the image url instead of the actual avatar. Please assist
]]>Am creating a WordPress site whereby am using One User Avatar Plugin to enable users to upload their own avatars/profile pictures. The upload functionality works well with my theme.
The problem is am not able to display the avatar at the top right corner of my navigation menu. All the menus are generated dynamically using WP Boostrap Navwalker hence the avatar has to be set from the Appearance > Menus section on the dashboard
I have tried using the shortcodes as explained in the documentation but still, it does not display. Please assist.
]]>Hi,
We have just discovered a very strange problem when uploading images to the media library (we are using Real Media Library). We have some users who have the Author role. Sometimes, they receive an error message when uploading images : “You don’t have permission to attach files to this post”. However, this only happens when they upload using Medias | Media Library | Add button and when they are in grid mode. List mode is OK. If they use the Media | Add menu directly, there’s no problem anyway. This doesn’t affect users having the Editor role or more generally accounts having the edit_posts capability. Strange !
The problem disappears if I disable One User Avatar. We are still running WP 5.9.5 + Elementor (latest) + Astra (latest) + RML (latest).
Thanks in advance.
Patrick
]]>Hi Daniel,
we tried to follow your instruction when migrating our avatars from WP User Avatar to One User Avatar, but it didn′t work:
We renamed the old plugin folder via FTP which effectively deactivated the plugin.
But now our problem is: How can we get “One User Avatar” to use the already existing avatars? Is there any kind of import feature?
Zsuzsa
]]>Please add loading=”lazy” to the output of get_avatar().
]]>Hi, is your plugin compatible with the PHP 8.1 version?
]]>Thank you for developing this fantastic plugin. I have a concern. I am using a wordpress form to update user meta on my website. I need the user meta used in developing the one user avatar plugin usually in this format (user_meta_format). I want to add it in he form builder plugin I am using so that when users upload their profile picture in the form it automaticall updates the picrute on one user avartar
]]>I would post the link to the page that I am playing with, but you can’t see the results of the shortcode without being logged in…LOL!
Is there a way to center the avatar_upload on the page where it is inserted? I would like to have it all centered as opposed to being left justified. I am assuming that it is some sort of evil CSS magic, but other than that, I am clueless…
Thanks for the help and what looks like a nice plugin!
]]>Hi,
I want my subscribers to be able to upload a profile picture on my memberpress site. I followed this tutorial:
https://docs.memberpress.com/article/300-how-to-add-user-profile-image-tab-to-the-account-page
It works when I’m logged in as an admin, but not as a subscriber.
I already tried to give the wp role ‘subscriber’ more capabilities like this:
if ( current_user_can('subscriber') && !current_user_can('upload_files') )
add_action('admin_init', 'allow_subscriber_uploads');
function allow_subscriber_uploads() {
$subscriber = get_role('subscriber');
$subscriber->add_cap('upload_files');
}
but this didn’t work either. What am I doing wrong?
The memberpress support does not know what the problem is either
Best
]]>