客户用的是Magento网站程序,从别的主机商那搬到我们这儿,搬家设置好后,前台访问正常,后台访问出现Error log record number: 389731489544错误提示。
错误提供代码如下:
There has been an error processing your request
Cannot send headers; headers already sent in /home/mg88wz/public_html/index.php, line 72
Trace:
/home/mg88wz/public_html/lib/Zend/Controller/Response/Abstract.php(115): Zend_Controller_Response_Abstract->canSendHeaders(true)
/home/mg88wz/public_html/app/code/core/Mage/Core/Model/App.php(1246): Zend_Controller_Response_Abstract->setHeader(‘Content-Type’, ‘text/html; char…’)
/home/mg88wz/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(80): Mage_Core_Model_App->getResponse()
/home/mg88wz/public_html/app/code/core/Mage/Core/Model/Url/Rewrite.php(204): Mage_Core_Controller_Varien_Front->getResponse()
/home/mg88wz/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(166): Mage_Core_Model_Url_Rewrite->rewrite()
/home/mg88wz/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
/home/mg88wz/public_html/app/Mage.php(688): Mage_Core_Model_App->run(Array)
/home/mg88wz/public_html/index.php(91): Mage::run(”, ‘store’)
{main}
Error log record number: 389731489544
解决方法:
因php版本较低,php.ini中没有打开output_buffering 才造成此错误.
设置改为4096或On
output_buffering=4096
如你使用乐道美国主机会直接帮你设置好。