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

Solved [Gesior AAC] Uncaught exception 'E_OTS_NotLoaded' in...

Status
Not open for further replies.

RaikND

facebook.xenoria.org
Joined
May 12, 2010
Messages
942
Reaction score
10
Location
Spain
this was my error
PHP:
Fatal error: Uncaught exception 'E_OTS_NotLoaded' in /home/xenoria/web/pot/OTS_Player.php:276 Stack trace: #0 /home/xenoria/web/characters.php(23): OTS_Player->getOldName() #1 /home/xenoria/web/index.php(264): include('/home/xenoria/w...') #2 {main} thrown in /home/xenoria/web/pot/OTS_Player.php on line 276

OTS_Player.php line 276:
Code:
    public function getOldName()
    {
        if( !isset($this->data['old_name']) )
        {
            [B][COLOR="red"]throw new E_OTS_NotLoaded();[/COLOR][/B]
        }

        return $this->data['old_name'];
    }
characters.php line 23:
Code:
			[B][COLOR="red"]if($player->getOldName())[/COLOR][/B]
			{
				if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;
				if($player->isNameLocked())
					$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Proposition:</TD><TD>'.$player->getOldName().'</TD></TR>';
				else
					$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Old name:</TD><TD>'.$player->getOldName().'</TD></TR>';
			}
 
Last edited:
Status
Not open for further replies.
Back
Top Bottom