gordophysio 0 Posted August 10, 2014 Posted August 10, 2014 Google sitemap generator will only enter http, not https. My site does have an ssl cert. I get the error message: "This XML file does not appear to have any style information associated with it."Is this manually changeable? Couldn't find a way....Anyone else having an issue with this? Share this post Link to post Share on other sites
vekia 8,960 Posted August 10, 2014 Posted August 10, 2014 what sitemap generator module you use? default one? Share this post Link to post Share on other sites
gordophysio 0 Posted August 10, 2014 Posted August 10, 2014 yes, the default google sitemap generator in PS. Just installed it and its update. Thanks! Share this post Link to post Share on other sites
El Patron 2,871 Posted August 10, 2014 Posted August 10, 2014 can you review this forge report and see if it pertains to your issue? http://forge.prestashop.com/browse/PSCSX-1331 Share this post Link to post Share on other sites
gordophysio 0 Posted August 12, 2014 Posted August 12, 2014 Thanks but couldn't make heads or tails out of it. There was a fix suggestion by someone at end of post though (edting php code), and I tried that but the fix is already in the latest version... Share this post Link to post Share on other sites
hippooflove 1 Posted December 15, 2014 Posted December 15, 2014 Hi We are using 1.6.09 and google sitemap module version 3.0.3 but cannot get it to do https. when you look in the files it does offer https but there is no way to set it in the module. it only gives a http version and when you click on link it says "page unavailable. is there another version of the module besides 3.0.3 that works? Jane Share this post Link to post Share on other sites
hippooflove 1 Posted December 22, 2014 Posted December 22, 2014 Any body please Share this post Link to post Share on other sites
mrduc 1 Posted April 16, 2015 Posted April 16, 2015 (edited) Me too, I'm using PS 1.5.6.1 and gsitemap 3.0.5. I have two multistore shops: online version and dev version. With online version: - use https - gsitemap has bug product link: https://mystore.com/abc/index.php?controller=product_rule&id=xxxx&rewrite=xxxxxxxxx&ean13=&meta_keywords=&meta_title=. With dev version: - use http - gsitemap works correctly Any body can help please? Edited April 16, 2015 by mrduc (see edit history) Share this post Link to post Share on other sites
Jan Jansen 10 Posted June 27, 2015 Posted June 27, 2015 Me too, I'm using PS 1.5.6.1 and gsitemap 3.0.5. I have two multistore shops: online version and dev version. With online version: - use https - gsitemap has bug product link: https://mystore.com/abc/index.php?controller=product_rule&id=xxxx&rewrite=xxxxxxxxx&ean13=&meta_keywords=&meta_title=. With dev version: - use http - gsitemap works correctly Any body can help please? For me it's even worse: I have a multistore with PS 1.5.6.1. , gsitemap 3.0.5.(DEV / Github version and online version) and a multidomain SSL certificate: With both versions I got exactly the same weird URL. I didn't manage to get a working sitemap for any of my stores. I tried even the old versions that circulate on this forum, they also don't work. How to solve this issue? Any input is more then welcome ! Share this post Link to post Share on other sites
mrduc 1 Posted June 28, 2015 Posted June 28, 2015 (edited) For me it's even worse: I have a multistore with PS 1.5.6.1. , gsitemap 3.0.5.(DEV / Github version and online version) and a multidomain SSL certificate: With both versions I got exactly the same weird URL. I didn't manage to get a working sitemap for any of my stores. I tried even the old versions that circulate on this forum, they also don't work. How to solve this issue? Any input is more then welcome ! I hacked this module like this: private function _getProductLink(&$link_sitemap, $lang, &$index, &$i, $id_product = 0) { $link = new Link(); if (method_exists('ShopUrl', 'resetMainDomainCache')) ShopUrl::resetMainDomainCache(); $products_id = Db::getInstance()->ExecuteS('SELECT `id_product` FROM `'._DB_PREFIX_.'product_shop` WHERE `id_product` >= '.intval($id_product).' AND `active` = 1 AND `id_shop`='.$this->context->shop->id.' ORDER BY `id_product` ASC'); foreach ($products_id as $product_id) { $product = new Product((int)$product_id['id_product'], false, (int)$lang['id_lang']); //$url = $link->getProductLink($product, $product->link_rewrite, htmlspecialchars(strip_tags($product->category)), $product->ean13, (int)$lang['id_lang'], (int)$this->context->shop->id, 0, true); $url = $this->getBaseLink((int)$this->context->shop->id,null).$product->link_rewrite.'-'.(int)$product_id['id_product'].'.html'; $id_image = Product::getCover((int)$product_id['id_product']); if (isset($id_image['id_image'])) { $image_link = $this->context->link->getImageLink($product->link_rewrite, $product->id.'-'.(int)$id_image['id_image'], 'large_default'); $image_link = (!in_array(rtrim(Context::getContext()->shop->virtual_uri, '/'), explode('/', $image_link))) ? str_replace( array( 'https', Context::getContext()->shop->domain.Context::getContext()->shop->physical_uri ), array( 'http', Context::getContext()->shop->domain.Context::getContext()->shop->physical_uri.Context::getContext()->shop->virtual_uri ), $image_link ) : $image_link; } $file_headers = (Configuration::get('GSITEMAP_CHECK_IMAGE_FILE')) ? @get_headers($image_link) : true; $image_product = array(); if (isset($image_link) && ($file_headers[0] != 'HTTP/1.1 404 Not Found' || $file_headers === true)) $image_product = array( 'title_img' => htmlspecialchars(strip_tags($product->name)), 'caption' => htmlspecialchars(strip_tags($product->description_short)), 'link' => $image_link ); if (!$this->_addLinkToSitemap( $link_sitemap, array( 'type' => 'product', 'page' => 'product', 'lastmod' => $product->date_upd, 'link' => $url, 'image' => $image_product ), $lang['iso_code'], $index, $i, $product_id['id_product'] )) return false; unset($image_link); } return true; } private function _getCategoryLink(&$link_sitemap, $lang, &$index, &$i, $id_category = 0) { $link = new Link(); if (method_exists('ShopUrl', 'resetMainDomainCache')) ShopUrl::resetMainDomainCache(); $categories_id = Db::getInstance()->ExecuteS( 'SELECT c.id_category FROM `'._DB_PREFIX_.'category` c INNER JOIN `'._DB_PREFIX_.'category_shop` cs ON c.`id_category` = cs.`id_category` WHERE c.`id_category` >= '.intval($id_category).' AND c.`active` = 1 AND c.`id_category` != 1 AND c.id_parent > 0 AND c.`id_category` > 0 AND cs.`id_shop` = '.(int)$this->context->shop->id.' ORDER BY c.`id_category` ASC' ); foreach ($categories_id as $category_id) { $category = new Category((int)$category_id['id_category'], (int)$lang['id_lang']); //$url = $link->getCategoryLink($category, urlencode($category->link_rewrite), (int)$lang['id_lang']); $url = $this->getBaseLink((int)$this->context->shop->id,null).(int)$category_id['id_category'].'-'.$category->link_rewrite; if ($category->id_image) { $image_link = $this->context->link->getCatImageLink($category->link_rewrite, (int)$category->id_image, 'category_default'); $image_link = (!in_array(rtrim(Context::getContext()->shop->virtual_uri, '/'), explode('/', $image_link))) ? str_replace( array( 'https', Context::getContext()->shop->domain.Context::getContext()->shop->physical_uri ), array( 'http', Context::getContext()->shop->domain.Context::getContext()->shop->physical_uri.Context::getContext()->shop->virtual_uri ), $image_link ) : $image_link; } $file_headers = (Configuration::get('GSITEMAP_CHECK_IMAGE_FILE')) ? @get_headers($image_link) : true; $image_category = array(); if (isset($image_link) && ($file_headers[0] != 'HTTP/1.1 404 Not Found' || $file_headers === true)) $image_category = array( 'title_img' => htmlspecialchars(strip_tags($category->name)), 'link' => $image_link ); if (!$this->_addLinkToSitemap( $link_sitemap, array( 'type' => 'category', 'page' => 'category', 'lastmod' => $category->date_upd, 'link' => $url, 'image' => $image_category ), $lang['iso_code'], $index, $i, (int)$category_id['id_category'] )) return false; unset($image_link); } return true; } protected function getBaseLink($id_shop = null, $ssl = null) { static $force_ssl = null; if ($ssl === null) { if ($force_ssl === null) $force_ssl = (Configuration::get('PS_SSL_ENABLED') && Configuration::get('PS_SSL_ENABLED_EVERYWHERE')); $ssl = $force_ssl; } if (Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE') && $id_shop !== null) $shop = new Shop($id_shop); else $shop = Context::getContext()->shop; $base = (($ssl || $this->ssl_enable) ? 'https://'.$shop->domain_ssl : 'http://'.$shop->domain); return $base.$shop->getBaseURI(); } enable rewrite product, rewrite category in SEO & URLs rewrite product: {rewrite}-{id}.html rewrite category: {id}-{rewrite} Edited June 28, 2015 by mrduc (see edit history) Share this post Link to post Share on other sites
Recommended Posts