Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[CONTRIBUTION] Google XML Sitemap Feed - by Chemo


Guest

Recommended Posts

Using this togheter with the "ULTIMATE SEO 5"

my "XML" for products looks like:

http://www.laptop-skydd.se/sitemapproducts.xml

 

i.e a products gets a link like:

http://www.laptop-skydd.se/product_info.php?products_id=250

but on the site they have:

http://www.laptop-skydd.se/product_info.php/blomma-p-250

 

This is gives some problem with google like:

"URLs not followed

When we tested a sample of URLs from your Sitemap, we found that some URLs redirect to other locations. We recommend that your Sitemap contain URLs that point to the final destination (the redirect target) instead of redirecting to another URL.

HTTP Error: 301 URL: Go to URLhttp://www.laptop-skydd.se/product_info.php?products_id=124"

 

What im i doing wrong, are ther other contributions?

Link to comment
Share on other sites

Using this togheter with the "ULTIMATE SEO 5"

my "XML" for products looks like:

http://www.laptop-skydd.se/sitemapproducts.xml

 

i.e a products gets a link like:

http://www.laptop-skydd.se/product_info.php?products_id=250

but on the site they have:

http://www.laptop-skydd.se/product_info.php/blomma-p-250

 

This is gives some problem with google like:

"URLs not followed

When we tested a sample of URLs from your Sitemap, we found that some URLs redirect to other locations. We recommend that your Sitemap contain URLs that point to the final destination (the redirect target) instead of redirecting to another URL.

HTTP Error: 301 URL: Go to URLhttp://www.laptop-skydd.se/product_info.php?products_id=124"

 

What im i doing wrong, are ther other contributions?

 

This contribution doesn't use the standard osCommerce function tep_href_link() it also hardcodes in the old seo urls series 2 which means that no other url rewriter can possibly work.

 

In the package you downloaded (USU5) I added two corrected files which will work. extras/Google XML Sitemap SEO/

 

If you use a cron job to create these files read the instructions as you have to use wget in the cron command.

Edited by FWR Media
Link to comment
Share on other sites

Ah thanks alot. How could i miss that before, worked like a charm...

This contribution doesn't use the standard osCommerce function tep_href_link() it also hardcodes in the old seo urls series 2 which means that no other url rewriter can possibly work.

 

In the package you downloaded (USU5) I added two corrected files which will work. extras/Google XML Sitemap SEO/

 

If you use a cron job to create these files read the instructions as you have to use wget in the cron command.

Link to comment
Share on other sites

Hi, all.

 

I installed Google XML Sitemap and when I tried to view sitemapindex.xml and the other 2 files, sitemapindex wouldn`t be created while others did.

 

When I browsed "www.mydomain.com/sitemapindex.xml", it turned out like this;

 

<?xml version="1.0" encoding="UTF-8" ?>

<sitemapindex xmlns="http://www.google.com/schemas/sitemap/0.84" />

 

The other 2 turned out with links.

 

Is this right?

 

Jong.

Link to comment
Share on other sites

  • 2 months later...

Sometime in the past two weeks, sitemapspecials.xml will not verfify. This is what I see when at webmster tools:

 

Invalid date

An invalid date was found. Please fix the date or formatting before resubmitting.

The Last modification date is like 1969-12-31 . But the other xml pages is not a problem. In fact, I know i updated the specials just last month.

 

You may seee what I mean at http://brs-giftshop.com/sitemapspecials.xml.

 

I've resubmitted, but smae error message. Does not make any sense why the specials is the only one that will not verify.

By the way I am using ver Sitemap SEO XML v_1.4 and my store is RC2A

 

Thanks.

 

Bennett

Edited by blr044
Link to comment
Share on other sites

Hi, chemo great contribution.

 

I have one problem getting the correct sitemap.

 

I submitted my sitemap to google and google webmaster is giving an error on product and categories sitemap.

 

error is:

Paths don't match

We've detected that you submitted your Sitemap using a URL path that includes the www prefix (for instance, http://www.example.com/sitemap.xml). However, the URLs listed inside your Sitemap don't use the www prefix (for instance, http://example.com/myfile.htm).

URL: Go to URLhttp://thecheaplaptops.co.uk/hp-nc4000-intel-pentium-40gb-512mb-windows-xp-wifi-laptop-p-31.html

Problem detected on: Mar 28, 2010

 

Can you please help what can be done to overcome this error.

Thanks

Link to comment
Share on other sites

Hi, chemo great contribution.

 

I have one problem getting the correct sitemap.

 

I submitted my sitemap to google and google webmaster is giving an error on product and categories sitemap.

 

error is:

Paths don't match

We've detected that you submitted your Sitemap using a URL path that includes the www prefix (for instance, http://www.example.com/sitemap.xml). However, the URLs listed inside your Sitemap don't use the www prefix (for instance, http://example.com/myfile.htm).

URL: Go to URLhttp://thecheaplaptops.co.uk/hp-nc4000-intel-pentium-40gb-512mb-windows-xp-wifi-laptop-p-31.html

Problem detected on: Mar 28, 2010

 

Can you please help what can be done to overcome this error.

Thanks

 

 

This problem is now sorted, I don't know how but when I resubmitted the sitemap once gain it worked.

Link to comment
Share on other sites

Everything seems to be working...

I set up the cron job and this is what I received via email.

Except for the first few lines below... everything looks good.

Is the first part of this an issue to be concerned about?

 

/web/cgi-bin/php5: Symbol `client_errors' has different size in shared object, consider re-linking

Content-type: text/html

 

<pre>Write /home/html/sitemapproducts.xml<br>Generated Google Product Sitemap Successfully

 

Write /home/html/sitemapcategories.xml<br>Generated Google Category Sitemap Successfully

 

Write /home/html/sitemapmanufacturers.xml<br>Generated Google Manufacturers Sitemap Successfully

 

Write /home/html/sitemapspecials.xml<br>Generated Google Specials Sitemap Successfully

 

Write /home/html/sitemapindex.xml<br>Generated Google Sitemap Index Successfully

 

CONGRATULATIONS! All files generated successfully.

 

If you have not already submitted the sitemap index to Google click the link below.

Before you do I HIGHLY recommend that you view the XML files to make sure the data is correct.

 

For your convenience here is the CRON command for your site:

php /index.php

 

Here is your sitemap index: /sitemapindex.xml

Here is your product sitemap: /sitemapproducts.xml

Here is your category sitemap: /sitemapcategories.xml

Here is your manufacturers sitemap: /sitemapmanufacturers.xml

Here is your specials sitemap: /sitemapspecials.xml

</pre>

Thanks alot!

That "Can" you're about to open... has worms!

Don't say I didn't worn ya.

n. pl. cans of worms Informal - A source of unforeseen and troublesome complexity.

Link to comment
Share on other sites

/web/cgi-bin/php5: Symbol `client_errors' has different size in shared object, consider re-linking

Content-type: text/html

 

Any advice an this first part of the message from my cron job?

I just want to make sure I'm on the right track.

Thanks for any help.

That "Can" you're about to open... has worms!

Don't say I didn't worn ya.

n. pl. cans of worms Informal - A source of unforeseen and troublesome complexity.

Link to comment
Share on other sites

Hi folks,

I just installed this , and got the folowing errors on .../googlesitemap/index.php

What should I do to solve this?

Thanks

 



[b]Warning[/b]: fopen(/sitemapproducts.xml) [[url="http://tessfashion.com/googlesitemap/function.fopen"]function.fopen[/url]]: failed to open stream: Permission denied in [b]/home/*******/public_html/store/googlesitemap/sitemap.class_Alternate.php[/b] on line [b]354[/b]

ERROR: Google Product Sitemap Generation FAILED!



[b]Warning[/b]: fopen(/sitemapcategories.xml) [[url="http://tessfashion.com/googlesitemap/function.fopen"]function.fopen[/url]]: failed to open stream: Permission denied in [b]/home/********/public_html/store/googlesitemap/sitemap.class_Alternate.php[/b] on line [b]354[/b]

ERROR: Google Category Sitemap Generation FAILED!



[b]Warning[/b]: fopen(/sitemapindex.xml) [[url="http://tessfashion.com/googlesitemap/function.fopen"]function.fopen[/url]]: failed to open stream: Permission denied in [b]/home/*********/public_html/store/googlesitemap/sitemap.class_Alternate.php[/b] on line [b]354[/b]

ERROR: Google Sitemap Index Generation FAILED!

Array
(
[QUERY] => Array
(
[PRODUCTS] => Array
(
[sTATUS] => success
[NUM_ROWS] => 39
)

[CATEOGRY] => Array
(
[sTATUS] => success
[NUM_ROWS] => 7
)

)

[sAVE_FILE_XML] => Array
(
[0] => Array
(
[file] => /sitemapproducts.xml
[status] => failure
[file_exists] => false
)

[1] => Array
(
[file] => /sitemapcategories.xml
[status] => failure
[file_exists] => false
)

[2] => Array
(
[file] => /sitemapindex.xml
[status] => failure
[file_exists] => false
)

)

)


"The Breath becomes a stone; the stone, a plant; the plant, an animal; the animal, a man; the man, a spirit; and the spirit, a God."

Link to comment
Share on other sites

  • 4 weeks later...

I have a problem regarding the google sitemap, for my other site, it is working fine. In my localhost it is working fine. But once I uploaded the file go to the sitemap, all sitemaps failed.

Link to comment
Share on other sites

  • 8 months later...

Hello,

 

I have the same problem as DSeyir.

When running standard mode it fails on memory so i set alternate mode.

 

But even if i turn off standard pages etc. it fails.

 

Here is the data i got when turning diagnostic output on

 

Warning:  gzopen(/sitemapproducts.xml.gz) [function.gzopen]: failed to open stream: Permission denied in /home/public_html/webshop/googlesitemap/sitemap.class_Alternate.php on line 338
ERROR: Google Product Sitemap Generation FAILED!


Warning:  gzopen(/sitemapcategories.xml.gz) [function.gzopen]: failed to open stream: Permission denied in /home/public_html/webshop/googlesitemap/sitemap.class_Alternate.php on line 338
ERROR: Google Category Sitemap Generation FAILED!

Opening   /sitemapindex.xmlFS_CAT    
/home/autospor/public_html/webshop/Server    
http://www.autosportparts.eu

Save Path /WS_CAT    /webshop/ 
Warning:  fopen(/sitemapindex.xml) [function.fopen]: failed to open stream: Permission denied in /home/public_html/webshop/googlesitemap/sitemap.class_Alternate.php on line 353
ERROR: Google Sitemap Index Generation FAILED!

Array
(
   [QUERY] => Array
       (
           [PRODUCTS] => Array
               (
                   [sTATUS] => success
                   [NUM_ROWS] => 24355
               )

           [CATEOGRY] => Array
               (
                   [sTATUS] => success
                   [NUM_ROWS] => 25379
               )

       )

   [sAVE_FILE_COMPRESS] => Array
       (
           [0] => Array
               (
                   [file] => /sitemapproducts.xml.gz
                   [status] => failure
                   [file_exists] => false
               )

           [1] => Array
               (
                   [file] => /sitemapcategories.xml.gz
                   [status] => failure
                   [file_exists] => false
               )

       )

   [sAVE_FILE_XML] => Array
       (
           [0] => Array
               (
                   [file] => /sitemapindex.xml
                   [status] => failure
                   [file_exists] => false
               )

       )

)

 

ca someaone help me out?

 

Jasper

Link to comment
Share on other sites

Edit:

Problem solved.

My partner changed some code to make it work but he forgot /webshop/ on the savepath

$this->savepath = '/home/my_account/public_html/';

$this->savepath = '/home/my_account/public_html/webshop/';

 

Jasper

Link to comment
Share on other sites

  • 3 weeks later...

That problem has a coding error that causes that. But it is no longer supportted. I suggest you useGoogle XML Sitemap SEO instead.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

I am using this version..

Hmm, I don't know how I got that confused. For this contribution you need to use the alternate setting.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

  • 1 month later...

Hi Jack,

 

i use this contrib and its great - thx for this.

 

SEO URLS working fine at the site but is i run the googlesitemap/index.php all sites will be created but sitemapproducts.xml did not show any seo urls.

 

What i miss is there a setup in the admin side needed? if yes what i must do?

 

rgds

alfred

Link to comment
Share on other sites

Hi

 

it must be possilbe to create the sitemapproducts.xml with seo URls

 

right now it looks like this:

 

sitemapproducts.xml

....de/catalog/product_info.php?products_id=507

 

but i saw that it casn be looks also like this:

 

...de/catalog/Football-Equipment.220/Football-Accessories.123/Captains-Armband.569.html

 

is there a special setup? or what i must/can do to create the sitemapproducts.xml with seo URls

 

rgds

alfred

Link to comment
Share on other sites

  • 5 months later...

Hello,

 

I have a problem generating the sitemap.

All worked great until the moment i moved my webshop to a new host.

 

I tryed the alternate option but thats going wrong so back to standard but after a few minuts i get a HTTP 500 error.

Even with diagnostic output i wont get a response only http 500

 

Can somone help?

 

Jasper

Link to comment
Share on other sites

  • 2 months later...

Hello,

 

I have the same problem as DSeyir.

When running standard mode it fails on memory so i set alternate mode.

 

But even if i turn off standard pages etc. it fails.

 

Here is the data i got when turning diagnostic output on

 

Warning:  gzopen(/sitemapproducts.xml.gz) [function.gzopen]: failed to open stream: Permission denied in /home/public_html/webshop/googlesitemap/sitemap.class_Alternate.php on line 338
ERROR: Google Product Sitemap Generation FAILED!


Warning:  gzopen(/sitemapcategories.xml.gz) [function.gzopen]: failed to open stream: Permission denied in /home/public_html/webshop/googlesitemap/sitemap.class_Alternate.php on line 338
ERROR: Google Category Sitemap Generation FAILED!

Opening   /sitemapindex.xmlFS_CAT	
/home/autospor/public_html/webshop/Server	
http://www.autosportparts.eu

Save Path /WS_CAT	/webshop/
Warning:  fopen(/sitemapindex.xml) [function.fopen]: failed to open stream: Permission denied in /home/public_html/webshop/googlesitemap/sitemap.class_Alternate.php on line 353
ERROR: Google Sitemap Index Generation FAILED!

Array
(
[QUERY] => Array
	(
		[PRODUCTS] => Array
			(
				[sTATUS] => success
				[NUM_ROWS] => 24355
			)

		[CATEOGRY] => Array
			(
				[sTATUS] => success
				[NUM_ROWS] => 25379
			)

	)

[sAVE_FILE_COMPRESS] => Array
	(
		[0] => Array
			(
				[file] => /sitemapproducts.xml.gz
				[status] => failure
				[file_exists] => false
			)

		[1] => Array
			(
				[file] => /sitemapcategories.xml.gz
				[status] => failure
				[file_exists] => false
			)

	)

[sAVE_FILE_XML] => Array
	(
		[0] => Array
			(
				[file] => /sitemapindex.xml
				[status] => failure
				[file_exists] => false
			)

	)

)

 

ca someaone help me out?

 

Jasper

 

 

Hi Jasper,

how did you solve it? I have the identical problem.

 

Thank you, Antonin

Link to comment
Share on other sites

  • 5 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...