I'm using magento 1.9.x version, recently i tried to generate google site map via
Catalogue - > Google Site Map
But it gave 404 error
Then i checked the code and identify the location of error here
/public_html/app/code/core/Mage/Sitemap/Model/Sitemap.php
Line No 165
Mage::dispatchEvent('sitemap_categories_generating_before', array(
'collection' => $categories
));
When i comment out above code site map generates fine. In surface i can't see any side effect of comment that code,
Does anyone know will that effect for other functions of my site,
sitemap_categories_generating_before
if any other module is using same event then its working may get affected.grep -ir "sitemap_categories_generating_before" app/
to find out module which is using this event.