Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/285.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 无法重新声明清理()错误_Php - Fatal编程技术网

Php 无法重新声明清理()错误

Php 无法重新声明清理()错误,php,Php,我在nginx日志中有以下错误: 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.p

我在nginx日志中有以下错误:

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,PHP5.3.5-1ubuntu7.2ppa1~lucid(fpm fcgi)


有人能帮我吗?我知道您不会检查所有配置等,但如果有任何提示可以解决此问题,我将不胜感激。

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


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

当我们禁用所有插件时,错误已经消失。似乎缺少一个模块,或者存在另一个服务器配置问题。我们的服务器已从崩溃中恢复,现在很难检索其配置。仅供参考,我已经尝试过用include_替换所有include,一次等等。感谢您的回复,很抱歉,由于缺乏声誉,我无法投票支持您的帖子。很高兴问题已经解决。如果答案确实回答了您的问题,您可以通过勾选复选标记来接受答案。