Postado Janeiro 31, 2015 10 anos Ola pessoal do TK, eu fiz um tutorial (http://www.tibiaking.com/forum/topic/34334-vip-system-by-account-10-by-kydrai/) passo a passo certinho para implementar o sistema vip só que quando eu acabei o site deu esse erro: Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'viptime' in 'field list'' in C:\xampp\htdocs\pot\OTS_Account.php:237 Stack trace: #0 C:\xampp\htdocs\pot\OTS_Account.php(237): PDO->query('SELECT `id`, `n...') #1 C:\xampp\htdocs\index.php(24): OTS_Account->load('359803') #2 {main} thrown in C:\xampp\htdocs\pot\OTS_Account.php on line 237 como resolvo isso?
Postado Janeiro 31, 2015 10 anos Velho sou novo nisso mas acho que isso pode resolver. Tenta da esse comando lá no seu banco de dados: CREATE TABLE IF NOT EXISTS `accounts` ( `id` int(11) NOT NULL, `name` varchar(32) NOT NULL DEFAULT '', `password` varchar(255) NOT NULL, `salt` varchar(40) NOT NULL DEFAULT '', `premdays` int(11) NOT NULL DEFAULT '0', `lastday` int(10) unsigned NOT NULL DEFAULT '0', `email` varchar(255) NOT NULL DEFAULT '', `key` varchar(20) NOT NULL DEFAULT '0', `blocked` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'internal usage', `warnings` int(11) NOT NULL DEFAULT '0', `group_id` int(11) NOT NULL DEFAULT '1', `page_lastday` int(11) NOT NULL, `email_new` varchar(255) NOT NULL, `email_new_time` int(15) NOT NULL, `created` int(11) NOT NULL DEFAULT '0', `rlname` varchar(255) NOT NULL DEFAULT '', `location` varchar(255) NOT NULL DEFAULT '', `page_access` int(11) NOT NULL DEFAULT '0', `email_code` varchar(255) NOT NULL DEFAULT '0', `next_email` int(11) NOT NULL DEFAULT '0', `premium_points` int(11) NOT NULL DEFAULT '0', `vote` int(11) NOT NULL, `last_post` int(11) NOT NULL DEFAULT '0', `flag` varchar(255) NOT NULL, `viptime` int(15) NOT NULL DEFAULT '0', `vip_time` int(15) NOT NULL DEFAULT '0', `vipdays` int(15) NOT NULL DEFAULT '0', `vip_days` int(11) NOT NULL DEFAULT '0', `create_date` int(11) NOT NULL DEFAULT '0', `create_ip` int(11) NOT NULL DEFAULT '0', `guild_points` int(11) NOT NULL DEFAULT '0' ) ENGINE=InnoDB AUTO_INCREMENT=9655891 DEFAULT CHARSET=latin1; VENHAM PARTICIPAR: TIBIA 10.53 WWW.STARSCREAMOT.COM GLOBAL FULL DEDICADO - 24H SEM LAG COM PROTEÇÃO DDOS <a href="http://otslist.eu/ots/28680"target="_blank"><img src="http://otslist.eu/signature/28680_8.png" alt="Tibia" title="Tibia"/></a>
Postado Janeiro 31, 2015 10 anos Executa esse comando na sua data base: ALTER TABLE `accounts` ADD `viptime` INT(11) NOT NULL DEFAULT '0'; *Desse modo, não vai resetar nada. Edit: O do amigo acima não irá funcionar, pois ele faz a checagem IF NOT EXISTS pra table, e já que a table existe, não vai rodar as modificações. Editado Janeiro 31, 2015 10 anos por danihcv (veja o histórico de edições) Te ajudei?? REP + e ficamos quites... http://www.tibiaking.com/forum/uploads/emoticons/default_happyy.png' alt=';D'> Atenciosamente, Daniel. Abraços! Meus tutoriais: Programação: Resolvendo QUALQUER erro na data base. Scripts (system's, creaturescripts, mod's, NPC's, etc): (Sistema) GOD Ambient Light Full. Adicionando novas mounts ao servidor [NPC] Papai Noel que dá presente todo ano. Web-site: Resolvendo problema de caracteres especiais em PHP Formatando textos em PHP! Mudando a cor, tamanho, fonte, etc. Criando e configurando tabelas para paginas PHP
Postado Janeiro 31, 2015 10 anos Autor danihcv executei o comando, pelo visto o erroa anterior foi resolvido e apareceu esse: Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Sao_Paulo' for '-2.0/DST' instead in C:\xampp\htdocs\characters.php on line 94 Fatal error: Uncaught exception 'E_OTS_NotLoaded' in C:\xampp\htdocs\pot\OTS_Account.php:368 Stack trace: #0 C:\xampp\htdocs\characters.php(100): OTS_Account->getPlayerVip_Time() #1 C:\xampp\htdocs\index.php(172): include('C:\xampp\htdocs...') #2 {main} thrown in C:\xampp\htdocs\pot\OTS_Account.php on line 368 como proceder? Fatal error: Uncaught exception 'E_OTS_NotLoaded' in C:\xampp\htdocs\pot\OTS_Account.php:445 Stack trace: #0 C:\xampp\htdocs\accountmanagement.php(14): OTS_Account->getRecoveryKey() #1 C:\xampp\htdocs\index.php(197): include('C:\xampp\htdocs...') #2 {main} thrown in C:\xampp\htdocs\pot\OTS_Account.php on line 445 esse também aparece quando clica em my account
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.