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 29259 time(s), 13 post(s) 9/20/2011 4:53:53 PMby rovvy
rovvy

rovvy

9/20/2011 4:53:53 PM
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.


This content has not been rated yet. 
152 Reputation 21 Total posts
khorvat

khorvat

9/20/2011 8:26:20 PM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
khorvat

khorvat

9/20/2011 8:27:41 PM
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 
This content has not been rated yet. 
15993 Reputation 2214 Total posts
rovvy

rovvy

9/23/2011 6:27:00 PM
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
This content has not been rated yet. 
152 Reputation 21 Total posts
khorvat

khorvat

9/23/2011 11:07:32 PM
Hi,

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

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
rovvy

rovvy

9/24/2011 12:52:00 PM
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".
This content has not been rated yet. 
152 Reputation 21 Total posts
livcons

livcons

9/24/2011 3:03:17 PM
During debug the fetch and saveentity is failing see attachments.
The avatar binary records is created in DB

/Gabriel
This content has not been rated yet. 
986 Reputation 121 Total posts
livcons

livcons

9/24/2011 3:02:41 PM
FYI - same project
This content has not been rated yet. 
986 Reputation 121 Total posts
khorvat

khorvat

9/26/2011 9:06:54 AM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
rovvy

rovvy

9/26/2011 1:00:14 PM
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.

This content has not been rated yet. 
152 Reputation 21 Total posts
1 2