<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
    <title>Magento Issue Tracking</title>
    <link>http://www.magentocommerce.com/bug-tracking/</link>
    <description></description>
    <dc:language>en</dc:language>
    <dc:creator>MagentoCommerce</dc:creator>
    <dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
    <dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
    <admin:generatorAgent rdf:resource="http://expressionengine.com/" />
        <item>
        <title>View Issue #10564 / cron jobs and starting a session</title>
        <link>http://www.magentocommerce.com/bug-tracking/issue?issue=5041</link>
        <description><![CDATA[<strong>Posted:</strong> 2009-01-31 05:04:41<br/><strong>Category:</strong> Configuration<br/><strong>Version:</strong> 1.2.0.3<br/><strong>Priority:</strong> high<br/><strong>Status:</strong> resolved<br/><strong>Reported By:</strong> <a href="http://www.magentocommerce.com/boards/member/1367/">Unirgy</a></strong><br/><br/>Hi,<br />
<br />
I've experienced a client's Magento not sending product alerts to customers.<br />
<br />
Upon debugging I've found that template/email/productalert/price.phtml and stock.phtml contain &lt;?php echo $_product-&gt;getProductUrl() ?&gt; , which throw Exception about starting session after headers had been sent.<br />
<br />
Now, public function getProductUrl($product, $useSid = true) will use a session unless $useSid is set to false.<br />
<br />
As I do not see a meaning of session in cron job, I've been able to fix this problem by setting &lt;?php echo $_product-&gt;getProductUrl(false) ?&gt; in email templates.<br />
<br />
But then the exception started to happen on &lt;?php echo Mage::helper('core')-&gt;currency($_product-&gt;getPrice()) ?&gt;<br />
Which is fair, because $store-&gt;getCurrentCurrencyCode() will call $this-&gt;_getSession() , and the same problem persists.<br />
<br />
I suggest having a global flag of NOT using session, and set it for scripts like cron.php<br/><br/><hr/>]]></description>
    </item>
    
    </channel>
</rss>