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 )

31566 put(a) pogledan, 13 odgovor(a) 20.9.2011. 16:53:53Kreirao(la) rovvy
rovvy

rovvy

20.9.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.


Ovaj sadržaj još nije ocijenjen. 
152 Reputacija 21 Ukupno objava
khorvat

khorvat

20.9.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
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
khorvat

khorvat

20.9.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 
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
rovvy

rovvy

23.9.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
Ovaj sadržaj još nije ocijenjen. 
152 Reputacija 21 Ukupno objava
khorvat

khorvat

23.9.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
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
rovvy

rovvy

24.9.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".
Ovaj sadržaj još nije ocijenjen. 
152 Reputacija 21 Ukupno objava
livcons

livcons

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

/Gabriel
Ovaj sadržaj još nije ocijenjen. 
986 Reputacija 121 Ukupno objava
livcons

livcons

24.9.2011. 15:02:41
FYI - same project
Ovaj sadržaj još nije ocijenjen. 
986 Reputacija 121 Ukupno objava
khorvat

khorvat

26.9.2011. 9: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
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
rovvy

rovvy

26.9.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.

Ovaj sadržaj još nije ocijenjen. 
152 Reputacija 21 Ukupno objava
1 2