MyBB Community Forums

Full Version: Syntax error code on Index.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys, here is the error I get on ' Index.php ' :

Parse error: syntax error, unexpected '<', expecting '}' in /public_html/index.php(308) : eval()'d code on line 13


Here is a link to the forum : http://nosfus.cluster1.easy-hebergement.net/index.php


Thanks,
 -R3V
check what is recently changed in index_stats template of your forum's active theme
may be a variable is not closed in correct manner !
(2017-04-08, 05:06 AM).m. Wrote: [ -> ]check what is recently changed in index_stats template of your forum's active theme
may be a variable is not closed in correct manner !

Here is my index_stats :

<div class="boardstats smalltext">
  <ul>

<li><span class="mediumtext block theme_text">{$stats['numposts']}</span><span><span data-lang-variable="posts"></span></span></li>

<li><span class="mediumtext block theme_text">{$stats['numthreads']}</span><span><span data-lang-variable="threads"></span></span></li>

<li><span class="mediumtext block theme_text">{$stats['numusers']}</span><span><span data-lang-variable="members"></span></span></li>

<li><span class="mediumtext block theme_text">{$recordcount}</span><span><span data-lang-variable="most_online"></span></span></li>

<li><span class="mediumtext block theme_text"  style="cursor:pointer;">{$stats['lastusername']</span><span><span data-lang-variable="newest_user"></span></span></li>


</ul>
  
</div>
{$stats['lastusername'] <-- missing } at the end
(2017-04-08, 06:54 PM).m. Wrote: [ -> ]{$stats['lastusername']  <-- missing } at the end

Thank you verry much, working ! Wink