Postado Novembro 7, 2018 6 anos Boa tarde pessoal !!! então, é o seguinte ... como eu so sei colocar e mexer com otserv 8.6 e sem website, estou tentando migrar pras versões atuais, por enquanto esta tudo ocorrendo bem, tirando esse erro Spoiler Fatal error: Call to a member function fetchAll() on a non-object in C:\xampp\htdocs\layouts\tibiacom\layout.php on line 13 quando vou abrir o Admin no xampp pra entrar no site (Já importei a data base td certinho !!!) se alguém puder ajudar !!! vou postar as linhas que deu erro aqui !!! Spoiler linha 12 }linha 13 $players_online_data = $SQL->query('SELECT ' . $SQL->tableName('accounts') . '.' . $SQL->fieldName('flag') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('name') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('vocation') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('level') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('skull') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('looktype') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('lookaddons') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('lookhead') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('lookbody') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('looklegs') . ', ' . $SQL->tableName('players') . '.' . $SQL->fieldName('lookfeet') . ' FROM ' . $SQL->tableName('accounts') . ', ' . $SQL->tableName('players') . ', ' . $SQL->tableName('players_online') . ' WHERE ' . $SQL->tableName('players') . '.' . $SQL->fieldName('id') . ' = ' . $SQL->tableName('players_online') . '.' . $SQL->fieldName('player_id') . ' AND ' . $SQL->tableName('accounts') . '.' . $SQL->fieldName('id') . ' = ' . $SQL->tableName('players') . '.' . $SQL->fieldName('account_id') . ' ORDER BY ' . $SQL->fieldName($orderby))->fetchAll(); linha 14 $number_of_players_online = 0; Editado Novembro 7, 2018 6 anos por KillerWatts (veja o histórico de edições)
Postado Novembro 7, 2018 6 anos Você deve posta o layout.php para corrigir . apenas o erro fica complicado resolver
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.