About Page and user profile

Solved8.35K viewsIssues
0

About page in user profile doesn’t open or keep loading. Unable to add Cover photo to my profile as a site Admin.

also when I click to view the other users profile is doesn’t open.

Can you share a link ?

I think I’m missing something on line 48

Warning: Division by zero in /home/princefaqx/public_html/flyanswers.com/wp-content/plugins/anspress-question-answer/theme/default/user/about.php on line 48

Mr. Aryan will check the issue after he return.

Alright, Thank You @kumar

1

hello,

on /wp-content/plugins/anspress-question-answer/theme/default/user/about.php  try to change the line 48 which is currently like this :

<span data-action="ap_chart" data-type="donut" data-peity='{ "fill": ["#9087FF", "#eeeeee"],   "innerRadius": 20, "radius": 25 }'><?php echo ceil((ap_user_get_the_meta('__up_vote_casted')/ap_user_total_votes_casted())*100); ?>/100</span>

 

to

<?php 
$upVotePercent=0;
if(ap_user_total_votes_casted()>0)
$upVotePercent=ceil((ap_user_get_the_meta('__up_vote_casted')/ap_user_total_votes_casted())*100); 
?>
<span data-action="ap_chart" data-type="donut" data-peity='{ "fill": ["#9087FF", "#eeeeee"],   "innerRadius": 20, "radius": 25 }'><?php echo $upVotePercent; ?>/100</span>
You are viewing 1 out of 2 answers, click here to view all answers.