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

[XAMPP] Highscore page failing?

_Arthur

Joined
Oct 22, 2009
Messages
2,190
Reaction score
143
Fatal error: Uncaught exception 'E_OTS_NotLoaded' in C:\xampp\xampp\htdocs\pot\OTS_Account.php:769 Stack trace: #0 C:\xampp\xampp\htdocs\highscores.php(93): OTS_Account->getCustomField('flag') #1 C:\xampp\xampp\htdocs\index.php(111): include('C:\xampp\xampp\...') #2 {main} thrown in C:\xampp\xampp\htdocs\pot\OTS_Account.php on line 769


Any ideas?
 
EDIT: I erased
Code:
    public function getCustomField($field)
    {
        if( !isset($this->data['id']) )
        {
            throw new E_OTS_NotLoaded();
        }

        $value = $this->db->query('SELECT ' . $this->db->fieldName($field) . ' FROM ' . $this->db->tableName('accounts') . ' WHERE ' . $this->db->fieldName('id') . ' = ' . $this->data['id'])->fetch();
        return $value[$field];
    }
from C:\xampp\xampp\htdocs\pot\OTS_Account.php

AND..

Code:
$flagg = $account->getCustomField("flag");
from highscores.php

and things seem to be working fine now, even though I don't think I should have erased these..
 
Back
Top