1

我正在尝试在谷歌网站管理员工具中提交谷歌站点地图,但遇到错误。在管理员中,我点击了扩展>>产品提要并启用了谷歌站点地图选项。它为我提供了站点地图的链接,但是当我将链接提交给谷歌网站管理员工具时,它不喜欢它并返回以下错误:

Unsupported file format
Your Sitemap does not appear to be in a supported format. Please ensure it meets our Sitemap guidelines and resubmit.

这是我正在使用的 URL: http ://www.techcertsolutions.com/index.php?route=feed/google_sitemap

错误:当我从谷歌网站管理员工具点击站点地图链接时,我看到以下消息:

Notice: Undefined index: limit in /home7/jardinf1/public_html/techcertsolutions/vqmod/vqcache/vq2-catalog_model_catalog_product.php on line 440

我确实检查了.htaccess文件,并在文件中看到了以下条目:

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

所以我不确定这里到底发生了什么。我还删除了所有内容vqcache并再次尝试,但没有运气。请给我一些建议。

4

2 回答 2

0

您的 vQmod 之一正在编辑/catalog/model/catalog/product.php文件,无论出于何种原因没有limit为查询设置,或者谷歌站点地图代码没有设置限制,应该是

于 2012-12-30T13:34:11.923 回答
-1

如果有人仍然有这样的问题,有一个解决方案:

寻找文件

/catalog/controller/feed/google_sitemap.php. Open it and edit it, then just replace where it says"$products = $this->model_catalog_product->getProducts(array('filter_category_id' => $result['category_id']));"

为了

$total_ = $this->model_catalog_product->getTotalProducts();
                $data = array('start' => 0, 'limit' => $total_);
$products = $this->model_catalog_product->getProducts(array('filter_category_id' => $result['category_id'], 'start' => 0, 'limit' => $total_));
于 2015-03-09T17:14:04.700 回答