CodeIgniter标头已通过其他服务器发送错误 [英] CodeIgniter headers already sent error with different Server

查看:54
本文介绍了CodeIgniter标头已通过其他服务器发送错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在Windows 7 Apache Server上运行的Code Ignitor 1.7.2应用程序。我将应用程序复制到Windows Pro SP2 Apache Server。比我得到的错误

I have a Code Ignitor 1.7.2 application which runs on a Windows 7 Apache Server. I copied the Application to Windows Pro SP2 Apache Server. Than I am getting the error

遇到PHP错误
严重性:警告
消息:无法修改标头信息-标头已发送
文件名:helpers / url_helper.php
行号:0

我再次将应用程序复制到另一台Windows 7 PC上,加工。如果有空间问题,通常会出现此错误。

I again copied the application another Windows 7 PC and it is working. Usually this error comes if any space issue.

请帮助解决该错误。

推荐答案

感谢您的评论。我发现了错误。我正在使用一个函数来检测使用ob_start()和ob_clean()的系统的MAC地址。这导致错误。

Thanks for your comments. I found the Bug. I am using a function to detect the MAC address of the system where I am using ob_start() and ob_clean(). This is causing the error.

感谢并解决了不使用这些方法即可找到mac地址的问题。

Thanks and solved the issue to find the mac address without using those methods.

感谢所有人

这篇关于CodeIgniter标头已通过其他服务器发送错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆