2012-01-02 97 views
0

運行Magento時出現問題。我很不確定我在Magento的配置中可能發生了什麼變化,但不幸的是我不記得了。如果我能我會嘗試重置。無法發送標題;頭文件已發送

突然在登錄到Magento的後端時出現了以下問題。

我已經嘗試過的: - 當然,我檢查了645行。我在那裏找不到任何問題。我發現了一些tipps,我必須檢查是否有隱藏的空間。但它不是。 - 我試圖用記事本++將文件保存爲UTF-8。但沒有變化。

錯誤代碼:

Cannot send headers; headers already sent in C:\\\\XAMPP\\\\xampp\\\\htdocs\\\\magento\\\\app\\\\Mage.php, line 645 

Trace: 
#0 C:\\\\XAMPP\\\\xampp\\\\htdocs\\\\magento\\\\lib\\\\Zend\\\\Controller\\\\Response\\\\Abstract.php(115): Zend_Controller_Response_Abstract->canSendHeaders(true) 
#1 C:\\\\XAMPP\\\\xampp\\\\htdocs\\\\magento\\\\app\\\\code\\\\core\\\\Mage\\\\Core\\\\Model\\\\App.php(1151): Zend_Controller_Response_Abstract->setHeader(\\\’Content-Type\\\’, \\\’text/html; char...\\\’) 
#2 C:\\\\XAMPP\\\\xampp\\\\htdocs\\\\magento\\\\app\\\\code\\\\core\\\\Mage\\\\Core\\\\Controller\\\\Varien\\\\Front.php(80): Mage_Core_Model_App->getResponse() 
#3 C:\\\\XAMPP\\\\xampp\\\\htdocs\\\\magento\\\\app\\\\code\\\\core\\\\Mage\\\\Core\\\\Controller\\\\Varien\\\\Router\\\\Standard.php(207): Mage_Core_Controller_Varien_Front->getResponse() 
#4 C:\\\\XAMPP\\\\xampp\\\\htdocs\\\\magento\\\\app\\\\code\\\\core\\\\Mage\\\\Core\\\\Controller\\\\Varien\\\\Front.php(177): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) 
#5 C:\\\\XAMPP\\\\xampp\\\\htdocs\\\\magento\\\\app\\\\code\\\\core\\\\Mage\\\\Core\\\\Model\\\\App.php(304): Mage_Core_Controller_Varien_Front->dispatch() 
#6 C:\\\\XAMPP\\\\xampp\\\\htdocs\\\\magento\\\\app\\\\Mage.php(596): Mage_Core_Model_App->run(Array) 
#7 C:\\\\XAMPP\\\\xampp\\\\htdocs\\\\magento\\\\index.php(80): Mage::run(\\\’\\\’, \\\’store\\\’) 
#8 {main} 
+0

第645行是什麼代碼? – 2012-01-02 11:42:09

+1

好像你在一些醜陋的文本編輯器中編輯某個文件,它將BOM簽名添加到文件的開頭。嘗試記住您更改了哪個文件,使用記事本++打開它,並保存爲不帶BOM的utf8文件。 – Zyava 2012-01-02 12:24:24

+0

該錯誤僅顯示在後端還是前端?關於登錄屏幕本身呢?如果錯誤並不總是那麼它不能在'Mage.php'中,因爲它用於所有頁面,無論如何。 – clockworkgeek 2012-01-02 16:04:50

回答

1

你改變local.xml文件,裏面什麼?可以肯定的是,該文件應該保存爲UTF8而沒有繁榮選項。

0

開發過程中始終禁用緩存管理下的緩存,並清除瀏覽器緩存。

0

我已經得到了這個問題。你從示例中拷貝應用/ etc中的local.xml並編輯它。不創建新的。

相關問題