Profile picture doesn’t change

4.98K viewsIssues
0

Hi,

I use the latest version of Anspress. Cover picture autochange when upload new one, but profile picture doesn’t. I need to refresh page for see the change. I tested in this website(anspress.io) it look fine. But in my website doesn’t. I checked console there is nor error but I have such code in logs when upload:

Object {status: true, message: "Avatar uploaded successfully.", do: Array[1], html: "<img src="http…tar avatar-150 photo" alt="" width="150" height="150" data-view="user_avatar_1835" />", container: "[data-view="user_avatar_1835"]"…}
ap_responce: true
container: "[data-view="user_avatar_1835"]"
do: Array[1]
html: "<img class="avatar avatar-150 photo" src="http://mywebsite.com/wp-content/uploads/2016/02/f85aac76673d34d389dbd0c93a44e080.jpg" alt="" width="150" height="150" data-view="user_avatar_1835" />"
is_ap_ajax: true
message: "Avatar uploaded successfully."
status: true
__proto__: Object

But in anspress.io there is not such log when upload. I checked github, /includes/class-user.php is not same in wordpress version. I used version of class-user.php in github but it doesn’t work too.

Any suggestions?

Are you using BuddyPress?

No, I am not. I mean picture doesn’t change automatically as cover. I need refresh page too see the change.

0

Please use 2.4.5 from Github, I am sure that will solve all ajax issue.

Didn’t solve the issue. I used class-user.php from github and also tired make changes accordin github but didn’t solve. I have made some changes in other filesn so I can’t update all files to 2.4.5. I need to file to solve only this issue. This is strange that it works on cover but not on profile picture.

Then it will not work.

There is no way to solve this issue with changing specific files? I have made changes in files which are relatedwith theme and design. Is it possible to give a list that these files will solve issue if i replace. If not, I understad my request is a bit strange 🙂