每当有人请求更改密码或完成结帐时,我都会收到此异常页面,并显示错误代码。
"处理您的请求时出错 - 出于安全原因,默认情况下禁用例外打印。"
我已经访问了错误文件,并说:
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 :(得分:0)
第一行lib / Mandrill / Mandrill / Exports.php脚本在php开始标记之前有一个空格。