• 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 Guilds.php Gesior Acc error

Gabriel Tibiano

New Member
Joined
Nov 21, 2009
Messages
420
Reaction score
4
I'm getting this error, could anyone fix this code for me?
I'm using this guilds.php
guilds.php - gesior-aac - A new Gesior-AAC - Google Project Hosting

PHP:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'join_date' in 'field list'' in C:\xampp\htdocs\pot\OTS_Player.php:1821 Stack trace: #0 C:\xampp\htdocs\pot\OTS_Player.php(1821): PDO->query('SELECT `join_da...') #1 C:\xampp\htdocs\guilds.php(249): OTS_Player->getCustomField('join_date') #2 C:\xampp\htdocs\index.php(250): include('C:\xampp\htdocs...') #3 {main} thrown in C:\xampp\htdocs\pot\OTS_Player.php on line 1821
 
Last edited:
everything? o;
still sending error..
it's an database missing field, i guess..

PHP:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'join_date' in 'field list'' in C:\xampp\htdocs\pot\OTS_Player.php:1811 Stack trace: #0 C:\xampp\htdocs\pot\OTS_Player.php(1811): PDO->query('SELECT `join_da...') #1 C:\xampp\htdocs\guilds.php(249): OTS_Player->getCustomField('join_date') #2 C:\xampp\htdocs\index.php(250): include('C:\xampp\htdocs...') #3 {main} thrown in C:\xampp\htdocs\pot\OTS_Player.php on line 1811
 
this error now..
o:

PHP:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'join_date' in 'field list'' in C:\xampp\htdocs\pot\OTS_Player.php:1821 Stack trace: #0 C:\xampp\htdocs\pot\OTS_Player.php(1821): PDO->query('SELECT `join_da...') #1 C:\xampp\htdocs\guilds.php(249): OTS_Player->getCustomField('join_date') #2 C:\xampp\htdocs\index.php(250): include('C:\xampp\htdocs...') #3 {main} thrown in C:\xampp\htdocs\pot\OTS_Player.php on line 1821
 
Nobody knew help me
so i tried to manage it and i solvedd


PHP:
				$main_content .= '</TABLE></TD><td>'.date("M d Y", $player->getCustomField("join_date")).'</td></TR>';
to
PHP:
				$main_content .= '</TABLE></TD><td>'.date("M d Y", $guild->getCustomField("join_date")).'</td></TR>';
$player -> $guild
wrong fields in DB​

using this code..
PHP:
ALTER TABLE `guilds` ADD COLUMN `join_date` INT( 11 ) NOT NULL DEFAULT '0';
 
Back
Top