10up / simple-local-avatars

Adds an avatar upload field to user profiles. Generates requested sizes on demand just like Gravatar!
https://wordpress.org/plugins/simple-local-avatars/
GNU General Public License v2.0
219 stars 42 forks source link

Ask: when set avatar image - image not shows (media / upload) #93

Closed brm-ryd closed 2 years ago

brm-ryd commented 2 years ago

Hi,

Apologies, are there anything i can check when i use the simple-local-avatars when set the image avatar for the profile user it wont show for the image instead only white background like below image screenshot image

Again many thanks for your help & sorry for this question.

faisal-alvi commented 2 years ago

@brm-ryd Thank you for taking interest in the plugin and asking questions!

  1. Apologies, are there anything i can check when i use the simple-local-avatars when set the image avatar for the profile user it wont show for the image instead only white background like below image screenshot

To exactly detect the issue and fix it, can you please provide/answer the following information/questions?

  1. Can you please share the file you tried to upload?
  2. On which WP version did the issue occurred?
  3. And what version of the plugin?
  1. When i used custom theme does it a must to use get_avatar function php in my theme to make it works ?

You can also use get_avatar_url() to get the avatar URL.

  1. Let say when i use this simple-local-avatars plugin when i uploaded image for avatar for specific profile it should be create a file image in Uploads folder isnt ? if not created - are there anything i can check (assumed i set directory of uploads for 750 & www-data user)

Yes, it is uploaded as a WP media file so all no the avatars are stored in the uploads folder.

By the way, you can ask questions on the official Support Page here.

brm-ryd commented 2 years ago

@faisal-alvi ,

Many thanks for the feedback!

faisal-alvi commented 2 years ago

Thank you for providing the details.

I have tried to upload your image in the same configuration you shared and the file was successfully uploaded without any issues.

SLA-93-image-uploaded image link

Can you please deactivate all the other plugins and try again?

brm-ryd commented 2 years ago

Sorry @faisal-alvi , i had been disable all plugins and then enable only the simple-local-avatar but still same like attached - only blank display image when i choose image for one of the user . image

Is there anything i should add in some themes functions.php for testing this event ?

jeffpaul commented 2 years ago

@brm-ryd what does that admin notification say at the top of the screen? Are you seeing anything in the browser console that might tip off what's not allowing the uploaded avatar to display?

brm-ryd commented 2 years ago

Sorry @jeffpaul uploaded image working as its really stored / created in uploads directory, i dont see any notifications though after i choose the image (both from media existint / uploads new)

jeffpaul commented 2 years ago

@brm-ryd are you using something like Azure or other storage service to offload your media files?

brm-ryd commented 2 years ago

no @jeffpaul - only host the in the regular vps 1 instance for this wordpress site

jeffpaul commented 2 years ago

@brm-ryd what role is the user you're trying to set that image?

brm-ryd commented 2 years ago

@jeffpaul Currently i login with administrator role to set the image of user and the users i tried to set the image profile is regular & my admin account

jeffpaul commented 2 years ago

@brm-ryd is the avatar displayed on the frontend of your site properly?

brm-ryd commented 2 years ago

no @jeffpaul, as in frontend backend it just like blank (no standard gravatar default image as well) image

faisal-alvi commented 2 years ago

@brm-ryd If feasible, can you please create a dummy user for us to check into your site so we can investigate in detail?

brm-ryd commented 2 years ago

Sorry @faisal-alvi - i'll need to ask another person for this, does regular user should be okay / need an administrator role ?

faisal-alvi commented 2 years ago

@brm-ryd administrator role would be best as we would not face any capabilities issue while testing.

jeffpaul commented 2 years ago

@brm-ryd can you confirm your browser version, operating system version, theme version, and any other active plugin versions? Our best guess is that there's a plugin conflict, but hard to triage without being able to properly replicate your environment... thanks!

brm-ryd commented 2 years ago

Sorry @faisal-alvi & @jeffpaul , im not yet get the confirmation regarding access to the wp-admin for you, btw below are the details i can share to you - i only can think something related custom theme / plugin which like you said possible conflict

Again many thanks & sorry,

faisal-alvi commented 2 years ago

@brm-ryd thanks for sharing the details. I have again tested it in Safari, Chrome, and Firefox, it is working without any issues.

i believe browser not the issue as i had tested simple-local-avatars in another site its works fine

As per your mentioned note, closing this ticket.