cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot send headers; headers already error

Highlighted

Cannot send headers; headers already error

Upgrading using magento connect from 1.9.2.4 to 1.9.4.0.

But the process got interrupted and site gave 500 Internal Server error. Have corrected it by correcting the file permissions. Now i am getting this error

Cannot send headers; headers already sent in /home/imd/public_html/app/Mage.php, line 57

Trace:
#0 /home/imd/public_html/lib/Zend/Controller/Response/Abstract.php(115): Zend_Controller_Response_Abstract->canSendHeaders(true)
#1 /home/imd/public_html/app/code/core/Mage/Core/Model/App.php(1265): Zend_Controller_Response_Abstract->setHeader('Content-Type', 'text/html; char...')
#2 /home/imd/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(80): Mage_Core_Model_App->getResponse()
#3 /home/imd/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(202): Mage_Core_Controller_Varien_Front->getResponse()
#4 /home/imd/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#5 /home/imd/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#6 /home/imd/public_html/app/Mage.php(687): Mage_Core_Model_App->run(Array)
#7 /home/imd/public_html/index.php(83): Mage::run('', 'store')

Line 55-57 Code from Mage.php is

55 Varien_Autoload::register();

56 include_once "phpseclib/bootstrap.php";
57 include_once "mcryptcompat/mcrypt.php";

Any Suggestion for correcting this error

1 REPLY 1
Highlighted

Re: Cannot send headers; headers already error

Try:

chmod 755 lib/mcryptcompat/