We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Users can't edit profile[Solved] | Forum

Sean
Sean Jul 24 '15
When a user tries to edit their profile and they click save the page refreshes and it says that they have not selected a user avatar - even through their profile always has one.


It's like they must re-upload he user avatar every time they make a profile change. How can I fix this?

The Forum post is edited by ross Jul 26 '15
Wilson
Wilson Jul 24 '15
hey Sean

What version are you using? We are at 1.7.5...I saw this here in the forum before but I thought it was fixed with a core update.

Wilson
Sean
Sean Jul 24 '15
1.7.5


I've disabled plugins and tried all that but I'm still getting the issue.

Josef
Josef Jul 24 '15
I saw the solution in another forum , here it is , try it


Open ow_system_plugins/base/classes/avatar_field_validator.php file.


replace


if ( !file_exists($path) )


with


if ( !file_exists($path) && !BOL_AvatarService::getInstance()->getAvatarUrl(OW::getUser()->getId(), 1) )






The Forum post is edited by Josef Jul 24 '15
Sean
Sean Jul 26 '15
Thank you this solved my problem.
bobbi
bobbi Jul 26 '15
i have just reproduced that on this site
ross Team
ross Jul 26 '15
Josef, thanks for providing the fix, 

Bobbi, that will be fixed on oxwall.org in the upcoming update, thanks for the report

bobbi
bobbi Jul 28 '15


TEAMrossJul 26

Bobbi, that will be fixed on oxwall.org in the upcoming update, thanks for the report


 so it will be fixed on the next platform update, i will wait for the next platform update before i get my site updated 



Christer
Christer Aug 15 '15
Is there any way? I try this fix but still the same issue with the avatar and it is bad as customer sometimes no get what to do and leave. I run 1.7.5
ross Team
ross Aug 17 '15
Christer we just tried this fix on 1.7.5 and it works, please make sure you put the fix in the right place. 
Christer
Christer Aug 23 '15
Hi I tested many times and customer also have issue but maybe I did something wrong? I add a screenshot. I did put it were above says.And every time I change anything on profile I get  that the picture is not ok so I need to upload a picture again.
Attachments:
  nope.JPG (60Kb)
  pitcure not valid.JPG (19Kb)
Josef
Josef Aug 23 '15
Christer before you edit files you have to edit your config file (ow_includes/config.php) and set the OW_DEV_MODE to true and save it


 define('OW_DEV_MODE', true);


Make the changes  in ow_system_plugins/base/classes/avatar_field_validator.php and Save it


Change  the Config File back to false and save it 


define('OW_DEV_MODE', false);



Christer
Christer Aug 23 '15
Hi
Great big thanks Josef, no idea about that but i did all that step by step now, several times and tested on another new site I set up and all same result, as in my screenshot above so no idea if some other issue but idk were to start. I tested to set debug mode to see if anything come up but nothing.
The Forum post is edited by Christer Aug 23 '15
Christer
Christer Aug 23 '15
ok find the issue, the avatar libery plugin, deaktivated that and all works, big problem as many members use this and need so I have to contact dev. Thanks guys
ross Team
ross Aug 23 '15
Great, thanks for letting us know Christer:)