Magento Forum

Sales Report Error - headers already sent
 
medlington
Sr. Member
 
Total Posts:  143
Joined:  2008-04-30
 

Hi,

I’ve just noticed that when I try to export a sales report I get a headers already sent message:

Cannot send headers; headers already sent in /home/quickpla/public_html/app/code/core/Mage/Reports/Model/Totals.php, line 2

#0 /home/quickpla/public_html/lib/Zend/Controller/Response/Abstract.php(114): Zend_Controller_Response_Abstract->canSendHeaders(true)
#1 /home/quickpla/public_html/app/code/core/Mage/Adminhtml/Controller/Action.php(284): Zend_Controller_Response_Abstract->setHeader(’Pragma’, ‘public’, true)
#2 /home/quickpla/public_html/app/code/core/Mage/Adminhtml/controllers/Report/SalesController.php(62): Mage_Adminhtml_Controller_Action->_prepareDownloadResponse(’sales.csv’, ‘“Period","Numbe...’)
#3 /home/quickpla/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(349): Mage_Adminhtml_Report_SalesController->exportSalesCsvAction()
#4 /home/quickpla/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Admin.php(143): Mage_Core_Controller_Varien_Action->dispatch(’exportSalesCsv’)
#5 /home/quickpla/public_html/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/quickpla/public_html/app/Mage.php(447): Mage_Core_Controller_Varien_Front->dispatch()
#7 /home/quickpla/public_html/index.php(46): Mage::run()
#8 {main}

Im currently on V 1.1.6

does anyone know how to fix this or is it fixed in the latest release V1.2?

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
Daniel Duvald
Member
 
Avatar
Total Posts:  44
Joined:  2007-08-31
 

I’m having the same problem with 1.1.6 sales export to csv or excel…

 
Magento Community Magento Community
Magento Community
Magento Community
 
Daniel Duvald
Member
 
Avatar
Total Posts:  44
Joined:  2007-08-31
 

Please see this post: http://www.magentocommerce.com/boards/viewthread/19353/#t65762
It’s an easy fix…

 
Magento Community Magento Community
Magento Community
Magento Community
 
medlington
Sr. Member
 
Total Posts:  143
Joined:  2008-04-30
 

nice 1 mate, that realy is a quick fix

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