【问题标题】:Magento error when adding coupon code添加优惠券代码时出现Magento错误
【发布时间】:2014-10-17 07:35:48
【问题描述】:

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

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

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}";s:3:"url";s:26:"/checkout/cart/couponPost/";s:11:"script_name";s:10:"/index.php"; s:4:"皮肤";s:7:"默认";}

有什么建议吗?谢谢

【问题讨论】:

    标签: php magento


    【解决方案1】:

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

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

    【讨论】:

    • 谢谢!我似乎无法投票给你,但这就是问题所在。
    • 很高兴知道它已经解决了。我认为您需要一些积分才能投票。
    猜你喜欢
    • 1970-01-01
    • 2016-01-04
    • 1970-01-01
    • 1970-01-01
    • 2015-08-26
    • 1970-01-01
    • 2018-04-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多