Ir para conteúdo

Featured Replies

Postado
  • Autor

Na verdade, não tem nada criado, só instalei o site e quando fui abrir algum tópico do fórum, ele me retorna esse erro

Va em index.php

define('DEBUG_DATABASE', false);

Troque por:

define('DEBUG_DATABASE', true);

Vai mostrar o erro, você posta pra mim da uma olhada, provavelmente seja alguma coluna que esteja faltando!

Editado por Natanael Beckman (veja o histórico de edições)

  • Respostas 492
  • Visualizações 131.4k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Natanael Beckman
    Natanael Beckman

    TFS 0.4 OTX   Obrigado galera pelos comentários e curti     

  • Natanael Beckman
    Natanael Beckman

    Boa maper valeu pelo suporte, sim está faltando a coluna: ALTER TABLE `z_forum` ADD `post_icon_id` tinyint(10) NOT NULL Em layouts.php mano

  • Felipe Monteiro
    Felipe Monteiro

    Vlw Natanael pelos créditos! A versão para tfs 1.0 esta no forno, breve posto imagens pra deixar vocês com água na boca.

Posted Images

Postado

Va em index.php

define('DEBUG_DATABASE', false);

Troque por:

define('DEBUG_DATABASE', true);

Vai mostrar o erro, você posta pra mim da uma olhada, provavelmente seja alguma coluna que esteja faltando!

 

Segue o erro: 

Query:	SELECT COUNT(`z_forum`.`id`) AS threads_count FROM `players`, `z_forum` WHERE `players`.`id` = `z_forum`.`author_guid` AND `z_forum`.`section` = 1 AND `z_forum`.`first_post` = `z_forum`.`id`
SQLSTATE:	00000
Driver code:	
Error message:	
Query:	SELECT `players`.`name`, `players`.`signature`, `z_forum`.`post_text`, `z_forum`.`post_topic`, `z_forum`.`id`, `z_forum`.`last_post`, `z_forum`.`replies`, `z_forum`.`views`, `z_forum`.`post_date`, `z_forum`.`post_icon_id` FROM `players`, `z_forum` WHERE `players`.`id` = `z_forum`.`author_guid` AND `z_forum`.`section` = 1 AND `z_forum`.`first_post` = `z_forum`.`id` ORDER BY `z_forum`.`last_post` DESC LIMIT 20 OFFSET 0
SQLSTATE:	42S22
Driver code:	1054
Error message:	Unknown column 'z_forum.post_icon_id' in 'field list'

Fatal error: Call to a member function fetchAll() on a non-object in C:\xampp\htdocs\pages\forum.php on line 338
Postado

 

Segue o erro: 

Query:	SELECT COUNT(`z_forum`.`id`) AS threads_count FROM `players`, `z_forum` WHERE `players`.`id` = `z_forum`.`author_guid` AND `z_forum`.`section` = 1 AND `z_forum`.`first_post` = `z_forum`.`id`
SQLSTATE:	00000
Driver code:	
Error message:	
Query:	SELECT `players`.`name`, `players`.`signature`, `z_forum`.`post_text`, `z_forum`.`post_topic`, `z_forum`.`id`, `z_forum`.`last_post`, `z_forum`.`replies`, `z_forum`.`views`, `z_forum`.`post_date`, `z_forum`.`post_icon_id` FROM `players`, `z_forum` WHERE `players`.`id` = `z_forum`.`author_guid` AND `z_forum`.`section` = 1 AND `z_forum`.`first_post` = `z_forum`.`id` ORDER BY `z_forum`.`last_post` DESC LIMIT 20 OFFSET 0
SQLSTATE:	42S22
Driver code:	1054
Error message:	Unknown column 'z_forum.post_icon_id' in 'field list'

Fatal error: Call to a member function fetchAll() on a non-object in C:\xampp\htdocs\pages\forum.php on line 338

 

Bom... Ta faltando uma coluna (eu acho).... sugiro q vc apague essa tabela z_forum e adicione isso no sql:

 

z_forum

CREATE TABLE `z_forum` (

`id` int(11) NOT NULL,

`first_post` int(11) NOT NULL DEFAULT '0',

`last_post` int(11) NOT NULL DEFAULT '0',

`section` int(3) NOT NULL DEFAULT '0',

`replies` int(20) NOT NULL DEFAULT '0',

`views` int(20) NOT NULL DEFAULT '0',

`author_aid` int(20) NOT NULL DEFAULT '0',

`author_guid` int(20) NOT NULL DEFAULT '0',

`post_text` text NOT NULL,

`post_topic` varchar(255) NOT NULL,

`post_smile` tinyint(1) NOT NULL DEFAULT '0',

`post_date` int(20) NOT NULL DEFAULT '0',

`last_edit_aid` int(20) NOT NULL DEFAULT '0',

`edit_date` int(20) NOT NULL DEFAULT '0',

`post_ip` varchar(15) NOT NULL DEFAULT '0.0.0.0',

`icon_id` tinyint(4) NOT NULL DEFAULT '1',

`post_icon_id` tinyint(10) NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=26 ;

 

se o erro persistir poste aki

Editado por maper007 (veja o histórico de edições)

Postado
  • Autor

Bom... Ta faltando uma coluna (eu acho).... sugiro q vc apague essa tabela z_forum e adicione isso no sql:

 

z_forum

CREATE TABLE `z_forum` (

`id` int(11) NOT NULL,

`first_post` int(11) NOT NULL DEFAULT '0',

`last_post` int(11) NOT NULL DEFAULT '0',

`section` int(3) NOT NULL DEFAULT '0',

`replies` int(20) NOT NULL DEFAULT '0',

`views` int(20) NOT NULL DEFAULT '0',

`author_aid` int(20) NOT NULL DEFAULT '0',

`author_guid` int(20) NOT NULL DEFAULT '0',

`post_text` text NOT NULL,

`post_topic` varchar(255) NOT NULL,

`post_smile` tinyint(1) NOT NULL DEFAULT '0',

`post_date` int(20) NOT NULL DEFAULT '0',

`last_edit_aid` int(20) NOT NULL DEFAULT '0',

`edit_date` int(20) NOT NULL DEFAULT '0',

`post_ip` varchar(15) NOT NULL DEFAULT '0.0.0.0',

`icon_id` tinyint(4) NOT NULL DEFAULT '1',

`post_icon_id` tinyint(10) NOT NULL

) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=26 ;

 

se o erro persistir poste aki

 

Boa maper valeu pelo suporte, sim está faltando a coluna:

ALTER TABLE `z_forum` ADD `post_icon_id` tinyint(10) NOT NULL

Como edito aquele box Networks

Em layouts.php mano

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo