Ir para conteúdo

Featured Replies

Postado

.Qual servidor ou website você utiliza como base? 

Qual o motivo deste tópico? 

n estou conseguindo por o site no ar alguem poderia me ajudar a resolver ? pfv

Está surgindo algum erro? Se sim coloque-o aqui. 

  Citar

Warning: foreach() argument must be of type array|object, null given in C:\xampp\htdocs\classes\configlua.php on line 54

Fatal error: Declaration of Database::query($statement) must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs) in C:\xampp\htdocs\classes\database.php on line 194

 

Você tem o código disponível? Se tiver publique-o aqui: 

linha 54 do config lua
{
                            foreach($this->config as $tmp_key => $tmp_value) // load values definied by other keys, like: dailyFragsToBlackSkull = dailyFragsToRedSkull
                                $value = str_replace($tmp_key, $tmp_value, $value);
                            $ret = @eval("return $value;");
                            if((string) $ret == '') // = parser error
                            {
                                new Error_Critic('', 'ERROR: <b>#C-1</b> : Class::ConfigLUA - Line <b>' . ($ln + 1) . '</b> of LUA config file is not valid [key: <b>' . $key . '</b>]');
                            }
                            $this->config[ $key ] = $ret;
                        }

linha 194 database
public function query($statement)
    {
        $this->queriesCount++;
        // BETA TESTS - uncomment line below to print all queries on website before execution
        //echo'<br />' . $statement . '<br />';
        if($this->isConnected() || $this->connect())
        {
            $ret = parent::query($statement);
            if($this->printQueries)
            {
                $_errorInfo = $this->errorInfo();
                echo '<table>';
                echo '<tr><td>Query: </td><td>' . $statement . '</td></tr>';
                echo '<tr><td>SQLSTATE: </td><td>' . $_errorInfo[0] . '</td></tr>';
                echo '<tr><td>Driver code: </td><td>' . $_errorInfo[1] . '</td></tr>';
                echo '<tr><td>Error message: </td><td>' . $_errorInfo[2] . '</td></tr>';
                echo '</table>';
            }
            return $ret;
        }
        else
            new Error_Critic('', 'Website is not connected to database. Cannot execute query($statement)');
    }

Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. 

 

consegui arrumar o error da linha 194 database era a versao do xampp agr so falta arrumar o error
Warning: foreach() argument must be of type array|object, null given in C:\xampp\htdocs\classes\configlua.php on line 54
alguem pode me da uma ajuda pfv

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