无法发送标题;标头已在/home/zk/public_html/lib/Zend/Cache/Backend/File.php,第1行中发送 [英] Cannot send headers; headers already sent in /home/zk/public_html/lib/Zend/Cache/Backend/File.php, line 1
本文介绍了无法发送标题;标头已在/home/zk/public_html/lib/Zend/Cache/Backend/File.php,第1行中发送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
无法发送标题;标头已在/home/zk/public_html/lib/Zend/Cache/Backend/File.php,第1行中发送
Cannot send headers; headers already sent in /home/zk/public_html/lib/Zend/Cache/Backend/File.php, line 1
踪迹:
#0 /home/zk/public_html/lib/Zend/Controller/Response/Abstract.php(115): Zend_Controller_Response_Abstract->canSendHeaders(true)
#1 /home/zk/public_html/app/code/core/Mage/Core/Model/App.php(1246): Zend_Controller_Response_Abstract->setHeader('Content-Type', 'text/html; char...')
#2 /home/zk/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(80): Mage_Core_Model_App->getResponse()
#3 /home/zk/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(202): Mage_Core_Controller_Varien_Front->getResponse()
#4 /home/zk/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#5 /home/zk/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#6 /home/zk/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#7 /home/zk/public_html/index.php(87): Mage::run('', 'store')
#8 {main}
我是magento的新手,找不到错误
I am new to magento and can't find the error
推荐答案
您可以尝试放入php文件的开头
you can try putting in the start of the php file
<?php ob_start(); ?>
最后
<?php ob_end_flush(); ?>
这篇关于无法发送标题;标头已在/home/zk/public_html/lib/Zend/Cache/Backend/File.php,第1行中发送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文