Hello Kunal,
Please make sure you have checked ‘Allow Contributors & Subscribers to upload avatars’ in the settings menu of WPUserAvatar.
Hi
I have already checked the ‘Allow Contributors & Subscribers to upload avatars’ in the settings, but it has no effect. I still cant upload any image when i am logged in through any role except admin.
I’m also experiencing this using a custom page-profile-edit template into which I’ve added <?php do_action('edit_user_avatar', $user_data); ?> to call the hook. The template is front-end but restricted to logged-in-users.
I did the below using the same user, just changing their status:
For Subscribers and Contributors nothing uploads. I get a standard HTML file input and an HTML submit button labelled ‘Upload’. Clicking this submits the form but the uploaded media (yes, I have enctype multipart) isn’t processed.
For Authors, Editors and Admins I see only one input “Choose Image”. Clicking it brings up the media library. Selecting or uploading an image replaces the default gravatar image in the form, but submitting the form does nothing.
The system has a few plugins: Advanced Custom Fields with a few extensions and Events Manager. All the others I’ve been able to try deactivating, and it didn’t affect the outcome.
Any thoughts as to what might be causing this? It looks like we’re missing a call to wpua_action_process_option_update – it’s hooked into a few WP hooks in the code but nothing that I think my page will be calling. Is something missing from the instructions? Perhaps we need to make sure the personal_options_update hook gets called?
This is very strange because uploading from front end is mostly liked feature of this plugin. can you please send me login for your test environment so i can debug it your end. there must be something which conflicting your side.
Have exactly issue as @richplane.
Contributor has standart HTML input type=”file” on frontend profile page template(TML) and “Upload” input type=”submit”.
If i select file in upload file input and press “Upload” page refreshes without uploading my media to wordpress media library..
But for authors and above — all works great.
I found that function wpua_is_author_or_above check’s what to show on frontend.. but seems input file upload — broken 🙁
Browser console don’t provide any error’s while submitting form..
Here is my screencast about issue for contributor: http://recordit.co/39YPLV6B37
ohh… found the solution..
You just need to set enctype="multipart/form-data" in profile-form.php file inside yur theme..
https://wordpress.org/support/topic/theme-my-login-breaks-simple-local-avatars-plugin?replies=18#post-5019848
Erik
(@erikandershed)
I have the same problem. Any ide how to fix this.
vburlak how do I add this to this plugin?