【问题标题】:Magento- Cannot send headers; headers already sentMagento - 无法发送标头;标头已发送
【发布时间】:2016-06-17 02:44:44
【问题描述】:

我是 magento 的新手。每次用户尝试登录时,他都会收到此错误。试图在这里找到解决方案,但无法找到。

无法发送标头;标头已经发送到 /home/jerseytown/public_html/popartfactory.in/lib/Zend/Captcha/Base.php,第 1 行

追踪:
#0 /home/jerseytown/public_html/popartfactory.in/lib/Zend/Controller/Response/Abstract.php(148): Zend_Controller_Response_Abstract->canSendHeaders(true)
#1 /home/jerseytown/public_html/popartfactory.in/app/code/core/Mage/Core/Controller/Response/Http.php(106): Zend_Controller_Response_Abstract->setRedirect('http://popartfa...', 302)
#2 /home/jerseytown/public_html/popartfactory.in/app/code/core/Mage/Core/Controller/Varien/Action.php(711): Mage_Core_Controller_Response_Http->setRedirect('http://popartfa...')
#3 /home/jerseytown/public_html/popartfactory.in/app/code/core/Mage/Core/Controller/Varien/Action.php(689):Mage_Core_Controller_Varien_Action->setRedirectWithCookieCheck('//' , 数组)
#4 /home/jerseytown/public_html/popartfactory.in/app/code/core/Mage/Customer/controllers/AccountController.php(153): Mage_Core_Controller_Varien_Action->_redirect('//') #5 /home/jerseytown/public_html/popartfactory.in/app/code/core/Mage/Core/Controller/Varien/Action.php(418):Mage_Customer_AccountController->loginPostAction()
#6 /home/jerseytown/public_html/popartfactory.in/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250):Mage_Core_Controller_Varien_Action->dispatch('loginPost')
#7 /home/jerseytown/public_html/popartfactory.in/app/code/core/Mage/Core/Controller/Varien/Front.php(172):Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#8 /home/jerseytown/public_html/popartfactory.in/app/code/core/Mage/Core/Model/App.php(354):Mage_Core_Controller_Varien_Front->dispatch()
#9 /home/jerseytown/public_html/popartfactory.in/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#10 /home/jerseytown/public_html/popartfactory.in/index.php(71): Mage::run('', 'store')
#11 {主}

【问题讨论】:

标签: magento


【解决方案1】:

登录后Magento开始重定向前回显一些值或空值的问题,您必须检查在开始重定向之前是否有任何东西发送到浏览器。

正确检查您的主题文件,这可能会有所帮助。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-08-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-15
    • 2014-06-09
    相关资源
    最近更新 更多