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

Field vote does not exist in data / is not loaded.

Tyson12302

New Member
Joined
Aug 6, 2014
Messages
264
Reaction score
4
I made a poll and whenever i click on "vote now" i get this error message.
Error occured!
Error ID: ObjectData::getCustomField - Field vote does not exist in data / is not loaded.
More info:

File: C:\Users\Tyson\Desktop\UniServer\UniServerZ\www\classes/objectdata.php Line: 52
File: C:\Users\Tyson\Desktop\UniServer\UniServerZ\www\pages/polls.php Line: 128
File: C:\Users\Tyson\Desktop\UniServer\UniServerZ\www\system/load.page.php Line: 7
File: C:\Users\Tyson\Desktop\UniServer\UniServerZ\www/index.php Line: 37

Whats the problem?
 
Execute this query (in SQL Tab) via phpmyadmin:
Code:
ALTER TABLE `accounts` ADD `vote` INT( 11 ) NOT NULL DEFAULT '0';
If you get more errors after this, reinstall your AAC.
 
Open <your web folder>/classes/account.php and modify these 2 lines: (in my script they are lines 10 and 11:
Code:
   public $data = array('name' => null, 'password' => null, 'premdays' => null, 'lastday' => null, 'email' => null, 'key' => null, 'create_ip' => null, 'creation' => null, 'premium_points' => null, 'page_access' => null, 'location' => null, 'rlname' => null, 'email_new' => null, 'email_new_time' => null, 'email_code' => null, 'next_email' => null, 'last_post' => null, 'flag' => null, 'vote' => null);
   public static $fields = array('id', 'name', 'password', 'premdays', 'lastday', 'email', 'key', 'create_ip', 'creation', 'premium_points', 'page_access', 'location', 'rlname', 'email_new', 'email_new_time', 'email_code', 'next_email', 'last_post', 'flag', 'vote');
 
Back
Top