MyBB Community Forums
error in index.php - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.2 Series (https://community.mybb.com/forum-3.html)
+------ Forum: MyBB 1.2 General Support (https://community.mybb.com/forum-4.html)
+------ Thread: error in index.php (/thread-9821.html)



error in index.php - CrusH - 2006-06-17

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..



RE: error in index.php - Martin M. - 2006-06-17

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");



RE: error in index.php - CrusH - 2006-06-17

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


RE: error in index.php - Michael S. - 2006-06-17

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