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

Windows Fatal error: Call to a member function fetch() on a non-object

Naxtie

mapper, designer
Joined
Oct 15, 2011
Messages
1,565
Solutions
1
Reaction score
250
Location
Sweden
Well I encountered a little issue, I'm trying to install Gesior AAC on my computer using xampp 1.7.3. I just want it installed cuz I'm working on something (It's nothing serious so dont tell me I suck cuz im using an old version of xampp).

Anyways, everything went smooth untill I was going to set the admin account password, when I pressed Submit this error showed up,

PHP:
Fatal error: Call to a member function fetch() on a non-object in C:\xampp\htdocs\classes\account.php on line 33

And here's line 33,
PHP:
        $this->data = $this->getDatabaseHandler()->query('SELECT ' . implode(', ', $fieldsArray) . ' FROM ' . $this->getDatabaseHandler()->tableName(self::$table) . ' WHERE ' . $search_string)->fetch();

If anyone got a idea how to fix this, I would appreciate it alot.
 
Uhm, alright I enabled it, now what? o_O

EDIT: Nvm, this came up now

Query:SELECT `id`, `name`, `password`, `premdays`, `lastday`, `email`, `key`, `group_id`, `create_ip`, `create_date`, `premium_points`, `page_access`, `location`, `rlname`, `email_new`, `email_new_time`, `email_code`, `next_email`, `last_post`, `flag` FROM `accounts` WHERE `name` = '1'
SQLSTATE:42S22
Driver code:1054
Error message:Unknown column 'flag' in 'field list'
 
Now I got this instead,
Code:
Query:    SELECT `id`, `name`, `password`, `premdays`, `lastday`, `email`, `key`, `group_id`, `create_ip`, `create_date`, `premium_points`, `page_access`, `location`, `rlname`, `email_new`, `email_new_time`, `email_code`, `next_email`, `last_post`, `flag` FROM `accounts` WHERE `name` = '1'
SQLSTATE:    00000
Driver code:   
Error message:   

Fatal error: Call to undefined method Account::getSalt() in C:\xampp\htdocs\classes\website.php on line 149
 
Back
Top