Fórum OpenCart Brasil

Por um e-commerce livre, confiável e profissional

Suporte geral sobre problemas técnicos para OpenCart v1.x.
#18394
Oi,
a poucos dias atrás fiz o upgrade da versão 1.4 para 1.5.1.3. Tudo correu sem problema. Agora quando envio o sitemap para o google webmasters tools, ele me informa o seguinte:
"""We encountered an error while trying to access your Sitemap. Please ensure your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit.

General HTTP error: 404 not found
Erro HTTP: 404

Não consigo entender o que está errado. Vejo sim que o A1 sitemap generator que sempre uso para enviar os sitemaps encontra muito menos urls externas e finaliza os scan muito mais rápido do que habitualmente. Ele costumava encontrar perto de 30 urls e agora só encontra 15.
Agradeço desde já vossa ajuda. Obrigado.
Avatar do usuário
Por Manoel Vidal
Mensagens
#18420
Olá,

Pela mensagem de erro calculo que o google webmasters tools não está encontrando o arquivo do sitemap, ai surgem duas possibilidades:
1) O módulo para Google Sitemap não foi habilitado.
2) Há algum erro em seu arquivo .htaccess.

Se você habilitou o módulo e colocou o link que está no módulo para o sitemap corretamente então a segunda possibilidade é problemas com o arquivo .htaccess, neste caso coloque o conteúdo do seu arquivo para que possamos verificar.

Espero ter ajudado. :D
Por rockyalife
#18462
Oi,

Grato pela ajuda. resolvi o problema seguindo a sugestão 1).
Agora, li ontem num qualquer tópico do Manoel Vidal vários códigos para colocar no .htaccess de modo a habilitar a compressão .Gzip na versão 1.5.1.3
Por favor me indique o link desse tópico para eu copiar e colar no meu .htaccess
Obrigado.
Por rockyalife
#18660
Oi,

Volto a ter o erro indicado acima no meu sitemap. Concerteza é a segunda possibilidade colocada pelo Manoel e deve ser mesmo um erro no .htaccess. Aqui fica o arquivo e fico no aguardo para ajuda. Obrigado.

# 1.To use URL Alias you need to be running apache with mod_rewrite enabled.

# 2. In your opencart directory rename htaccess.txt to .htaccess.

# For any support issues please visit: http://www.opencart.com

# For security reasons, Option followsymlinks cannot be overridden.
#Options +FollowSymlinks
Options +SymLinksIfOwnerMatch

# Prevent Directoy listing
# For security reasons, Option all cannot be overridden.
#Options -Indexes
Options ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch -Indexes

# Prevent Direct Access to files
<FilesMatch "\.(tpl|ini|log)">
Order deny,allow
Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/

RewriteBase /
RewriteRule sitemap.xml /index.php?route=feed/google_sitemap
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

### Additional Settings that may need to be enabled for some servers
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.

# 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
# php_flag register_globals off

# 2. If your cart has magic quotes enabled, This may work to disable it:
# php_flag magic_quotes_gpc Off

# 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
# php_value upload_max_filesize 999M

# 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value post_max_size 999M

# 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_execution_time 200

# 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_input_time 200

<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType text/html "access plus 1 seconds"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 216000 seconds"
ExpiresByType application/x-javascript "access plus 216000 seconds"
</ifModule>

<ifModule mod_headers.c>
<filesMatch "\\.(ico|pdf|flv|jpg|jpeg|png|gif|swf)$">
Header set Cache-Control "max-age=2592000, public"
</filesMatch>
<filesMatch "\\.(css)$">
Header set Cache-Control "max-age=604800, public"
</filesMatch>
<filesMatch "\\.(js)$">
Header set Cache-Control "max-age=216000, private"
</filesMatch>
<filesMatch "\\.(xml|txt)$">
Header set Cache-Control "max-age=216000, public, must-revalidate"
</filesMatch>
<filesMatch "\\.(html|htm|php)$">
Header set Cache-Control "max-age=1, private, must-revalidate"
</filesMatch>
</ifModule>
Avatar do usuário
Por Manoel Vidal
Mensagens
#18664
Olá,

Substitua o código abaixo:
RewriteRule sitemap.xml /index.php?route=feed/google_sitemap

Por:
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]

Espero ter ajudado. :D
Por rockyalife
#18696
Ajudou e muito. O sitemap rodou direitinho. Muito obrigado Manoel. :D
Agora é o seguinte: enquanto tive a versão 1.4 usava o A1 sitemap generator (versão software um pouco desactualizada). Antes de perguntar aqui no fórum e depois de ter esse erros do sitemap na versão 1.5.1.3 e por ignorância comprei a versão online do XML generator pensando que o problema era do software. Conclusão agora acabei ficando com 2 geradores de sitemap. Minha dúvida: qual dois 2 você usaria a partir de agora? Ou seja, qual o melhor em sua opinião? :?: Obrigado mais uma vez
#72984
Boa tarde pessoal, comecei a ter um problema parecido a pouco tempo.

Meu sitemap estava funcionando normalmente com 6 mil produtos. Agora cadastrei e estou com um total de 16 mil produtos.

O sitemap parou de funcionar após isso.
No google webmasters ele aparece o seguinte erro: URL timeout: HTTP request timeout

No link do meu dominio sitemap aparece o erro de 500 internal server. Após mais tentativas o sitemap carregou mas apareceu o seguinte erro: This page contains the following errors:

error on line 3261 at column 30: xmlParseEntityRef: no name
Below is a rendering of the page up to the first error.

O arquivo .htaccess esta ok e a hospedagem também.
Alguém sabe o que pode ser?

Obrigado pela atenção. :D

Gente preciso de ajuda urgente. Na migraç&a[…]

Caro @reds , muito obrigado pela resposta.

PHP 8+ incompatibilidade

Toda tradução para a versão 3[…]

Ola @alex3257 Se você precisa apenas ver […]