MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

user avatar  (Mono Support )

Viewed 32012 time(s), 13 post(s) 20.09.2011 16:53:53by rovvy
rovvy

rovvy

20.09.2011 16:53:53
Hi,
I can't seem to be able to change the user avatar image.
In the user profile webpart, the Show user avatar is checked.

Also all the permissions on the upload directory seem correct.
I can change it only for admin users.

Any suggestions would be great.


Dieser Inhalt wurde noch nicht bewertet. 
152 Reputation 21 Total posts
khorvat

khorvat

20.09.2011 20:26:20
Hi,

user avatar is saved in the database table called UserAvatar so it isn't related to folder permissions. Can you please check the error logs and get back to us. And can you tell us if you have customized the User profile Web part ?

Regards
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts
khorvat

khorvat

20.09.2011 20:27:41
Also we have tested the functionality on 4.1.2741 version and it is working fine. Please get back to us with error logs so we can proceed.

Regards 
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts
rovvy

rovvy

23.09.2011 18:27:00
I do not get any error. After selecting the image and pressing 'save', the default avatar does not change.
There is no error in the log file.
Also the user profie has not been constumized.
Thanks,
/R
Dieser Inhalt wurde noch nicht bewertet. 
152 Reputation 21 Total posts
khorvat

khorvat

23.09.2011 23:07:32
Hi,

is there a way for us to access the site so we can take a look at the issue ?

Regards
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts
rovvy

rovvy

24.09.2011 12:52:00
If you still have them, you can use the site address and credentials provided on topic "accessing SN messaging center properties from Messages page throws exception".
Dieser Inhalt wurde noch nicht bewertet. 
152 Reputation 21 Total posts
livcons

livcons

24.09.2011 15:03:17
During debug the fetch and saveentity is failing see attachments.
The avatar binary records is created in DB

/Gabriel
Dieser Inhalt wurde noch nicht bewertet. 
986 Reputation 121 Total posts
livcons

livcons

24.09.2011 15:02:41
FYI - same project
Dieser Inhalt wurde noch nicht bewertet. 
986 Reputation 121 Total posts
khorvat

khorvat

26.09.2011 09:06:54
Hi Gabriel,

I have take a look at both screenshots and everything looks as it should be. In first screenshot fetchFails we have tried to fetch the UserAvatar and in case if  there isn't any in the database we return null (at this point UserAvatar entity / object is out of sync which is normal), and after that we need to create a new UserAvatar object and put the avatar image inside and then save the entity.

Note: we aren't refetching entity so UserAvatar entity is out of sync again which is normal - we don't need to access entity and therefor we aren't fetching it. If you need to refetch the entity change the following:

From
rep.SaveEntity(uAvatar);
To
rep.SaveEntity(uAvatar, true);

Generally from the screenshots provided I can't see much so I'll need an access to the Web site again, I have tried but it wasn't accessible. Let me know when you put your Web site on-line again so I can try to check the issue.

BTW - can you please post your questions to your Priority forum so we can address them faster, thanks.

Regards
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts
rovvy

rovvy

26.09.2011 13:00:14
Thanks for the answer. Setting the User profile webpart Gravatar type to Avatar lets us change the avatar image.
Previous it was set to Not set.

Dieser Inhalt wurde noch nicht bewertet. 
152 Reputation 21 Total posts
1 2