1

2012-10-31T10:49:49+00:00 调试 (7):无法发送标头;标头已经发送到 /home/happiniess/public_html/magento/includes/src/Varien_Image_Adapter_Gd2.php,第 133 行

2012-10-31T10:49:49+00:00 DEBUG (7): HEADERS ALREADY SENT: <pre>[0] /home/happiniess/public_html/magento/includes/src/__default.php:17239 
[1] /home/happiniess/public_html/magento/includes/src/__default.php:17123 
[2] /home/happiniess/public_html/magento/includes/src/__default.php:17278 
[3] /home/happiniess/public_html/magento/includes/src/__default.php:17490 
[4] /home/happiniess/public_html/magento/includes/src/__default.php:20055 
[5] /home/happiniess/public_html/magento/app/Mage.php:683 
[6] /home/happiniess/public_html/magento/index.php:87 
</pre> 
2012-10-31T10:49:49+00:00 DEBUG (7): Array 
( 
[0] => Array 
( 
[name] => Content-Type 
[value] => text/html; charset=UTF-8 
[replace] => 
)

)

当我检查代码 magento/lib/Varien/Image/Adapter/Gd2.php

public function display()
    {
        header(\"Content-type: \".$this->getMimeType());
        call_user_func($this->_getCallback(\'output\'), $this->_imageHandler); // 133 line
    }

这不是BUG吗?

谁能提供更多如何调试的提示?

我已添加:/app/code/core/Mage/Core/Controller/Response/Http.php

Mage::log('HEADERS ALREADY SENT: '.mageDebugBacktrace(true, true, true)); 

/lib/Zend/Controller/Response/Abstract.php

Mage::Log('Cannot send headers; headers already sent in ' . $file . ', line ' . $line);

然后得到错误信息:/home/happiness/public_html/magento/includes/src/Varien_Image_Adapter_Gd2.php,第 133 行

现在不知道怎么解决!!!

帮助!!!

4

1 回答 1

0

试试看这个错误

  1. 禁用编译并删除缓存

我认为新添加的文件不编译

于 2013-07-03T02:15:00.090 回答