dpi / avatars

Avatar Kit for Drupal
https://drupal.org/project/avatars
GNU General Public License v2.0
3 stars 2 forks source link

Error “The value you selected is not a valid choice” in Avatar Kit field settings #25

Open brian-hay opened 8 years ago

brian-hay commented 8 years ago

I just tried Avatar Kit 8.x-1.0-beta2. I created a few Gravatar generator presets but after adding the Avatar Generator field to the user entity and trying to select one of the Avatar Generator radio options I get the error "The value you selected is not a valid choice" on clicking "Save settings". The same error occurs when trying to edit a user. Here's what I'm seeing:

avatarkit-issue

dpi commented 8 years ago

I am not able to reproduce on my local site or on simplytest.me.

Did you have a version of AK before beta2? Or was beta2 your first version? Can you explain "adding the Avatar Generator field to the user entity". You should not need to add fields on your own.

brian-hay commented 8 years ago

No this is the first time I tried AK. Maybe it's a conflict with another module but I'm not seeing any js console or other errors (I have php error reporting on full and am running devel & profiler etc).

brian-hay commented 8 years ago

I also tested Avatar Kit on simplytest.me and couldn't replicate the issue I'm having locally. I will try again with a fresh local install and see if I can replicate.

Is there a way to display Gravatar avatars for commenters who opt to leave their email address but aren't site users? That didn't seem to work for me when I attempted it in the simplytext.me environment.

dpi commented 8 years ago

Is there a way to display Gravatar avatars for commenters who opt to leave their email address but aren't site users?

I'm afraid not. The module needs to store an image in a user entity. It would be possible to create a module that generates a avatar for plain email addresses. You could store the image in an entity representing each anon email address.

Edit: July 23 2016: See #30