|
After upgrading I could not export any reports to either CSV or an Excel file. I would get the following error:
Cannot send headers; headers already sent in /home/user/www/store/app/code/core/Mage/Reports/Model/Totals.php, line 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.
|