2008-12-26, 02:40 AM
I had a forum recently setup at http://uwccf.ca/forum/. It was working fine, but suddenly, it broke and any attempt to pull it up results in numerous parse errors:
I looked into the first one, erroring out at line 330 of global.php:
I queried the database for our header_welcomeblock_guest in the templates table, and found two records, containing very similar code (one line difference):
Or is it more likely that something might have broken on the host? Any thoughts are appreciated!
Parse error: syntax error, unexpected T_STRING in /home2/uwccf/public_html/forum/global.php(330) : eval()'d code on line 2
Parse error: syntax error, unexpected T_STRING in /home2/uwccf/public_html/forum/global.php(430) : eval()'d code on line 2
Parse error: syntax error, unexpected T_STRING in /home2/uwccf/public_html/forum/global.php(431) : eval()'d code on line 2
Parse error: syntax error, unexpected $end in /home2/uwccf/public_html/forum/global.php(432) : eval()'d code on line 1
Parse error: syntax error, unexpected T_STRING in /home2/uwccf/public_html/forum/global.php(433) : eval()'d code on line 2
Parse error: syntax error, unexpected '{' in /home2/uwccf/public_html/forum/global.php(486) : eval()'d code on line 2
Parse error: syntax error, unexpected T_STRING in /home2/uwccf/public_html/forum/global.php(495) : eval()'d code on line 3
Parse error: syntax error, unexpected T_STRING in /home2/uwccf/public_html/forum/index.php(41) : eval()'d code on line 3
Parse error: syntax error, unexpected T_STRING in /home2/uwccf/public_html/forum/index.php(175) : eval()'d code on line 3
Parse error: syntax error, unexpected T_STRING in /home2/uwccf/public_html/forum/index.php(274) : eval()'d code on line 2
Parse error: syntax error, unexpected T_LNUMBER in /home2/uwccf/public_html/forum/index.php(286) : eval()'d code on line 2
Parse error: syntax error, unexpected T_STRING in /home2/uwccf/public_html/forum/inc/functions_forumlist.php(215) : eval()'d code on line 2
Parse error: syntax error, unexpected '{' in /home2/uwccf/public_html/forum/inc/functions_forumlist.php(314) : eval()'d code on line 3
Parse error: syntax error, unexpected T_LNUMBER in /home2/uwccf/public_html/forum/inc/functions_forumlist.php(314) : eval()'d code on line 2
Parse error: syntax error, unexpected T_LNUMBER in /home2/uwccf/public_html/forum/inc/functions_forumlist.php(314) : eval()'d code on line 2
Parse error: syntax error, unexpected T_STRING, expecting ']' in /home2/uwccf/public_html/forum/index.php(349) : eval()'d code on line 4
Parse error: syntax error, unexpected T_STRING in /home2/uwccf/public_html/forum/inc/functions.php(2825) : eval()'d code on line 2
Parse error: syntax error, unexpected T_STRING in /home2/uwccf/public_html/forum/inc/functions.php(2826) : eval()'d code on line 3
I looked into the first one, erroring out at line 330 of global.php:
eval("\$welcomeblock = \"".$templates->get("header_welcomeblock_guest")."\";");
I queried the database for our header_welcomeblock_guest in the templates table, and found two records, containing very similar code (one line difference):
<script type="text/javascript">
<!--
lang.username = "{$lang->login_username}";
lang.password = "{$lang->login_password}";
lang.login = "{$lang->login}";
lang.lost_password = " — <a href=\"{$mybb->settings['bburl']}/member.php?action=lostpw\">{$lang->lost_password}<\/a>";
lang.register_url = " — <a href=\"{$mybb->settings['bburl']}/member.php?action=register\">{$lang->welcome_register}<\/a>";
// -->
</script>
<span id="quick_login">{$lang->welcome_guest} (<a href="{$mybb->settings['bburl']}/member.php?action=login" onclick="MyBB.quickLogin(); return false;">{$lang->welcome_login}</a> — <a href="{$mybb->settings['bburl']}/member.php?action=register">{$lang->welcome_register}</a>)</span>
<script type="text/javascript">
<!--
lang.username = "{$lang->login_username}";
lang.password = "{$lang->login_password}";
lang.login = "{$lang->login}";
lang.lost_password = " — <a href=\"{$mybb->settings['bburl']}/member.php?action=lostpw\">{$lang->lost_password}<\/a>";
lang.register_url = " — <a href=\"{$mybb->settings['bburl']}/member.php?action=register\">{$lang->welcome_register}<\/a>";
// -->
</script>
<span style="float: right;">{$lang->welcome_current_time}</span>
<span id="quick_login">{$lang->welcome_guest} (<a href="{$mybb->settings['bburl']}/member.php?action=login" onclick="MyBB.quickLogin(); return false;">{$lang->welcome_login}</a> — <a href="{$mybb->settings['bburl']}/member.php?action=register">{$lang->welcome_register}</a>)</span>
I'm not too familiar with the codebase, database schema or the general organization of mybb yet. So does it look like there's something wrong with this? As far as I'm know, everything should be rather stock out of the download zip file. Or is it more likely that something might have broken on the host? Any thoughts are appreciated!