我创建了一个新的优惠券代码,它在前一天运行得很好。今天,我得到这个错误:处理您的请求时出错出于安全原因,默认情况下禁用异常打印。
这是我看到错误时得到的代码:a:5:{i:0;s:138:"无法发送报头;标题已经在app/code/community/Gala/Bigshopsettings/Helper/Data.php中发送,第1行";i:1;s:1718:"#0>lib/Zend/Controller/Response/Abstract.php(148): Zend_Controller_Response_Abstract->canSendHeaders(true)
1 app/code/core/Mage/core/Controller/Response/Http.php(107): Zend_Controller_Response_Abstract->setRedirect('http://www.capi…',302)
2 app/code/core/Mage/core/Controller/Varien/Action.php(711): Mage_Core_Controller_Response_Http->setRedirect('http://www.capi…')
3 app/code/core/Mage/core/Controller/Varien/Action.php(689): Mage_Core_Controller_Varien_Action->setRedirectWithCookieCheck('checkout/cart', Array)
4 app/code/core/Mage/Checkout/controllers/CartController.php(95): Mage_Core_Controller_Varien_Action->_redirect(' Checkout/cart')
5 app/code/core/Mage/Checkout/controllers/CartController.php(595): Mage_Checkout_CartController->_goBack()
6 app/code/core/Mage/core/Controller/Varien/Action.php(418): Mage_Checkout_CartController->couponPostAction()
7 app/code/core/Mage/core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('couponPost')
8 app/code/core/Mage/core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
9 app/code/core/Mage/core/Model/app .php(354): Mage_Core_Controller_Varien_Front->dispatch()
10 app/Mage.php(684): Mage_Core_Model_App->run(Array)
11 index.php(87): Mage::run(", 'store')
<标题> 12{主要}";销售:3:"url";销售:26:"/付款/车/couponPost/";销售:11:"script_name";销售:10:"/index . php";销售:4:"皮肤";销售:7:"违约";}标题>
有什么建议吗?由于
8:"无法发送标头;app/code/community/Gala/Bigshopsettings/Helper/Data.php
正如第1行所说,您需要在php开始标记之前检查一些空白或特殊字符。