• 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!

PHP - problem with OTS_Player.php

mirosik123

New Member
Joined
May 24, 2012
Messages
5
Reaction score
0
Hello. When i try to find info about character i can see an error: Fatal error: Uncaught exception 'E_OTS_NotLoaded' in D:\xampp\htdocs\pot\OTS_Player.php:276 Stack trace: #0 D:\xampp\htdocs\characters.php(23): OTS_Player->getOldName() #1 D:\xampp\htdocs\index.php(148): include('D:\xampp\htdocs...') #2 {main} thrown in D:\xampp\htdocs\pot\OTS_Player.php on line 276
OTS_Player.php 276: throw new E_OTS_NotLoaded();
characters.php 23: if($player->getOldName())
index.php 148: include("characters.php");
 
In database all players expect samples have NULL in old_name. If i try to find sample (with old_name 0) i have other error: Fatal error: Uncaught exception 'E_OTS_NotLoaded' in D:\xampp\htdocs\pot\OTS_Account.php:392 Stack trace: #0 D:\xampp\htdocs\characters.php(401): OTS_Account->getCreated() #1 D:\xampp\htdocs\index.php(148): include('D:\xampp\htdocs...') #2 {main} thrown in D:\xampp\htdocs\pot\OTS_Account.php on line 392
Lines look same as those in 1 post, but with get created. And how to set old_name 0, not null for all new characters?
 
old_name can be empty string. go to structure for table players, change default value and null of old_name as follows

11-Kb.png


for created you should uncheck null and use 0 as default value
 
Back
Top