不能重新声明的sanitize()错误

问题描述:

我在nginx的日志中出现以下错误:不能重新声明的sanitize()错误

2011/12/16 13:52:30 [error] 7490#0: *1000 FastCGI sent in stderr: "PHP Fatal error: Cannot redeclare sanitize() (previously declared in /usr/share/www/includes/class_downloads.php:4) in 
    /usr/share/www/includes/class_downloads.php on line 17" while reading response header from upstream, client: 192.0.0.1, server: localhost, request: 
"GET /aaf104/fullmetal-alchemist-brotherhood-video22/index.html HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.example.com" 

我所有的网站都出现了同样的错误:

Fatal error: Cannot redeclare sanitize() (previously declared in 
/usr/share/www/includes/class_downloads.php:4) in 
/usr/share/www/includes/class_downloads.php on line 17 

配置:

的Ubuntu 10.04 .3 LTS,nginx/0.7.65,PHP 5.3.5-1ubuntu7.2ppa1〜lucid(fpm-fcgi)

nginx config

fastcgi config

site config

有人能帮助我吗?我知道你不会检查所有的配置等,但我会很感激任何提示来解决这个问题。

错误消息是显式的。你有一个函数“sanitize()”在你的代码中出现多次。首先在/usr/share/www/includes/class_downloads.php的第4行,然后在同一个文件的第17行。

PHP函数只能在码流中出现一次。

+0

当我们禁用所有插件时,错误消失。看起来,某个模块被遗漏或存在另一个服务器配置问题。我们的服务器从崩溃中恢复,现在很难恢复其配置。只是为了您的参考,我试图用include_once等替换所有包含。谢谢您的回复和抱歉,由于缺乏声誉,我无法投票给您的帖子。 – Andrew 2011-12-18 01:45:37