1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Errors on certain pages

Discussion in 'Troubleshooting and Problems' started by ddnworg, Sep 11, 2012.

  1. ddnworg

    ddnworg Member

    I have recieved this error when looking at certain pages on my site.

    any idea?


    Code:
    Template Errors: dark_postrating_message_user_info
    Division by zero in /var/www/vhosts/politicalbuddies.com/httpdocs/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 68:
    67: {
    68: $__compilerVar2 .= '<div class="dark_postrating_bar_positive" title="' . XenForo_Template_Helper_Core::numberFormat($postrating_ratings_total['positive'], '0') . '" style="width:' . ($postrating_ratings_total['positive'] / $postrating_ratings_total['all'] * 100) . '%"></div>';
    69: }
     
    Division by zero in /var/www/vhosts/politicalbuddies.com/httpdocs/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 72:
    71: {
    72: $__compilerVar2 .= '<div class="dark_postrating_bar_neutral" title="' . XenForo_Template_Helper_Core::numberFormat($postrating_ratings_total['neutral'], '0') . '" style="width:' . ($postrating_ratings_total['neutral'] / $postrating_ratings_total['all'] * 100) . '%"></div>';
    73: }
    
     
  2. Jeremy P

    Jeremy P Well-Known Member

    It's a problem with Darkimmortal's post ratings addon.
     

Share This Page