Jump to content
Chemo

[CONTRIBUTION] Google XML Sitemap Feed - by Chemo

Recommended Posts

Hello,

 

Can you help me ?

 

Warning: fopen(http://www.yourdomaine.com/catalog/sitemapproducts.xml): failed to open stream: HTTP wrapper does not support writeable connections. in /home/domaine/public_html/yourdomaine.com/catalog/googlesitemap/sitemap.class.php on line 287

ERROR: Google Product Sitemap Generation FAILED!

Warning: fopen(http://www.yourdomaine.com/catalog/sitemapcategories.xml): failed to open stream: HTTP wrapper does not support writeable connections. in /home/domaine/public_html/yourdomaine.com/catalog/googlesitemap/sitemap.class.php on line 287

ERROR: Google Category Sitemap Generation FAILED!

Warning: fopen(http://www.yourdomaine.com/catalog/sitemapindex.xml): failed to open stream: HTTP wrapper does not support writeable connections. in /home/domaine/public_html/yourdomaine.com/catalog/googlesitemap/sitemap.class.php on line 287

ERROR: Google Sitemap Index Generation FAILED!

Thanks you for your assistance,

Basalt

Are you using Chemo's SEO URL's ??

 

/home/domaine/public_html/yourdomaine.com/catalog/googlesitemap/sitemap.class.php

This line looks suspiciously wrong & long?

Have you put the googlesitemaps folder in the same catalog folder as your xml files? and set the xml file permissions to 777 ?


A little knowledge is dangerous, I SHOULD KNOW.

If Life Begins At 40, What ends????

Share this post


Link to post
Share on other sites

Thank you for the message.

I copied well the googlesitemaps folder in catalog and placed the three files xml in catalog. The permissions for the files xml is 777

 

Whole is ok

 

same error

Share this post


Link to post
Share on other sites

how many categories/products do you have? others have said it is dealing with other contribution conflicts and also only having limited category/product listings.

check around post 147/148 of this support thread.


John Oligario

 

Knowledge Base Contributions

Share this post


Link to post
Share on other sites
how many categories/products do you have?  others have said it is dealing with other contribution conflicts and also only having limited category/product listings.

check around post 147/148 of this support thread.

 

 

I have 1 category and 480 products.

 

thanks

Share this post


Link to post
Share on other sites
Are you using Chemo's SEO URL's ??

 

/home/domaine/public_html/yourdomaine.com/catalog/googlesitemap/sitemap.class.php

This line looks suspiciously wrong & long?

Have you put the googlesitemaps folder in the same catalog folder as your xml files? and set the xml file permissions to 777 ?

 

 

This line for example.

Not my real url

Share this post


Link to post
Share on other sites

I've just wanted to thank great coder Chemo for this contrib.

I've installed it succesfully with its updates and after correction of date problem now google likes my shops with valuable XMLs. Status all OK from Google.. :)

Share this post


Link to post
Share on other sites
This line for example.

Not my real url

post the real error page. The info's no good to anyone else as far as i'm aware, but the real address error may hold some clues to the error.

Are you using Chemos SEO url's ???


A little knowledge is dangerous, I SHOULD KNOW.

If Life Begins At 40, What ends????

Share this post


Link to post
Share on other sites

Installed easily with no errors.

 

I didn't click the link... I'll let the cron do it. Or should I do it manually the first time?

 

thanks chemo

Share this post


Link to post
Share on other sites
post the real error page. The info's no good to anyone else as far as i'm aware, but the real address error may hold some clues to the error.

Are you using Chemos SEO url's ???

 

 

Thanks for your message:

 

this is my real page error:

http://www.cybersystem.be/shop/googlesitemap/index.php

 

 

Warning: fopen(http://www.cybersystem.be/shop/sitemapproducts.xml): failed to open stream: HTTP wrapper does not support writeable connections. in /home/napoleon/public_html/cybersystem/shop/googlesitemap/sitemap.class.php on line 287

ERROR: Google Product Sitemap Generation FAILED!

Warning: fopen(http://www.cybersystem.be/shop/sitemapcategories.xml): failed to open stream: HTTP wrapper does not support writeable connections. in /home/napoleon/public_html/cybersystem/shop/googlesitemap/sitemap.class.php on line 287

ERROR: Google Category Sitemap Generation FAILED!

Warning: fopen(http://www.cybersystem.be/shop/sitemapindex.xml): failed to open stream: HTTP wrapper does not support writeable connections. in /home/napoleon/public_html/cybersystem/shop/googlesitemap/sitemap.class.php on line 287

ERROR: Google Sitemap Index Generation FAILED!

 

 

Basalt

Edited by basalt

Share this post


Link to post
Share on other sites
FAO: Basalt,

 

Add another category and see if you still get the same problem.

 

I had problems because under development, I only had 1 category.

 

Regards,

 

Fish

 

 

yes, I have got more 1 caterory, please see my website www.cybersystem.be

 

Best regards,

Basalt

Share this post


Link to post
Share on other sites

Greetz,

 

Hello, and thx to the original author who kindly incorporated Google Sitemap into osC! Naturally, none of us are guaranteed to see any kind of measurable results. However, we all know this is pretty revolutionary thinking on Google's part to proactively pull data from active e-commerce websites.

 

That being said, we'll be happy to update everyone with our Google index visibility in the days and weeks ahead. 3,700+ products and counting, with 2,000+ more to add next week. I'll be curious to see how the sitemap communicates non-visible pricing ;)

 

Thx


Carpe Carp: Seize the Fish.

Share this post


Link to post
Share on other sites
yes, I have got more 1 caterory, please see my website www.cybersystem.be

 

Best regards,

Basalt

Hi again

 

Looking at your site, i would install Chemo's Ultimate SEO URL's and try the Googlesitemaps again. You need to install a URL contribution anyway, so you may aswell use Chemo's as it is compatible with the google mod. This SEO URL's contri includes a mod to the HTML output which affects the link wrapper function.

So it may be worth a try to see if it solves the problem.

 

Julian


A little knowledge is dangerous, I SHOULD KNOW.

If Life Begins At 40, What ends????

Share this post


Link to post
Share on other sites
Thanks for your message:

 

this is my real page error:

http://www.cybersystem.be/shop/googlesitemap/index.php

Warning: fopen(http://www.cybersystem.be/shop/sitemapproducts.xml): failed to open stream: HTTP wrapper does not support writeable connections. in /home/napoleon/public_html/cybersystem/shop/googlesitemap/sitemap.class.php on line 287

ERROR: Google Product Sitemap Generation FAILED!

Warning: fopen(http://www.cybersystem.be/shop/sitemapcategories.xml): failed to open stream: HTTP wrapper does not support writeable connections. in /home/napoleon/public_html/cybersystem/shop/googlesitemap/sitemap.class.php on line 287

ERROR: Google Category Sitemap Generation FAILED!

Warning: fopen(http://www.cybersystem.be/shop/sitemapindex.xml): failed to open stream: HTTP wrapper does not support writeable connections. in /home/napoleon/public_html/cybersystem/shop/googlesitemap/sitemap.class.php on line 287

ERROR: Google Sitemap Index Generation FAILED!

Basalt

 

Basalt,

 

I think I've seen this problem before and it was because I was on a windows server. Instead of using an absolute URL in fopen(http://www.cybersystem.be/shop/sitemapcategories.xml), try using a local one instead - probably fopen(../sitemapcategories.xml). I'm not too clever with PHP but it looks like you'll need to look at the SaveFile on line 271 in sitemap.class.php. If you look at the variable $filename, you'll see how it works. Perhaps for a quick fix, you could 'hard code' '../sitemapcategories.xml' into the class. It might work. Also, who did the design on your site? It looks fammiliar.

 

Cheers,

 

Fish

Share this post


Link to post
Share on other sites

Basalt,

 

In sitemap.class.php on lin 272, change the entire line to $filename = './' . $this->filename . $type;

 

Cheers,

 

Fish

Edited by neglected_goldfish

Share this post


Link to post
Share on other sites

Hi

 

I have over 130,000 products. The mod doesnt work for me.

 

When I load the page nothing happens.

 

Please help...........

Share this post


Link to post
Share on other sites
Basalt,

 

In sitemap.class.php on lin 272, change the entire line to $filename = './' . $this->filename . $type;

 

Cheers,

 

Fish

 

Hello,

Thank you for the message.

I made the modification but always the problem.

 

Regards,

Basalt

Share this post


Link to post
Share on other sites

I setup the cron job but I haven't logged into the google sitemaps and told it where to look. I take it you must do this. I thought maybe the cron job took care of this.

 

So I went into google and told it where to look the first time. Will the cron job take care of it from now on?

Share this post


Link to post
Share on other sites
I setup the cron job but I haven't logged into the google sitemaps and told it where to look.  I take it you must do this.  I thought maybe the cron job took care of this.

 

So I went into google and told it where to look the first time.  Will the cron job take care of it from now on?

 

Howdy,

 

The way I understand it. The cron is just updating the xml 'data' files on your site. Set it to run on a daily basis so that it covers any changes in categories or products.

 

Having made an account with googly, you have told it where to look for a feed for your site. That will access that file on a regular basis without anymore intervention on your part.

 

Paul

Share this post


Link to post
Share on other sites

Big thanks for Chemo and for his hard work!!!! Another usefull contribution!!!!!

 

I had no problem to install Google XML Sitemap Feed but I was wondering if putting a chmod 777 on XML files won't be dangerous for the server (security pbs??).

 

How to have this contribution run even if we put a chmod=775 or 755 on XML files?


OSC2.2

Share this post


Link to post
Share on other sites
This is a silly question but, do I register all 3 xml files with google or just the one called sitemapindex.xml?

 

you register sitemapindex.xml and it will reference the other two files.

 

awesome contribution!

Share this post


Link to post
Share on other sites
you register sitemapindex.xml and it will reference the other two files.

 

awesome contribution!

 

Thanks!

 

Yes, it is a great contrib. Very easy to get going. And I am running a modified version of OSC.


Powered by osCommerce

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×