Ir para conteúdo
lordfox8

Warning: Cannot modify header information - headers already sent by (setcookie)

Recommended Posts

Estou tendo problemas com isso:

 

Citar

Warning: Cannot modify header information - headers already sent by (output started at /home/maxiimpo/public_html/maxiimanager/revcal/index.php:1) in /home/maxiimpo/public_html/maxiimanager/revcal/index.php on line 2

Warning: Cannot modify header information - headers already sent by (output started at /home/maxiimpo/public_html/maxiimanager/revcal/index.php:1) in /home/maxiimpo/public_html/maxiimanager/revcal/index.php on line 4

Warning: Cannot modify header information - headers already sent by (output started at /home/maxiimpo/public_html/maxiimanager/revcal/index.php:1) in /home/maxiimpo/public_html/maxiimanager/revcal/index.php on line 5

Warning: Cannot modify header information - headers already sent by (output started at /home/maxiimpo/public_html/maxiimanager/revcal/index.php:1) in /home/maxiimpo/public_html/maxiimanager/revcal/index.php on line 6

Warning: Cannot modify header information - headers already sent by (output started at /home/maxiimpo/public_html/maxiimanager/revcal/index.php:1) in /home/maxiimpo/public_html/maxiimanager/revcal/index.php on line 7

Warning: Cannot modify header information - headers already sent by (output started at /home/maxiimpo/public_html/maxiimanager/revcal/index.php:1) in /home/maxiimpo/public_html/maxiimanager/revcal/index.php on line 8

Warning: Cannot modify header information - headers already sent by (output started at /home/maxiimpo/public_html/maxiimanager/revcal/index.php:1) in /home/maxiimpo/public_html/maxiimanager/revcal/index.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at /home/maxiimpo/public_html/maxiimanager/revcal/index.php:1) in /home/maxiimpo/public_html/maxiimanager/revcal/index.php on line 10

Warning: Cannot modify header information - headers already sent by (output started at /home/maxiimpo/public_html/maxiimanager/revcal/index.php:1) in /home/maxiimpo/public_html/maxiimanager/revcal/index.php on line 11

Warning: Cannot modify header information - headers already sent by (output started at /home/maxiimpo/public_html/maxiimanager/revcal/index.php:1) in /home/maxiimpo/public_html/maxiimanager/revcal/index.php on line 12

Warning: Cannot modify header information - headers already sent by (output started at /home/maxiimpo/public_html/maxiimanager/revcal/index.php:1) in /home/maxiimpo/public_html/maxiimanager/revcal/index.php on line 13

Warning: Cannot modify header information - headers already sent by (output started at /home/maxiimpo/public_html/maxiimanager/revcal/index.php:1) in /home/maxiimpo/public_html/maxiimanager/revcal/index.php on line 14

Warning: Cannot modify header information - headers already sent by (output started at /home/maxiimpo/public_html/maxiimanager/revcal/index.php:1) in /home/maxiimpo/public_html/maxiimanager/revcal/index.php on line 15

Warning: Cannot modify header information - headers already sent by (output started at /home/maxiimpo/public_html/maxiimanager/revcal/index.php:1) in /home/maxiimpo/public_html/maxiimanager/revcal/index.php on line 16

Warning: Cannot modify header information - headers already sent by (output started at /home/maxiimpo/public_html/maxiimanager/revcal/index.php:1) in /home/maxiimpo/public_html/maxiimanager/revcal/index.php on line 17

Warning: Cannot modify header information - headers already sent by (output started at /home/maxiimpo/public_html/maxiimanager/revcal/index.php:1) in /home/maxiimpo/public_html/maxiimanager/revcal/index.php on line 18

Warning: Cannot modify header information - headers already sent by (output started at /home/maxiimpo/public_html/maxiimanager/revcal/index.php:1) in /home/maxiimpo/public_html/maxiimanager/revcal/index.php on line 19

Warning: Cannot modify header information - headers already sent by (output started at /home/maxiimpo/public_html/maxiimanager/revcal/index.php:1) in /home/maxiimpo/public_html/maxiimanager/revcal/index.php on line 22

Warning: Cannot modify header information - headers already sent by (output started at /home/maxiimpo/public_html/maxiimanager/revcal/index.php:1) in /home/maxiimpo/public_html/maxiimanager/revcal/index.php on line 23

 

<?php 
header("HTTP/1.0 404 Not Found");
//include ('jobs.php');
		setcookie ('pg_adm_id','');
		setcookie ('pg_adm_nome',''); 
		setcookie ('pg_adm_add_pad','');
		setcookie ('pg_adm_edit_pad','');
		setcookie ('pg_adm_del_pad','');
		setcookie ('pg_adm_add_cli','');
		setcookie ('pg_adm_edit_cli','');
		setcookie ('pg_adm_del_cli','');
		setcookie ('pg_adm_add_cer','');
		setcookie ('pg_adm_edit_cer',''); 
		setcookie ('pg_adm_del_cer',''); 
		setcookie ('pg_adm_ver_his','');
		setcookie ('pg_adm_pod_ass','');
		setcookie ('pg_adm_edi_adm','');
		setcookie ('pg_login_ativo','');
		setcookie ('pg_cli_id','');// cadastro do cookie em certificados
		
		//LIMPEZA DO LOGIN INVALIDO
		setcookie ('MAXI_pg_adm_user_teste','');
		setcookie ('MAXI_pg_adm_senha_teste','');
?>


<!doctype html>
<html>
<head>
<meta charset='utf-8'>
<link rel='icon' type='image/png' href='images/maxiimpor-ico.png'/>
<title>MAXIIMPOR - Manager</title>
</head>
<script type='text/javascript'>// <![CDATA[
var imageCount = 0;
var currentImage = 0;
var images = new Array();
 
images[0] = 'images/fundo/imagens1.jpg';
images[1] = 'images/fundo/imagens2.jpg';
images[2] = 'images/fundo/imagens3.jpg';
images[3] = 'images/fundo/imagens4.jpg';
images[4] = 'images/fundo/imagens5.jpg';
images[5] = 'images/fundo/imagens6.jpg';
images[6] = 'images/fundo/imagens7.jpg';
images[7] = 'images/fundo/imagens8.jpg';
 
var preLoadImages = new Array();
for (var i = 0; i < images.length; i++)
{
   if (images[i] == '')
      break;
 
   preLoadImages[i] = new Image();
   preLoadImages[i].src = images[i];
   imageCount++;
}
 
function startSlideShow()
{
   if (document.body && imageCount > 0)
   {
      document.body.style.backgroundImage = 'url('+images[currentImage]+')';    
      document.body.style.backgroundAttachment = 'fixed';
      document.body.style.backgroundRepeat = 'repeat';
      document.body.style.backgroundPosition = 'left top';
 
      currentImage = currentImage + 1;
      if (currentImage > (imageCount-1))
      { 
         currentImage = 0;
      }
      setTimeout('startSlideShow()', 60000);
   }
}
// ]]></script>
<body>
<script>
startSlideShow();
</script>
<table width='50%' border='0' align='center' cellpadding='0' cellspacing='0'>
  <tr>
    <td width='38' height='80' background='images/contorno/esquerdo-top.png'>&nbsp;</td>
    <td align='center' valign='middle' background='images/contorno/centro-top.png'><table width='100%' border='0' align='center' cellpadding='0' cellspacing='15'>
      <tr>
        <td align='center'><img src='images/Logo.png' alt=''  /></td>
      </tr>
    </table></td>
    <td width='38' background='images/contorno/direito-top.png'>&nbsp;</td>
  </tr>
  <tr>
    <td width='38' background='images/contorno/esquerdo-meio.png'>&nbsp;</td>
    <td align='center' bgcolor='#FFFFFF'><form id='login adm' name='login adm' method='post' action='loginteste.php'><table width='50%' border='0' align='center'>
      <tr>
        <td colspan='2' align='center'><strong>Acesso ao sistema</strong></td>
        </tr>
      <tr>
        <td width='30%' align='right'><strong>User:</strong></td>
        <td width='70%' align='left'><input name='pg-adm-user' type='text' required></td>
      </tr>
      <tr>
        <td align='right'><strong>Senha:</strong></td>
        <td align='left'><input name='pg-adm-senha' type='password' required></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><input type='submit' name='Logar' id='Logar' value='Logar' /></td>
      </tr>
    </table>
      
    </form></td>
    <td width='38' background='images/contorno/direito-meio.png'>&nbsp;</td>
  </tr>
  <tr>
    <td width='38' height='70' background='images/contorno/esquerdo-inferior.png'>&nbsp;</td>
    <td align='center' valign='middle' background='images/contorno/centro-inferior.png'><? echo $MAXI_VERSÃO;?></td>
    <td width='38' background='images/contorno/direito-inferior.png'>&nbsp;</td>
  </tr>
</table>
</body>
</html>

 

Compartilhar este post


Link para o post
Compartilhar em outros sites

Diante de um erro do tipo "Não é possível modificar a informação do cabeçalho":

 

  • Verifique se não há nenhuma linha, espaço em branco, texto, HTML ou qualquer outro tipo de conteúdo antes da tag de início <?php.
  • Verifique se não há nenhuma saída de informação antes de usar funções como setcookie(), header() ou qualquer outra função que gere ou modifique cabeçalhos HTTP.
  • Verificar se o file não contém caracteres de lista técnica.
  • É aplicável ao erro "Não é possível modificar a informação do cabeçalho - Cabeçalhos já enviados" e outros de natureza semelhante como "Não é possível enviar o limitador de cache de sessão" ou "Não é possível enviar o cookie de sessão".

Compartilhar este post


Link para o post
Compartilhar em outros sites
Em 28/07/2019 at 23:34, jeean_freestyle@hotmail.co disse:

copie e cole isto 

 

header("Status: 404 Not Found");

  

em baixo disto


header("HTTP/1.0 404 Not Found");

.

 

Olá coloquei o código e continua dando erro.

<?PHP 
header("HTTP/1.0 404 Not Found");
header("Status: 404 Not Found");

include ('jobs.php');

		setcookie ('pg_adm_id','');
		setcookie ('pg_adm_nome',''); 
		setcookie ('pg_adm_add_pad','');
		setcookie ('pg_adm_edit_pad','');
		setcookie ('pg_adm_del_pad','');
		setcookie ('pg_adm_add_cli','');
		setcookie ('pg_adm_edit_cli','');
		setcookie ('pg_adm_del_cli','');
		setcookie ('pg_adm_add_cer','');
		setcookie ('pg_adm_edit_cer',''); 
		setcookie ('pg_adm_del_cer',''); 
		setcookie ('pg_adm_ver_his','');
		setcookie ('pg_adm_pod_ass','');
		setcookie ('pg_adm_edi_adm','');
		setcookie ('pg_login_ativo','');
		setcookie ('pg_cli_id','');// cadastro do cookie em certificados
		
		//LIMPEZA DO LOGIN INVALIDO
		setcookie ('MAXI_pg_adm_user_teste','');
		setcookie ('MAXI_pg_adm_senha_teste','');

?>


<head>
<meta charset='utf-8'>
<link rel='icon' type='image/png' href='images/maxiimpor-ico.png'/>
<title>MAXIIMPOR - Manager</title>
</head>
<script type='text/javascript'>// <![CDATA[
var imageCount = 0;
var currentImage = 0;
var images = new Array();
 
images[0] = 'images/fundo/imagens1.jpg';
images[1] = 'images/fundo/imagens2.jpg';
images[2] = 'images/fundo/imagens3.jpg';
images[3] = 'images/fundo/imagens4.jpg';
images[4] = 'images/fundo/imagens5.jpg';
images[5] = 'images/fundo/imagens6.jpg';
images[6] = 'images/fundo/imagens7.jpg';
images[7] = 'images/fundo/imagens8.jpg';
 
var preLoadImages = new Array();
for (var i = 0; i < images.length; i++)
{
   if (images[i] == '')
      break;
 
   preLoadImages[i] = new Image();
   preLoadImages[i].src = images[i];
   imageCount++;
}
 
function startSlideShow()
{
   if (document.body && imageCount > 0)
   {
      document.body.style.backgroundImage = 'url('+images[currentImage]+')';    
      document.body.style.backgroundAttachment = 'fixed';
      document.body.style.backgroundRepeat = 'repeat';
      document.body.style.backgroundPosition = 'left top';
 
      currentImage = currentImage + 1;
      if (currentImage > (imageCount-1))
      { 
         currentImage = 0;
      }
      setTimeout('startSlideShow()', 60000);
   }
}
// ]]></script>
<body>
<script>
startSlideShow();
</script>
<table width='50%' border='0' align='center' cellpadding='0' cellspacing='0'>
  <tr>
    <td width='38' height='80' background='images/contorno/esquerdo-top.png'>&nbsp;</td>
    <td align='center' valign='middle' background='images/contorno/centro-top.png'><table width='100%' border='0' align='center' cellpadding='0' cellspacing='15'>
      <tr>
        <td align='center'><img src='images/Logo.png' alt=''  /></td>
      </tr>
    </table></td>
    <td width='38' background='images/contorno/direito-top.png'>&nbsp;</td>
  </tr>
  <tr>
    <td width='38' background='images/contorno/esquerdo-meio.png'>&nbsp;</td>
    <td align='center' bgcolor='#FFFFFF'><form id='login adm' name='login adm' method='post' action='loginteste.php'><table width='50%' border='0' align='center'>
      <tr>
        <td colspan='2' align='center'><strong>Acesso ao sistema</strong></td>
        </tr>
      <tr>
        <td width='30%' align='right'><strong>User:</strong></td>
        <td width='70%' align='left'><input name='pg-adm-user' type='text' required></td>
      </tr>
      <tr>
        <td align='right'><strong>Senha:</strong></td>
        <td align='left'><input name='pg-adm-senha' type='password' required></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><input type='submit' name='Logar' id='Logar' value='Logar' /></td>
      </tr>
    </table>
      
    </form></td>
    <td width='38' background='images/contorno/direito-meio.png'>&nbsp;</td>
  </tr>
  <tr>
    <td width='38' height='70' background='images/contorno/esquerdo-inferior.png'>&nbsp;</td>
    <td align='center' valign='middle' background='images/contorno/centro-inferior.png'><? echo $MAXI_VERSÃO;?></td>
    <td width='38' background='images/contorno/direito-inferior.png'>&nbsp;</td>
  </tr>
</table>
</body>
</html>

 

Compartilhar este post


Link para o post
Compartilhar em outros sites

Crie uma conta ou entre para comentar

Você precisar ser um membro para fazer um comentário

Criar uma conta

Crie uma nova conta em nossa comunidade. É fácil!

Crie uma nova conta

Entrar

Já tem uma conta? Faça o login.

Entrar Agora

  • Conteúdo Similar

    • Por Wilherme
      Boa tarde galera, preciso de uma ajuda,
       
      Tenho um gráfico no meu Power Bi porem apresenta o erro abaixo:
       

       
      já habilitei as funções porém ainda com erro.
       
       
      Obrigado.
    • Por 4Unknow
      Bom dia comunidade Imasters.

      Venho aqui tratar de um problema dúvida que estou tendo com um layout que estou tentando usar o formulário php dele.
      Quando clico em enviar ele me enviar para um arquivo .php  (assets/vendor/simple-forms/sendmail.php)

      Ele não envia o e-mail, acredito que deveria aparecer uma mensagem que o contato foi enviado corretamente.
      Vou deixar os arquivos aqui em anexo quem puder me ajudar nessa, ficaria muito grato.
       
      Link Website (wetransfer.com)
    • Por Algorithm
      Olá a todos
       
      Eu estou codificando um exemplo de uso do GraphQL com Nodejs, mas eu estou recebendo um erro de syntax relacionado a [ : ] [ Dois Pontos ], mas eu comparei meu codigo, com o da documentação oficial e esta tudo certo. Será que alguem, conseguiria achar o erro ?
       
      OBS: Esta incluso neste post [ Exemplo Documentação, Meu Exemplo, Mensagem de Erro, Código Completo ]
       
      Exemplo Documentação
      module.exports = /* GraphQL */ ` type Client { id: ID! name: String age: Int products: [Product] } type Query { clients: [Client] client(id: ID!): Client } type Mutation { addClient(name: String!, age: Int!): Client } `  
      Meu Exemplo
      const typeDefs = ` type Pessoa { _id: ID _codigo: Float _nome: String _idade: Int _email: String } input inputPessoa { _codigo: Float _nome: String _idade: Int _email: String } type Query { resposta: String saudacao(nome: String!): String findPessoaOne(codigo: Float): Pessoa findPessoa(input: inputPessoas): [Pessoa] } type Mutation { insertPessoa(input: inputPessoa): Pessoa updatePessoa(codigo: Float, input: inputPessoa) Pessoa deletePessoa(codigo: Float) [Pessoa] } `;  
      Mensagem de Erro
      C:\Users\Core\node\node_modules\graphql\language\parser.js:1413 throw (0, _syntaxError.syntaxError)( ^ GraphQLError: Syntax Error: Expected ":", found Name "Pessoa". at syntaxError (C:\Users\Core\node\node_modules\graphql\error\syntaxError.js:15:10) at Parser.expectToken (C:\Users\Core\node\node_modules\graphql\language\parser.js:1413:40) at Parser.parseFieldDefinition (C:\Users\Core\node\node_modules\graphql\language\parser.js:847:10) at Parser.optionalMany (C:\Users\Core\node\node_modules\graphql\language\parser.js:1510:28) at Parser.parseFieldsDefinition (C:\Users\Core\node\node_modules\graphql\language\parser.js:831:17) at Parser.parseObjectTypeDefinition (C:\Users\Core\node\node_modules\graphql\language\parser.js:803:25) at Parser.parseDefinition (C:\Users\Core\node\node_modules\node_modules\graphql\language\phql\language\parser.js:171:23) at Parser.many (C:\Users\Core\node\node_modules\graphql\language\parser.js:1529:26) at Parser.parseDocument (C:\Users\Core\node\node_modules\graphql\language\parser.js:121:25) at parse (C:\Users\Core\node\node_modules\graphql\language\parser.js:32:17) { path: undefined, locations: [ { line: 26, column: 57 } ], extensions: [Object: null prototype] {} }  
      Codigo Completo
      // Requires const express = require('express'); const GraphQL_HTTP = require('express-graphql'); const { mergeSchemas } = require('@graphql-tools/schema'); // Run // const connect = MongoClient.connect(''); const app = express(); const getCode = () => { return 10 }; // GraphQL Definitions || Query and Mutation const typeDefs = ` type Pessoa { _id: ID _codigo: Float _nome: String _idade: Int _email: String } input inputPessoa { _codigo: Float _nome: String _idade: Int _email: String } type Query { resposta: String saudacao(nome: String!): String findPessoaOne(codigo: Float): Pessoa findPessoa(input: inputPessoas): [Pessoa] } type Mutation { insertPessoa(input: inputPessoa): Pessoa updatePessoa(codigo: Float, input: inputPessoa) Pessoa deletePessoa(codigo: Float) [Pessoa] } `; // Functions const resolvers = { Query: { resposta: function() { return `GraphQL Conectado com Sucesso...`; }, saudacao: function(_, args) { return `Olá ${args.nome}! Seja Muito Bem Vindo(a) a GraphQL!!!! ` }, findPessoaOne: function(_, args) { return db.collection('GraphQL-Pessoa').findOne({codigo: args.codigo}) .then((result) => { return result; }); }, findPessoa: function(_, args) { return db.collection(`GraphQL-Pessoa`).find(args.input).toArray() .then((result) => { return result; }); }, Mutation: { insertPessoa: function(_, args) { args.input.codigo = getCode(); return db.collection(`GraphQL-Pessoa`).insertOne(args.input) .then((result) => { return result.ops[0]; }); }, updatePessoa: function(_, args) { return db.collection('GraphQL-Pessoa').updateOne({codigo: args.codigo}, {$set: args.input}) .then((result) => { if(result.result.n > 0) return `Registro Alterado com Sucesso!`; else return `Ocorreu um erro ao alterar o registro`; }); }, deletePessoa: function(_, args) { return db.collection(`GraphQL-Pessoa`).deleteOne({codigo: args.codigo}) .then((result) => { if(result.result.n > 0) return `Registro Deletado com Sucesso!`; else return `Ocorreu um erro ao deletar o registro`; }); } } } }; const schema = mergeSchemas({ typeDefs: typeDefs, resolvers: resolvers }) // Listen app.listen(3005, () => { console.log(`Servidor Rodando na Porta 3005`); })  
       
      Obrigado
    • Por Kefatif
      Prezados, bom dia.
       
      Preciso da ajuda dos Srs!
       
      Não estou conseguindo localizar o erro no arquivo abaixo.
       
      Ao clicar no botão ele me envia a mensagem: "Erro ao registrar estoque !"
       
      Poderiam me ajudar?
       
      Agradeço desde já pela ajuda.
       
      <?php include_once 'autenticacao.php'; include_once'../../conexao.php'; include_once '../../funcoes.php'; include_once '../../decodepost.php'; if( !isset($_POST["cont"]) or !isset($_SESSION["cnes"]) ){ ECHO "Erro"; }else{ $cnes = $_SESSION["cnes"]; $idusuario = $_SESSION["idusuario"]; $cont = $_POST["cont"]; $sql = "insert into LESAO_ESTOQUE values(null,curdate(), '".$cnes."',".$idusuario.")"; if(mysqli_query($con, $sql)){ $idestoque = mysqli_insert_id($con); $coberturas = 0; for($i=1 ; $i<=$cont; $i++){ if(isset($_POST[$i])){ if($_POST[$i]<=0){ }else{ $qtd = $_POST[$i]; $sqlqtd = "insert into LESAO_REL_ESTOQUE_COBERTURAS values(".$idestoque.", ".$i.", ".$qtd.", ".$idusuario.")"; if(mysqli_query($con, $sqlqtd)){ $coberturas = $coberturas+1; } } } } $grav = "Registrado estoque de ".$coberturas." coberturas !"; }else{ $grav = "Erro ao registrar estoque !"; } //5- Fechar a conexão mysqli_close($con); ?> <script> alert('<?php echo $grav; ?>'); location.href="estoque-registrar.php"; </script> <?php } ?>  
    • Por Sapinn
      Opa galera, tudo blz? Recentemente comecei a estudar reactjs e para praticar estou fazendo o clone da Netiflix. Mas estou com um erro ao tentar chamar as imagens da API do TMDB o erro é: 
      TypeError: Cannot read properties of undefined (reading 'results')
       
      Já tentei refazer o código varias vezes mas não consegui resolver o problema. Vou postar o resto do código aqui
       
      App.js:
      import React, {useEffect, useState} from 'react'; import Tmdb from './Tmdb'; import MovieRow from './components/MovieRow'; const App = () =>{   const [movieList, setMovieList] = useState([]);   useEffect(()=>{     const loaddAll = async () =>{       let list = await Tmdb.getHomeList();       setMovieList(list)     }     loaddAll();   }, []);   return(       <div className="page">           <section className="lists">               {movieList.map((item, key)=>(                     <MovieRow key={key} title={item.title} items={item.items}/>               ))}                         </section>       </div>   ); } export default App; Consumir a api:
      Tmdb.js:
      const API_KEY = '******************************'; const API_BASE = 'https://api.themoviedb.org/3'; const basicFetch = async (endpoint) =>{     const req = await fetch(`${API_BASE}${endpoint}`)     const json = await req.json();     return json; } export default {     getHomeList: async () =>{         return [             {                 slug: 'originals',                 title: 'Originais da Netflix',                 items: await basicFetch(`/discover/tv?with_networks=213&language=pt-BR&api_key=${API_KEY}`)             },             {                 slug: 'trending',                 title: 'Recomendados para você',                 item: await basicFetch(`/trending/all/week?language=pt-BR&api_key=${API_KEY}`)             },             {                 slug: 'toprated',                 title: 'Em alta',                 item: await basicFetch(`/movie/top_rated?language=pt-BR&api_key=${API_KEY}`)             },             {                 slug: 'action',                 title: 'Ação',                 item: await basicFetch(`/discover/movie?width_genres=28&language-pt-BR&api_key=${API_KEY}`)             },             {                 slug: 'comedy',                 title: 'Comédia',                 item: await basicFetch(`/discover/movie?width_genres=35&language-pt-BR&api_key=${API_KEY}`)             },             {                 slug: 'horror',                 title: 'Terror',                 item: await basicFetch(`/discover/movie?width_genres=27&language-pt-BR&api_key=${API_KEY}`)             },             {                 slug: 'romance',                 title: 'Romance',                 item: await basicFetch(`/discover/movie?width_genres=10749&language-pt-BR&api_key=${API_KEY}`)             },             {                 slug: 'documentary',                 title: 'Documentários',                 item: await basicFetch(`/discover/movie?width_genres=99&language-pt-BR&api_key=${API_KEY}`)             },                     ]     } }  
       
      Componente para mostrar os filmes:
      MovieRow.js:
      import React from "react"; import './MovieRow.css'; export default ({title, items}) =>{         return (         <div>             <h2>{title}</h2>             <div className="moviewRow--listarea">                 {items.results.length > 0 && items.results.map((key, item)=>(                     <img src={`https://image.tmdb.org/t/p/w300${item.poster_path}`} />                 ))}             </div>         </div>     ); }  
      Se alguém pudesse me ajudar eu ficaria muito grato.
×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.