MyBB Community Forums

Full Version: [windows][eval] mybb is not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!
I've met some problem with eval function after I installed mybb on windows (php 5.2.6).
I get these errors:
Parse error: syntax error, unexpected T_STRING in C:\server\mybb\global.php(330) : eval()'d code on line 2

line 330:
	eval("\$welcomeblock = \"".$templates->get("header_welcomeblock_guest")."\";");

header_welcomeblock_guest code:
<!-- start: header_welcomeblock_guest -->
<script type="text/javascript">
<!--
	lang.username = "{$lang->login_username}";
	lang.password = "{$lang->login_password}";
	lang.login = "{$lang->login}";
	lang.lost_password = " &mdash; <a href=\"{$mybb->settings[''bburl'']}/member.php?action=lostpw\">{$lang->lost_password}<\/a>";
	lang.register_url = " &mdash; <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> &mdash; <a href="{$mybb->settings[''bburl'']}/member.php?action=register">{$lang->welcome_register}</a>)</span>
<!-- end: header_welcomeblock_guest --><br />

I suppose there's problem with some special chars on windows.
This is fresh just-installed copy of mybb. It works fine on unix-like servers.

Is there any php configuration detail, I've missed?

Thanks.
{$mybb->settings[''bburl'']}

Should be:

{$mybb->settings['bburl']}

That might be why. No idea why that's happening for you though, I installed a forum yesterday just fine...
Thanks.
Is there any way to change all the quotes if there's no other option?
It's never-modified copy of mybb, so there must be something with php configuartion.