Okay
  Public Ticket #1438817
Php Error
Closed

Comments

  • Alan started the conversation

    Hello to you, When we want to add a note system for the articles on the theme explicit we see a sentence warning: a numeric value encountered, file path: Home / Tesiasquad / content / theme / explicit / function / reviews.php line 391

    380if(!function_exists('it_get_rotate')) {
    381 #get rotation scale for this rating 382 function it_get_rotate($postid, $type) { 383 $out = array('amount' => 365, 'showfill' => false); 384 if($type=='editor') {
    385 $normalized_rating = get_post_meta($postid, 386IT_META_TOTAL_SCORE_NORMALIZED, $single = true); 387 } else {
    387 $normalized_rating = get_post_meta($postid, 388IT_META_TOTAL_USER_SCORE_NORMALIZED, $single = true);
    389 }
    390 if($normalized_rating > 50) $out['showfill'] = true;
    391 $amount = $normalized_rating * 3.6;
    392 $out['amount'] = $amount . 'deg';

    393 return $out;
    394 }

    Attached files:  Capture_decran_2018-01-17_14.30.58.png

  •  300
    Brian replied

    You need to add at least one rating for the review and then that error will disappear.