2016-04-15 19 views
0

每當有人要求更改密碼或完成結帳時,我會收到此異常頁面出現的錯誤代碼。Magento錯誤:無法發送標題;頭文件已在public_html/lib/Mandrill/Mandrill/Exports.php中發送

「處理您的請求時出錯 - 出於安全原因,默認情況下禁用了異常打印。」

我一直在錯誤文件和它說:

a:5:{i:0;s:114:" 
Cannot send headers; headers already sent in /home/siteusername/public_html/lib/Mandrill/Mandrill/Exports.php, line 1 
";i:1;s:1796:" 
/home/siteusername/public_html/lib/Zend/Controller/Response/Abstract.php(148): Zend_Controller_Response_Abstract->canSendHeaders(true) 
/home/siteusername/public_html/app/code/core/Mage/Core/Controller/Response/Http.php(107): Zend_Controller_Response_Abstract->setRedirect('mysite.com', 302) 
/home/siteusername/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(711): Mage_Core_Controller_Response_Http->setRedirect('mysite.com') 
/home/siteusername/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(689): Mage_Core_Controller_Varien_Action->setRedirectWithCookieCheck('*/*/', Array) 
/home/siteusername/public_html/app/code/core/Mage/Customer/controllers/AccountController.php(752): Mage_Core_Controller_Varien_Action->_redirect('*/*/') 
/home/siteusername/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Customer_AccountController->forgotPasswordPostAction() 
/home/siteusername/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('forgotpasswordp...') 
/home/siteusername/public_html/app/code/community/BalkeTechnologies/StoreMaintenance/Controller/Router/Standard.php(91): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) 
/home/siteusername/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): BalkeTechnologies_StoreMaintenance_Controller_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) 
/home/siteusername/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch() 
/home/siteusername/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array) 
/home/siteusername/public_html/index.php(85): Mage::run('', 'store') 
{main} 
";s:3:"url";s:37:"/customer/account/forgotpasswordpost/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:7:"default";} 

一直停留在這個年齡並不能找到一個解決方案。

+0

要啓用打印錯誤試試這個答案:http://stackoverflow.com/questions/18480310/magento-exception-printing-is-disabled-by-default-for-security-reasons – buczek

+2

看看第一行' lib/Mandrill/Mandrill/Exports.php'腳本,也許你在'<?php'之前有空格或換行符,或者在這行中有任何輸出,因此會話無法正常啓動 –

+0

取出空格解決了問題!謝謝。 – jord49

回答

0

第一行lib/Mandrill/Mandrill/Exports.php腳本在php開始標記之前有一個空格。

相關問題