Magento错误:无法发送Collection.php中的标题错误

Magento错误:无法发送Collection.php中的标题错误,magento,header,Magento,Header,在我的Magento 1.6.2.0中,我在导出客户时出错: a:5:{i:0;s:156:"Cannot send headers; headers already sent in .../Mage/Eav/Model/Resource/Entity/Attribute/Option/Collection.php, line 1";i:1;s:1385:" #0 /home/mysite/public_html/lib/Zend/Controller/Response/Abstract.php

在我的Magento 1.6.2.0中,我在导出客户时出错:

a:5:{i:0;s:156:"Cannot send headers; headers already sent in .../Mage/Eav/Model/Resource/Entity/Attribute/Option/Collection.php, line 1";i:1;s:1385:"
#0 /home/mysite/public_html/lib/Zend/Controller/Response/Abstract.php(148): Zend_Controller_Response_Abstract->canSendHeaders(true)
#1 .../Mage/Core/Controller/Response/Http.php(105): Zend_Controller_Response_Abstract->setRedirect('http://mysite...', 302)
#2 .../Mage/Adminhtml/Controller/Action.php(336): Mage_Core_Controller_Response_Http->setRedirect('http://mysite...')
#3 .../Mage/ImportExport/controllers/Adminhtml/ExportController.php(98): Mage_Adminhtml_Controller_Action->_redirect('*/*/index')
#4 .../Mage/Core/Controller/Varien/Action.php(420): Mage_ImportExport_Adminhtml_ExportController->exportAction()
#5 .../Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('export')
#6 .../Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#7 .../Mage/Core/Model/App.php(349): Mage_Core_Controller_Varien_Front->dispatch()
#8 /home/mysite/public_html/app/Mage.php(640): Mage_Core_Model_App->run(Array)
#9 /home/mysite/public_html/index.php(80): Mage::run('', 'store')
#10 {main}";s:3:"url";s:99:"/index.php/admin/export/export/key/.../entity/customer/file_format/csv";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:5:"admin";}
保存新产品或编辑的产品后出现相同错误。产品已保存,但在出现错误之前:

a:5:{i:0;s:156:"Cannot send headers; headers already sent in .../core/Mage/Eav/Model/Resource/Entity/Attribute/Option/Collection.php, line 1";i:1;s:1420:"
#0 /home/mysite/public_html/lib/Zend/Controller/Response/Abstract.php(148): Zend_Controller_Response_Abstract->canSendHeaders(true)
#1 .../core/Mage/Core/Controller/Response/Http.php(105): Zend_Controller_Response_Abstract->setRedirect('http://mysite...', 302)
#2 .../core/Mage/Adminhtml/Controller/Action.php(336): Mage_Core_Controller_Response_Http->setRedirect('http://mysite...')
#3 .../local/CJM/ColorSelectorPlus/controllers/Override/Admin/Catalog/ProductController.php(92): Mage_Adminhtml_Controller_Action->_redirect('*/*/', Array)
#4 .../core/Mage/Core/Controller/Varien/Action.php(420): CJM_ColorSelectorPlus_Override_Admin_Catalog_ProductController->saveAction()
#5 .../core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('save')
#6 .../core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#7 .../core/Mage/Core/Model/App.php(349): Mage_Core_Controller_Varien_Front->dispatch()
#8 /home/mysite/public_html/app/Mage.php(640): Mage_Core_Model_App->run(Array)
#9 /home/mysite/public_html/index.php(80): Mage::run('', 'store')
#10 {main}";s:3:"url";s:82:"/index.php/admin/catalog_product/save/id/246/key/.../";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:5:"admin";}
无法发送标题;标题已发送

…表示存在标头重定向,但之前有输出。但在core/Mage/Eav/Model/Resource/Entity/Attribute/Option/Collection.php中,这到底在哪里


一些想法?谢谢。

找到了,它很愚蠢。我被这件事弄糊涂了

无法发送标题;标题已发送到…/Mage/Eav/Model/Resource/Entity/Attribute/Option/Collection.php,第1行


标题已发送到。。。第1行。这是文件的编码错误。因此,如果您正在使用notepadd++,请不要忘记将utf-8与BOM一起使用,这样可以节省您搜索有线错误的大量时间。

嗨,Stephan,您是否尝试过禁用所有自定义扩展?看起来有什么东西抛出了一个未正确捕获的错误,而Magento抛出了一个错误,因为在设置标题之前显示了一些数据,我禁用了所有扩展。还是一样的错误。我发现在更新搜索索引时也会出现同样的错误。