Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Reporting Export Broken After Upgrade
 
foloyd
Jr. Member
 
Total Posts:  4
Joined:  2008-08-11
 

After upgrading I could not export any reports to either CSV or an Excel file. I would get the following error:

Cannot send headersheaders already sent in /home/user/www/store/app/code/core/Mage/Reports/Model/Totals.phpline 2

#0 /home/user/www/store/lib/Zend/Controller/Response/Abstract.php(114): Zend_Controller_Response_Abstract->canSendHeaders(true)
#1 /home/user/www/store/app/code/core/Mage/Adminhtml/Controller/Action.php(284): Zend_Controller_Response_Abstract->setHeader('Pragma', 'public', true)
#2 /home/user/www/store/app/code/core/Mage/Adminhtml/controllers/Report/ProductController.php(67): Mage_Adminhtml_Controller_Action->_prepareDownloadResponse('products_bestse...', '"Period","Produ...')
#3 /home/user/www/store/app/code/core/Mage/Core/Controller/Varien/Action.php(349): Mage_Adminhtml_Report_ProductController->exportOrderedCsvAction()
#4 /home/user/www/store/app/code/core/Mage/Core/Controller/Varien/Router/Admin.php(143): Mage_Core_Controller_Varien_Action->dispatch('exportOrderedCs...')
#5 /home/user/www/store/app/code/core/Mage/Core/Controller/Varien/Front.php(174): Mage_Core_Controller_Varien_Router_Admin->match(Object(Mage_Core_Controller_Request_Http))
#6 /home/user/www/store/app/Mage.php(447): Mage_Core_Controller_Varien_Front->dispatch()
#7 /home/user/www/store/index.php(55): Mage::run()
#8 {main}

To fix this I had to open

/app/code/core/Mage/Reports/Model/Totals.php
and remove two extra line at the beginning of the file before the php block started.

Hopefully this was just a problem with my installation and not a bug in the upgrade and affecting too many others.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top