Where should I point the cron script to? What file? There are four files in magento named cron.php. Which one is it? I tried the one in the base folder and the one in the sitemap with no luck.
This is a good tool and works for me. I have only one problem - on my site I have products Inactive but those products apears in sitemap. Google Webmaster Tools warning me about that. Can be somehow changed (the code) to put only active products in sitemap?
<changefreq> optional How frequently the page is likely to change. This value provides general information to search engines and may not correlate exactly to how often they crawl the page. Valid values are:
always
hourly
daily
weekly
monthly
yearly
never
The value “always” should be used to describe documents that change each time they are accessed. The value “never” should be used to describe archived URLs.
Please note that the value of this tag is considered a hint and not a command. Even though search engine crawlers may consider this information when making decisions, they may crawl pages marked “hourly” less frequently than that, and they may crawl pages marked “yearly” more frequently than that. Crawlers may periodically crawl pages marked “never” so that they can handle unexpected changes to those pages.
Why do we ned to set the Cron Jobs as the “<changefreq>” in the sitemap.xml should do all the work?
You are getting 2 things confused. The ‘changefreq’ tells the search engines how frequently they should check the page for updates NOT how often the sitemap is updated.
The sitemap must be updated whenever a new page, product, category, etc. is updated, so that is what the cron does.
i.e. http://yourdomain.com/admin/sitemap/generate/sitemap_id/1
Replacing the domain and sitemap ID appropriately. Also, if you have Magento installed in a subdirectory, include that as well… i.e. http://yourdomain.com/sub/admin/sitemap/generate/sitemap_id/1
Warning: Invalid argument supplied for foreach() in /home/hanwei/public_html/app/code/core/Mage/Sitemap/Model/Sitemap.php on line 80 Trace: #0 /home/hanwei/public_html/app/code/core/Mage/Sitemap/Model/Sitemap.php(80): mageCoreErrorHandler(2, 'Invalid argumen...', '/home/hanwei/pu...', 80, Array) #1 /home/hanwei/public_html/app/code/core/Mage/Adminhtml/controllers/SitemapController.php(206): Mage_Sitemap_Model_Sitemap->generateXml() #2 /home/hanwei/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(342): Mage_Adminhtml_SitemapController->generateAction() #3 /home/hanwei/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Admin.php(148): Mage_Core_Controller_Varien_Action->dispatch('generate') #4 /home/hanwei/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(146): Mage_Core_Controller_Varien_Router_Admin->match(Object(Mage_Core_Controller_Request_Http)) #5 /home/hanwei/public_html/app/Mage.php(427): Mage_Core_Controller_Varien_Front->dispatch() #6 /home/hanwei/public_html/index.php(40): Mage::run() #7 {main}
I checked out the Wiki, but am not familiar with the Store View concept. Regardless, there are no Store View options at all, anywhere in the Category Manager for me.