Ir para conteúdo
Fórum Script Brasil
  • 0

(RESOLVIDO)Problema acesso, imagens não aparecem


Marko Neto

Pergunta

Ola pessoal.

Seguinte, estou rodando um site aqui que trabalha com templates, estou utilizando Wamp.

O que acontece é que no meu computador roda normal o site, aparece as imagens do template certinho.

Agora quando acesso de outro computador, aparece a primeira pagina, porem toda sem formatação, sem imagens e quando clico em algum link que redireciona para outra pagina, ele simplesmente da erro e não abre, no browser até aparece o caminho do arquivo php que estou tentando acessar.

Agora, eu não sei se pode ser algum erro com meu php, ou algo relacionado a permisão do Wamp. Eu já coloquei "Allow from all" em todos os <Directory>.

O template com suas funçoes ficam em sub-pastas do site, incluindo as imagens, por exemplo:

localhost/ ---> Pasta principal aonde ficam todas as paginas PHP que redirecionam para o template correto e que realizam funções

localhost/template/meu_template1/ ---> arquivo php de conffiguração do template

localhost/template/meu_template1/imagens/ ---> imagens do site

Eu não sei mais oque fazer.

Quem puder me ajudar, eu agradeço.

Editado por Marko Neto
Link para o comentário
Compartilhar em outros sites

3 respostass a esta questão

Posts Recomendados

  • 0

Boa noite Marko Neto.

Para confirmar minha teoria, gostaria que postasse apenas uma parte do seu código,

pode ser até mesmo o código de uma imagem (por exemplo: <img src="" />só para

ver como está sendo chamando essa imagem.

Tudo indica que, se no seu computador você está vendo a imagem e em outro não,

possivelmente você está colocando o caminho local do seu computador.

Posta aí, depois conversamos.

Abraço.

Link para o comentário
Compartilhar em outros sites

  • 0

Então, quem faz a configuração das imagens são os arquivos .css de configuração.

Vou colocar aqui..

body {
    background: #fff url(../../Automotive/images/black/BodyBg.gif) 0 0 repeat-x;
    color: #2f2f2f;
}
a {
    color: #2f2f2f;
    font-weight: normal;
    text-decoration: underline;
}
a:hover {
    color: #e02b01;
}
h2 {
    color: #e02b01;
}
h3 {
    color: #2f2f2f;
}


#Container {
}


#TopMenu {
    color: #c4c4c4;
    background: url(../../Automotive/images/black/TopMenuBg.gif) 100% 0 no-repeat;
    border-bottom: 1px solid #711701;
}
#TopMenu li a, #TopMenu li span {
    color: #c4c4c4;
}
#TopMenu li span a {
}
#TopMenu li a:hover {
    color: #fff;
    text-decoration: underline;
}

#Menu {
}
#Menu li {
}
#Menu li a {
    color: #fff;
    background: #585858;
}
#Menu li a:hover, #Menu ul li:hover a {
    background: #424242;
}
#Menu li ul li a {
    background: #424242;
}
#Menu li ul li a:hover {
    background: #292929;
}


#Outer {
}
#Wrapper {
}
#Header {
    background-position: 100% 0;
    background-repeat: no-repeat;
}


#Logo h1 {
    color: #fff;
}
#Logo h1 a {
    color: #fff;
}


#SearchForm {
    background: url(../../Automotive/images/black/SearchBg.gif) 0 5px no-repeat;
}
#SearchForm label {
    display: none;
}
#SearchForm input {
    background: #fff;
}
#SearchForm .Button {
    border: 0;
}
#SearchForm a {
    color: #6d6d6d;
}
#SearchForm p {
    color: #6d6d6d;
}


.Left {
    background: #e6e6e6;
}
.Left .Block {
}
.Left h2 {
    color: #E02B01;
    background: #fff url(../../Automotive/images/black/SideTitleBg.gif) 5px 5px no-repeat;
}
.Left li {
    border-bottom: 1px solid #fff;
}
.Left li a {
}
.Left li a:hover {
    color: #056792;
}


.Content h2 {
    background: #fff;
}
.Content a {
    color: #075899;
}
.Content.Wide {
}
.Content.Widest {
}


.Right {
    background: #e6e6e6;
}
.Right .Block {
}
.Right h2 {
    color: #E02B01;
    background: #fff url(../../Automotive/images/black/SideTitleBg.gif) 5px 5px no-repeat;
}
.Right a {
}
.Right a:hover, .Right a:hover strong {
    color: #056792;
}
.Right hr {
    background: transparent;
    color: #f4fafb;
}


#Footer {
    border-top: 1px solid #b7b7b7;
}
#Footer li a {
    border-left: 1px solid #B7B7B7;
}


.NewsletterSubscription input {
    border: 1px solid #ccc;
}


.ProductList .ProductImage {
    background: #fff;
    padding: 2px;
}

.Content .ProductList strong, .Content .ProductList strong a {
    color: #075899;
}

.ProductPrice, .ProductList em {
    color: red;
}

.ProductList .Rating {
    color: #6a6a6a;
}

.Right .ProductList li {
}

.Content .ProductList li, .Content .FeaturedProducts .ProductList li {
    background: #fff;
}


.Content .FeaturedProducts .ProductList .ProductImage {
}



.Content .FeaturedProducts .ProductList li:hover, .Content .FeaturedProducts .ProductList li.Over {
}

.Right .TopSellers li {
}

.Right .TopSellers li .TopSellerNumber { /*  */
    color: #2f2f2f;
}

.Right .TopSellers li.TopSeller1 .ProductImage { /*  */
}

.Right .TopSellers li.TopSeller1 {
    background: #fff;
    border: 1px solid #ccc;
}

.Right .TopSellers li.TopSeller1 .ProductDetails { /* No1 seller box */
    background: #fff url(../../Automotive/images/black/TopSellerNumber1.gif) 7px 2px no-repeat;
}

.Right .TopSellers li.TopSeller1 .TopSellerNumber {
    display: none;
}

.Breadcrumb {
    border-bottom: 1px solid #DCDFE2;
}

.ComparisonTable {
    background: #fff;
}

.CompareItem { width:200px; border-left: solid 1px #CACACA; }
.CompareFieldName { font-weight:bold; border-bottom: 1px solid #E2E2E2; }
.CompareFieldTop { border-bottom:solid 1px #E2E2E2; }
.CompareFieldTop a:hover { color:red; }
.CompareCenter { border-left:solid 1px #E2E2E2; border-bottom:solid 1px #E2E2E2; }
.CompareLeft { border-left:solid 1px #E2E2E2; border-bottom:solid 1px #E2E2E2; }

.ViewCartLink {
    background: url('../../Automotive/images/blue/Cart.gif') no-repeat 3px 0;
}

table.CartContents, table.General {
    background: #fff;
    border: 1px solid #ccc;
}

table.CartContents thead tr th, table.General thead tr th {
    background: #585858;
    color: #fff;
}

.CartContents tbody td {
    border-top: 1px solid #ccc;
}

.CartContents tfoot .SubTotal td {
    border-top: 1px solid #ccc;
    color: #075899;
}

.MiniCart .SubTotal {
    color: #075899;
}

.JustAddedProduct {
    border: 1px solid #c0dae7;
    background: #fff;
}

.JustAddedProduct strong, .JustAddedProduct a {
    color: #075899;
}

.CategoryPagination {
    color: #034285;
}

.CheckoutRedeemCoupon { background: #f7f7f7; padding: 10px; width: 300px; border: 1px solid #ccc; margin-bottom: 10px; }

.SubCategoryList, .SubBrandList {
    background: #FFF;
}

.InfoMessage {
    background: #EFF8FA url('../../Automotive/images/InfoMessage.gif') no-repeat 5px 8px;
    color: #555;
}

.SuccessMessage {
    background: #E8FFDF url('../../Automotive/images/SuccessMessage.gif') no-repeat 5px 8px;
    color: #555;
}

.ErrorMessage {
    background: #FFECEC url('../../Automotive/images/ErrorMessage.gif') no-repeat 5px 8px;
    color: #555;
}

.ComparisonTable tr:hover td, .ComparisonTable tr.Over td {
    background: #F7F7F7;
}

.QuickSearchHover td{ background: #efefef; }
.QuickSearchAllResults a { background: url('../../Automotive/images/black/QuickSearchAllResultsButton.gif') no-repeat center; }

#SearchPageHeader {
    background: #fff;
    margin-bottom: 4px;
}

#SearchPageHeader .FloatRight {
    margin-top: 8px;
    margin-right: 8px;
}

#PageContent, #SearchTips, #SearchPageHeader, .YourAccount, #AccountInbox, .AccountPage {
    background: #fff;
    padding-left: 9px;
    padding-right: 9px;
    padding-bottom: 10px;
}

#SearchPageHeader {
    padding-bottom: 0;
}

#PageContent h2, #SearchPageHeader h2, .YourAccount h2, #AccountInbox h2, .AccountPage h2 {
    padding-left: 0;
}

#SearchPageHeader h2 {
    margin-bottom: 10px;
}

/*  */
.EstimateShipping {
    border: 1px solid #ccc;
    background: #efefef;
}

/* Express Checkout */
.ExpressCheckoutBlock .ExpressCheckoutTitle {
    background: #fff;
    border: 1px solid #efefef;
    color: #e02b01;
}

.ExpressCheckoutBlockCollapsed .ExpressCheckoutTitle {
    background: #f0f0f0;
    border: 1px solid #ddd;
    color: #555;
}

.ExpressCheckoutBlockCompleted .ExpressCheckoutCompletedContent {
    color: #888;
}

/*  */
table.General tbody tr td {
    border-top: 1px solid #efefef;
}

/*  */
.TabNav {
    border-bottom: 1px solid #777;
}

.TabNav li a {
    border: 1px solid #777;
    background: #fff;
}

.TabNav li a:hover {
    background-color: #efefef;
}

.TabNav li.Active a {
    border-bottom: 1px solid #fff;
    background: transparent;
}

/*  */

#VideoContainer {
    border: 1px solid #cccccc;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

.currentVideo {
    background-color: #ddf0f6;
}

.videoRow:hover {
    background-color: #efefef;
}

.CartContents .ItemShipping th {
    border-bottom: none;
    border-top-color: #ccc;
    background: #585858;
    color: #fff;
}

Ele esta recusando a conexão, ele fica carregando quando acesso o site em outro computador porem da falha no tempo de execução, porque o servidor demorou muito para responder.

Link para o comentário
Compartilhar em outros sites

  • 0

Resolvi o problema, oque estava acontecendo é que eu configurei o acesso do site como localhost, então todos os links e imagens estavam sendo apontados para localhost/imagens ou localhost/index.php logo ninguém com acesso externo poderia ver.

Oque fiz foi utilizar o meu ip como acesso pra links e imagens e funcionou.

Abraço.

Obrigado pela força

Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,2k
    • Posts
      652k
×
×
  • Criar Novo...