Postado Maio 2, 2013 12 anos Então galera, estou com um problema em meu servidor, quando tento comprar item no shop, seleciono o item, clico para enviar para meu char e dá um error: Fatal error : Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'chaitosoft.z_shop_history_item' doesn't exist' in /var/www/shopsystem.php:506 Stack trace: #0 /var/www/shopsystem.php(506): PDO->query('INSERT INTO `z_...') #1 /var/www/index.php(298): include('/var/www/shopsy...') #2 {main} thrown in /var/www/shopsystem.php on line 506 e fica dando um erro sem parar na distro: mysql_real_query(): SELECT * FROM shop_history WHERE `processed` = 0; - MYSQL ERROR: Table '.shop_history' doesn't exist já mexi e remexi no site, troquei shop.lua, troquei tabelas, e nada, continua o mesmo erro, e também dá alguns erros na distro, além do mysql error: [15:52:45.907] [Error - CreatureScript Interface] [15:52:45.907] data/creaturescripts/scripts/arenakill.lua:onKill [15:52:45.908] Description: [15:52:45.908] data/creaturescripts/scripts/arenakill.lua:64: attempt to perform arithmetic on a string value [15:52:45.908] stack traceback: [15:52:45.908] data/creaturescripts/scripts/arenakill.lua:64: in function <data/creaturescripts/scripts/arenakill.lua:38> Além desse error no arenakill, as vezes alterna e troca pra outro script do creature e fica dando error :X estava tranquilo até ontem pelo manhã, depois começou a bugar tudo, alguém pelo menos sabe arrumar esse problema do Shop? REP+ a quem souber arrumar! Editado Maio 2, 2013 12 anos por sear10 (veja o histórico de edições)
Postado Maio 2, 2013 12 anos Ve se tem a coluna z_shop_history_itemSe não tiver execute isso no seu SQL CREATE TABLE `z_shop_history_item` ( `id` int(11) NOT NULL auto_increment,`to_name` varchar(255) NOT NULL default '0', `to_account` int(11) NOT NULL default '0', `from_nick` varchar(255) NOT NULL, `from_account` int(11) NOT NULL default '0', `price` int(11) NOT NULL default '0', `offer_id` int(11) NOT NULL default '0', `trans_state` varchar(255) NOT NULL, `trans_start` int(11) NOT NULL default '0', `trans_real` int(11) NOT NULL default '0', PRIMARY KEY (`id`)) Editado Maio 2, 2013 12 anos por Luquinha (veja o histórico de edições)
Postado Maio 2, 2013 12 anos Tenta reinstalar seu site para criar algumas tabelas que ta faltando.Sabe como ? Se não souber é só ir la em config.iniE colocar start"yes" Acho que é assim não me lembro mt bem mas é só trocar por no e por yes
Postado Maio 2, 2013 12 anos Autor Mas não está faltando tabela alguma, as tabelas são as mesmas de antes.
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.