我在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,PHP 5.3.5-1ubuntu7.2ppa1~lucid (fpm-fcgi)
nginx config
fastcgi config
site config
有人能帮我这个忙吗?我知道你不会检查所有的配置等,但我将感谢任何提示,以克服这个问题。
发布于 2011-12-17 03:53:22
错误消息是明确的。您的代码中多次出现了函数"sanitize()“。首先在/usr/share/www/includes/class_downloads.php的第4行,然后在同一文件的第17行。
一个PHP函数在代码流中只能出现一次。
https://stackoverflow.com/questions/8536346
复制相似问题