刚刚升级完毕,一切都乱糟糟的:)
warning: array_map() [function.array-map]: The first argument, 'utf8_encode', should be either NULL or a valid callback in /home/vhosts/tt/htdocs/includes/common.inc on line 1775.
warning: Cannot modify header information - headers already sent by (output started at /home/vhosts/tt/htdocs/includes/common.inc:384) in /home/vhosts/tt/htdocs/includes/common.inc on line 192.
请问这是什么原因?我该如何解决?
你用的是PHP5吧?出现
你用的是PHP5吧?出现这样的问题是因为缺少了PHP5-xml 模块,如果是自己的主机启动PHP5 的xml模块然后重新启动Apache,这个问题就可以解决了,如果你用不是自己的主机,无法更改PHP配置,那在 includes/common.inc 文件里的 decode_entities 函数后面(用search可以找到这个函数)加入下面函数就可以了:
function utf8_encode($s) {
return iconv('iso-8859-1', 'utf-8', $s);
}
其实这是PHP的问题,相关的讨论可以在PHP的官方网站上找到
是的,已经叫网管处
是的,已经叫网管处理了。
谢谢
我的是出现这样的错
我的是出现这样的错误:
warning: Cannot modify header information - headers already sent by (output started at /var/www/html/woigirl/includes/info.php:2) in /var/www/html/woigirl/includes/common.inc on line 99.
但没有出现前面第一个warning,我的环境是FC4,php5,apache2
请问怎么解决?多谢
还有其他出错信息么
还有其他出错信息么?检查一下你的setting.php文件,看一下文件结尾处是不是多了多余的空行?
Post new comment