Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/274.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://input:1 是从哪里来的?_Php_Wordpress_Nginx - Fatal编程技术网

从开始的PHP输出在哪里php://input:1 是从哪里来的?

从开始的PHP输出在哪里php://input:1 是从哪里来的?,php,wordpress,nginx,Php,Wordpress,Nginx,今天我尝试登录到我的wordpress实例,它正在我自己的服务器上运行。单击“登录”后,页面会报告以下内容: log=admin&pwd=passwort&wp-submit=Log+In&redirect_to=https%3A%2F%2Fwww.mydomain.com%2Fwp-admin%2F&testcookie=1 Warning: Cannot modify header information - headers already sent by (

今天我尝试登录到我的wordpress实例,它正在我自己的服务器上运行。单击“登录”后,页面会报告以下内容:

log=admin&pwd=passwort&wp-submit=Log+In&redirect_to=https%3A%2F%2Fwww.mydomain.com%2Fwp-admin%2F&testcookie=1
Warning: Cannot modify header information - headers already sent by (output started at php://input:1) in /var/www/html/wp-login.php on line 504

Warning: Cannot modify header information - headers already sent by (output started at php://input:1) in /var/www/html/wp-login.php on line 520

Warning: Cannot modify header information - headers already sent by (output started at php://input:1) in /var/www/html/wp-includes/functions.php on line 6225

我的设置如下:

  • PHP7.0.15

  • Wordpress 4.7.1
  • Nginx、MySql和Wordpress作为docker实例运行
  • 另一个协调路由和重定向的nginx实例(例如http->https)

困扰我的是输出的来源:
php://input:1
。我尝试添加一个
die('test')auto\u prepend\u file
被设置为
php://input
尽管默认值应为
NULL
。我找不到这个值被修改的确切位置,但将
auto\u prepend\u file=NULL
添加到
php.ini
并重新启动实例修复了这个问题。

今天和昨天有什么不同?昨天是大约9个月前我设置所有内容的时候。我查看了nginx配置文件,没有发现任何更改,容器中的脚本也是如此,除非我遗漏了什么。我不确定外部模块,可能是这些模块导致了错误?但我很确定这一定与PHP有关。否则wordpress不会显示此错误。我只是不知道它从哪里来…你的WordPress版本是什么?WordPress 4.7.1
        Name                      Command              State            Ports
--------------------------------------------------------------------------------------
wordpress_mysql_1       docker-entrypoint.sh mysqld    Up      0.0.0.0:3306->3306/tcp
wordpress_nginx_1       nginx -g daemon off;           Up      127.0.0.1:44654->80/tcp
wordpress_wordpress_1   docker-entrypoint.sh php-fpm   Up      0.0.0.0:9000->9000/tcp