Store RSS Feed And Sitemap v.1.0.0.0 - Google Base Compatible

Contrib type: 
Module
Status: 
Complete and working
Moderation: 
Awaiting moderation
Latest version: 
1.0.0.0

Downloads

Compatibility: 
Ubercart 1.x
Compatibility: 
Ubercart 2.x

This module Creates A Store RSS Feed, Out Of The Box Ready For Use With Google Base, But The User Is Given The Flexibility To Include Or Exclude Elements To Suit Any Other Use, Flexibility And Ease Of Use Were Both Priorities In Creating This Module.
Additionally The Module Creates A Sitemap, Both Are Indespensable Tools For Any Website.


Joined: 03/26/2010
Juice: 34

Hi Von Gunther,

I am seeing some errors when I visit the configuration page:

warning: fopen(rss.xml) [function.fopen]: failed to open stream: Permission denied in home/epicclic/public_html/sites/all/modules/uc_website_xml/uc_website_xml.module on line 473.

warning: fwrite(): supplied argument is not a valid stream resource in /home/epicclic/public_html/sites/all/modules/uc_website_xml/uc_website_xml.module on line 474.

warning: fclose(): supplied argument is not a valid stream resource in /home/epicclic/public_html/sites/all/modules/uc_website_xml/uc_website_xml.module on line 474.

Thank you!

Joined: 06/05/2008
Juice: 118

Hi, very awesome looking contribution!

I will try installing it on one of my test sites soon and see if I can offer any feedback, or encounter any bugs

Edit: Gave it a shot and encountered this when I went to "create store feed"

Operational File Error - Can't Open File Q1De Castro Leon Ubercart Rss Feed Machine v1.0.0.0http://www.mytestsite.com/rss.xmlThis Is A Product feedenFriday, July 30, 2010 10:23 http://www.mytestsite.com/node/29 test2 25.00000 new http://www.mytestsite.com/node/30 test3 35.00000 new http://www.mytestsite.com/node/32 test4 65.00000 new

Other errors after enabling error logging -

* warning: fopen(rss.xml) [function.fopen]: failed to open stream: Permission denied in /home/mytest/public_html/sites/all/modules/ubercart/uc_website_xml/uc_website_xml.module on line 473.
* warning: fwrite(): supplied argument is not a valid stream resource in /home/mytest/public_html/sites/all/modules/ubercart/uc_website_xml/uc_website_xml.module on line 474.
* warning: fclose(): supplied argument is not a valid stream resource in /home/mytest/public_html/sites/all/modules/ubercart/uc_website_xml/uc_website_xml.module on line 474.
* warning: Cannot modify header information - headers already sent by (output started at /home/mytest/public_html/sites/all/modules/ubercart/uc_website_xml/uc_website_xml.module:473) in /home/mytest/public_html/includes/common.inc on line 148.
* warning: fopen(rss.xml) [function.fopen]: failed to open stream: Permission denied in /home/mytest/public_html/sites/all/modules/ubercart/uc_website_xml/uc_website_xml.module on line 473.
* warning: fwrite(): supplied argument is not a valid stream resource in /home/mytest/public_html/sites/all/modules/ubercart/uc_website_xml/uc_website_xml.module on line 474.
* warning: fclose(): supplied argument is not a valid stream resource in /home/mytest/public_html/sites/all/modules/ubercart/uc_website_xml/uc_website_xml.module on line 474.
* warning: Cannot modify header information - headers already sent by (output started at /home/mytest/public_html/sites/all/modules/ubercart/uc_website_xml/uc_website_xml.module:473) in /home/mytest/public_html/includes/common.inc on line 148.

When opening the .module file with my text editor: uc_website_xml.module contains characters that do not exist in code page 1252 (ANSI - Latin I). They will be converted to the system default character, if you click ok

Final Edit: Ok - I had to create my own rss.xml file manually in my root directory, then give it writable permissions. Once I did that, the module was able to open and write to it. So you need to make sure the module can create this file I suppose

Joined: 07/16/2010
Juice: 57

The reported errors in line 473 fopen([rss.xml') is due to an error in website permissions, it then causes lines 474 and 475 to throw errors.

Make sure the modules folder is set to permissions 755 and the permissions allow drupal to write and read files in the root directory .

I am looking further into this.

Joined: 07/16/2010
Juice: 57

The File creation problem (line 473) is due to mis configuration of webserver directory permissions.
There is no way of 'fixing' this from within Drupal, you just need to give Drupal write permissions to the webserver root.
Alternatevly use Sansui's fix, create the file rss.xml in your website root and give it write permissions.

I have re-written the file handling and messaging part for the new 'quick release' (minor) .

Pavol Kutaj messaged me that foreign language punctuation was filtered out from stock item description, this was fixed in the minor release.
He also had problems with product image links, but that is due to misconfiguration or non standard image configuration on his part .
His third comment was to ask if it is possible to use URL cloaking (hide the stock item true url path) this is not possible unfortunately.

Pavol, it is not necessary to use another sitemap creation module, this one does the job.

Joined: 08/05/2010
Juice: 3

After installing the module and running cron I received the message:

user warning: Unknown column 'node.nid' in 'field list' query: SELECT node.nid FROM ss_uc_products INNER JOIN ss_node ON uc_products.nid = node.nid WHERE node.status = 1 in /data-web7/webs/xn--ijacie-stroje-9tc.eu/sites/all/modules/uc_website_xml/uc_website_xml.module on line 394.

and rss was empty. Can you help me?

Joined: 07/16/2010
Juice: 57

Hi Helbo, your copy of the module is damaged, download a fresh copy and re-install. If the problem persists, check your system for viruses.

I am working on v.2 of the release this summer ... a better version is coming, in the meantime I am releasing another minor release to correct the problem of html markup turning into garbage in the feed.

Von Gunther

Joined: 07/16/2010
Juice: 57

OK new minor release published, you need to uninstall (untick it in modules page) the old module and re-install this one.

Update:
When runing cron it will eventually display 'page not found' click the browser back button to go to your website, you will then be notified that sitemap and rss feed were created, you may also get an error 'cannot modify header information' ...
This little cosmetic problem will be fixed in the next release.

Second Update:
I had to release anothe minor release to fix the cron issue, it seemed too serious to have left for the next release.

cheers
Von Gunther

Joined: 07/16/2010
Juice: 57

At present there is a minor bug in this application, Html ampersand codes in item description or titles result in a mal formed xml document, google rejects these mal-formed entries.
This problem has been corrected in my upcoming release.

A new feature is the addition of a facility to use Rss feed to populate the store database.
Another feature which has been implemented in my upcoming release, is the creation of a custom robots.txt file.

I am currently working on multi RSS feeds, which has been a request

Von Gunther

Joined: 07/16/2010
Juice: 57

As you all know, or will find out very soon if you sell consumer electronics Smiling Google now requires 2 unique identifiers for ELECTRONIC categories.

The problem is that Ubercart only allows for ONE unique identifier called 'Product SKU or Model' (you can see this in create new product page)

To overcome this severe limitation and lack of dynamic evolutionary flexibility of the Ubercart model as it stands, there are 2 possible solutions:
- submit a patch to ubercart core or use a comma seperated multi identifier entry system for the SKU/model field.

This module will use the later solution, this new version module will be posted in the next 2 days.

TSE1's picture
User is online Online
Joined: 06/14/2010
Juice: 4

Hi,
i need to add taxes to the sell prices. Should look something like this in the end: sell_price = sell_price + (sell_price*19/100).

Can someone tell me where to mdoify the uc_website_xml.module file.

TSE