MyBB Community Forums

Full Version: error in index.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
its the problem;
Fatal error: Call to undefined function: object() in /home/wwwforum/public_html/mybb/index.php on line 38

and its my line 39 in index.php;
$db ("SELECT s.sid, s.ip, s.uid, s.time, s.location, u.username, u.invisible, u.usergroup, u.displaygroup FROM ".TABLE_PREFIX."sessions s LEFT JOIN ".TABLE_PREFIX."users u ON (s.uid=u.uid) WHERE s.time>'$timesearch' ORDER BY u.username ASC, s.time DESC");

can you edit it and give me again?
or can you give me your line 38 in index.php?
thanx..
Replace it with.
	$query = $db->query("SELECT s.sid, s.ip, s.uid, s.time, s.location, u.username, u.invisible, u.usergroup, u.displaygroup FROM ".TABLE_PREFIX."sessions s LEFT JOIN ".TABLE_PREFIX."users u ON (s.uid=u.uid) WHERE s.time>'$timesearch' ORDER BY u.username ASC, s.time DESC");
OK but my forums are destroyed...
it shoes only online users and statistics..
i can click links in statistics but my forums dowsn't shown??

www.forumesken.info
Please try to reupload the original index.php. See if that fixes your problem.