久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Magento 錯(cuò)誤:標(biāo)頭已發(fā)送

Magento Error: Headers already sent(Magento 錯(cuò)誤:標(biāo)頭已發(fā)送)
本文介紹了Magento 錯(cuò)誤:標(biāo)頭已發(fā)送的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問(wèn)題描述

在我的網(wǎng)站中將產(chǎn)品添加到購(gòu)物車時(shí)出現(xiàn)此錯(cuò)誤:

I got this error while adding products to the cart in my site:

Cannot send headers; headers already sent in /home/website/public_html/app/code/local/Perpetual/MultiAdd/controllers/Checkout/CartController.php, line 153
Trace:
#0 /home/website/public_html/lib/Zend/Controller/Response/Abstract.php(147):      Zend_Controller_Response_Abstract->canSendHeaders(true)
#1 /home/website/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(585): Zend_Controller_Response_Abstract->setRedirect('http://www.trum...')
#2 /home/website/public_html/app/code/core/Mage/Checkout/controllers/CartController.php(85): Mage_Core_Controller_Varien_Action->_redirect('checkout/cart')
#3 /home/website/public_html/app/code/local/Perpetual/MultiAdd/controllers/Checkout/CartController.php(203): Mage_Checkout_CartController->_goBack()
#4 /home/website/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(376): Perpetual_MultiAdd_Checkout_CartController->addmultipleAction()
#5 /home/website/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(248): Mage_Core_Controller_Varien_Action->dispatch('addmultiple')
#6 /home/website/public_html/app/Mage.php(459): Mage_Core_Controller_Varien_Front->dispatch()
#7 /home/website/public_html/wholesale/index.php(65): Mage::run('wholesale', 'website')
#8 {main}

禁用無(wú)關(guān)的插件并沒(méi)有解決問(wèn)題.

Disabled extraneous plugin and that did not solve issue.

標(biāo)題似乎在第 1 行發(fā)送,并嘗試在錯(cuò)誤中引用的文件中再次發(fā)送,CartController.php -

It appears that headers are sent in line #1 and attempted to be sent again in the file referenced in the error, CartController.php -

$url = $this->_getSession()->getRedirectUrl(true)
if ($url) {
    $this->getResponse()->setRedirect($url);
} else {
$this->_redirectReferer(Mage::helper('checkout/cart')->getCartUrl());
}

關(guān)于如何阻止 Magento 在 Mage 之前發(fā)送標(biāo)頭的任何想法?

Any ideas on how to stop Magento from sending headers before Mage does?

推薦答案

可疑模塊被禁用?好吧,那我們?nèi)フ伊硪粋€(gè)答案.首先,檢查在錯(cuò)誤堆棧跟蹤之前是否有任何輸出.輸出會(huì)引發(fā)為此輸出發(fā)送標(biāo)頭.

Suspicious module disabled? Ok, let's go for another answer then. First, check whether you get any output before the error stack trace. An output provokes the sending of headers for this output.

這篇關(guān)于Magento 錯(cuò)誤:標(biāo)頭已發(fā)送的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Joining 2 tables in SELECT(MYSQL/PHP)(在 SELECT(MYSQL/PHP) 中加入 2 個(gè)表)
How to make lt;option selected=quot;selectedquot;gt; set by MySQL and PHP?(如何使lt;option selected=“selectedgt;由 MySQL 和 PHP 設(shè)置?)
Auto populate a select box using an array in PHP(使用 PHP 中的數(shù)組自動(dòng)填充選擇框)
PHP SQL SELECT where like search item with multiple words(PHP SQL SELECT where like search item with multiple words)
json_encode produce JSON_ERROR_UTF8 from MSSQL-SELECT(json_encode 從 MSSQL-SELECT 產(chǎn)生 JSON_ERROR_UTF8)
MySQL ORDER BY rand(), name ASC(MySQL ORDER BY rand(),名稱 ASC)
主站蜘蛛池模板: 日韩视频在线观看一区二区 | 久久久www成人免费无遮挡大片 | 精品日韩一区 | 国产精品视频一区二区三区 | 亚洲在线视频 | 久久免费精彩视频 | 五月天综合网 | 久久久日韩精品一区二区三区 | 精品国产一级 | 久草视频在 | 成人精品一区二区三区中文字幕 | 久久精品国产亚洲 | 台湾a级理论片在线观看 | 久久y| 国内自拍偷拍一区 | 日韩视频在线一区 | 羞羞的视频免费观看 | 红色av社区 | 亚洲综合热 | 色狠狠一区 | 国产日韩精品一区 | 色爱av| 亚洲精品一区二区网址 | 精品欧美一区二区三区久久久 | 精品1区2区| 天天操夜夜操 | 国产原创视频 | 亚洲欧美视频一区二区 | 国产精品一区二区视频 | 91麻豆精品国产91久久久久久 | 久久精品欧美一区二区三区不卡 | 天天夜夜操 | 91tv在线观看| 99精品国产一区二区三区 | 欧美一区免费 | 国产做爰 | 久久久久久久久91 | 久久久中文 | 国产成人99久久亚洲综合精品 | 成人精品免费视频 | 成人三级视频在线观看 |