添加优惠券代码时出现Magento错误

时间:2014-08-23 16:39:08

标签: php magento

我创建了一个新的优惠券代码,前一天工作得非常好。今天,我收到此错误: 处理您的请求时出错 出于安全原因,默认情况下禁用异常打印。

这是我查看错误时得到的代码:

  

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 {main}&#34 ;; s:3:" url&#34 ;; s:26:" / checkout / cart / couponPost /&#34 ;; s:11:& #34; SCRIPT_NAME&#34 ;; S:10:" /index.php" ;; S:4:"皮肤&#34 ;; S:7:"默认&#34 ;; }

有什么建议吗?感谢

1 个答案:

答案 0 :(得分:0)

8:"无法发送标头;标题已经在app / code / community / Gala / Bigshopsettings / Helper / Data.php

中发送

正如第1行所说,你需要在php starat标签之前检查一些空格或特殊字符。