我正在编写一个Magento Admin扩展,其中包含一些ajax回调.到目前为止,我一直在回应json,我正在通过ajax调用反馈控制器中的一个简单的echo语句.它"工作",但我在我的日志文件中得到了一堆这样的错误:
2010-12-14T15:37:05 + 00:00调试(7):标题已发出:
[0] /home/simplifiedsafety/www/store/app/code/core/Mage/Core/Controller/Response/Http.php:44 [1] /home/simplifiedsafety/www/store/lib/Zend/Controller/Response/Abstract.php:727 [2] /home/simplifiedsafety/www/store/app/code/core/Mage/Core/Controller/Response/Http.php:75 [3] /home/simplifiedsafety/www/store/app/code/core/Mage/Core/Controller/Varien/Front.php:188 [4] /home/simplifiedsafety/www/store/app/code/core/Mage/Core/Model/App.php:304 [5] /home/simplifiedsafety/www/store/app/Mage.php:599 [6] /home/simplifiedsafety/www/store/index.php:104
我想要避免这种情况,我需要通过某种方式将其推出.有人可以给我一点指导吗?
我有Magento发送的Headers有这个问题.我收到此错误:
HEADERS ALREADY SENT:
[0] /var/www/etam/trunk/src/app/code/core/Mage/Core/Controller/Response/Http.php:44
[1] /var/www/etam/trunk/src/lib/Zend/Controller/Response/Abstract.php:727
[2] /var/www/etam/trunk/src/app/code/core/Mage/Core/Controller/Response/Http.php:75
[3] /var/www/etam/trunk/src/app/code/core/Mage/Core/Controller/Varien/Front.php:188
[4] /var/www/etam/trunk/src/app/code/core/Mage/Core/Model/App.php:304
[5] /var/www/etam/trunk/src/app/Mage.php:596
[6] /var/www/etam/trunk/src/index.php:139
Run Code Online (Sandbox Code Playgroud)
我看到这个话题但对我帮助不大.
我发现只有在通过管理面板导航并使用WYSIWYG编辑器编辑页面时才能获得此日志.当在这样的编辑的内容有.jpg图像然后我得到这个标题已经发送错误.
据我所知,它不是适用于所有图像,而是适用于其中一些图像.例如,当只有1个图像时没有错误.当有3个时,只有一个我得到这个错误.
我找不到任何空格或不想要的echo,也不print.我坚持这个,我不知道要搜索什么.也许你可以给我一些建议?我知道它是无害的,我们仍然不想在system.log中有任何错误.