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

Fixed stray $i variable in the admin template Team_option_list

Discussion in 'Resolved Bugs' started by alfa1, May 14, 2017.

  1. alfa1

    alfa1 Active Member

    Messages:
    558
    Likes Received:
    211
    Trophy Points:
    43
    When I went to Admin -> Options -> [Nobita] Social Groups Options Manager, I saw a number of these errors on the top:

    Template Errors: team_option_list
    Code:
    1. a non-numeric value encountered in /libtrary/xenforo/template/abstract.php(265): eval()'d code, line 91:
    90: $i = '';
    91: $i .= ($i +1);
    92: $__compilerVar3 .=
    This is basically due to a stray $i variable in the admin template Team_option_list

    I fixed this by going to Admin Templates -> Team_option_list and commenting out this line:
    Code:
    <xen:comment><xen:set var="$i">{xen:calc '{$i} + 1'}</xen:set></xen:comment>
     
  2. truonglv

    truonglv Staff Member Tech Support

    Messages:
    3,347
    Likes Received:
    1,286
    Trophy Points:
    113
    What version of XenForo you are using?
     
  3. alfa1

    alfa1 Active Member

    Messages:
    558
    Likes Received:
    211
    Trophy Points:
    43
    This is on 1.5.12
     
  4. alfa1

    alfa1 Active Member

    Messages:
    558
    Likes Received:
    211
    Trophy Points:
    43
    Same with xf 1.5.13
     
  5. truonglv

    truonglv Staff Member Tech Support

    Messages:
    3,347
    Likes Received:
    1,286
    Trophy Points:
    113
    I completed remove that lines. It did not use anywhere. Don't know why i put that code. Cannot remember reason for that. LOL
     
    alfa1 likes this.