• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Fatal Error help?. Please.

Smellic Hunt

New Member
Joined
Dec 19, 2008
Messages
55
Reaction score
0
Installing this AAC, and there is only 1 problem (Everything else works fine!). When it goes to call for the database such as the latest deaths and character Information I get this error and its the only error i get!

Can someone please help me?

Code:
Fatal error: Call to a member function fetch_row() on a non-object in C:\xampp\htdocs\test\classes\database_mysqli.php on line 53

TFS 0.3.2
XP 32bit

mysqli.php line 48 - 61:
Code:
line 48:			return $result->num_rows;
line 49:		}
line 50:
line 51:		public function fetchRow($result)
line 52:		{
line 53:			return $result->fetch_row();
line 54:		}
line 55:
line 56:		public function freeResult($result)
line 57:		{
line 58:			$result->close();
line 59:		}
line 60:	}
line 61:?>
 
Last edited:
Part 1 solved, Need part 2 now.

I have solved the first problem with the players latest deaths, But there is still one other problem left to sort out.
includes/functions.php (line 157):
Code:
		$result = $db->query("SELECT `player_id`, `killed_by`, `is_player` FROM `player_deaths` ORDER BY `time` DESC LIMIT {$amount};");

Replace to:
Code:
		$result = $db->query("SELECT `player_id`, `killed_by` FROM `player_deaths` ORDER BY `time` DESC LIMIT {$amount};");

TFS 0.3 does not have field `is_player` at least not beta 1, on which Im testing.

-- btw, youre welcome.

Also, this is the most noobiest way to fix this. :)

If anyone can please help me with my last problem which is when i click on the top 5 players, i get this error:

Code:
Character Information 

Fatal error: Call to a member function fetch_row() on a non-object in C:\xampp\htdocs\test\classes\database_mysqli.php on line 53

And the lines in that php file are as follows:

Code:
line 46:		public function getNumRows($result)
line 47:		{
line 48:			return $result->num_rows;
line 49:		}
line 50:
line 51:		public function fetchRow($result)
line 52:		{
line 53:			return $result->fetch_row();
line 54:		}
line 55:
line 56:		public function freeResult($result)
line 57:		{
line 58:			$result->close();


By the way, i know all of this is my fault because i am using TFS 0.3.2, But to be honest, theres nothing much fdifferent because most other things work!
 
Back
Top