[wp-trac] [WordPress Trac] #40888: PHP Warnings when POSTing keys as arrays to wp-login.php

WordPress Trac noreply at wordpress.org
Tue May 30 17:30:00 UTC 2017


#40888: PHP Warnings when POSTing keys as arrays to wp-login.php
------------------------------------+------------------------------
 Reporter:  johnjamesjacoby         |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Login and Registration  |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  2nd-opinion             |     Focuses:
------------------------------------+------------------------------

Comment (by johnjamesjacoby):

 Here are some lines from my error log, too:

 {{{
 2017/05/30 08:51:35 [error] 12361#12361: *315413 FastCGI sent in stderr:
 "PHP message: PHP Warning:  strpos() expects parameter 1 to be string,
 array given in /srv/www/sites/public/wordpress/wp-login.php on line 290
 PHP message: PHP Warning:  trim() expects parameter 1 to be string, array
 given in /srv/www/sites/public/wordpress/wp-login.php on line 295" while
 reading response header from upstream, client: ...snip..., server: ,
 request: "POST /wp-login.php?action=lostpassword&h8179w2l=1 HTTP/1.0",
 upstream: "fastcgi://unix:/var/run/php/php7.1-fpm.sock:", host:
 "example.org", referrer: "https://example.org/wp-
 login.php?action=lostpassword"
 2017/05/30 08:51:36 [error] 12361#12361: *315429 FastCGI sent in stderr:
 "PHP message: PHP Warning:  strpos() expects parameter 1 to be string,
 array given in /srv/www/sites/public/wordpress/wp-login.php on line 290
 PHP message: PHP Warning:  trim() expects parameter 1 to be string, array
 given in /srv/www/sites/public/wordpress/wp-login.php on line 295" while
 reading response header from upstream, client: ...snip..., server: ,
 request: "POST /wp-login.php?action=lostpassword&qjeb3ilf=1 HTTP/1.0",
 upstream: "fastcgi://unix:/var/run/php/php7.1-fpm.sock:", host:
 "example.org", referrer: "https://example.org/wp-
 login.php?action=lostpassword"
 2017/05/30 08:51:38 [error] 12361#12361: *315453 FastCGI sent in stderr:
 "PHP message: PHP Warning:  strpos() expects parameter 1 to be string,
 array given in /srv/www/sites/public/wordpress/wp-login.php on line 290
 PHP message: PHP Warning:  trim() expects parameter 1 to be string, array
 given in /srv/www/sites/public/wordpress/wp-login.php on line 295" while
 reading response header from upstream, client: ...snip..., server: ,
 request: "POST /wp-login.php?action=lostpassword&wyna7f2m=1 HTTP/1.0",
 upstream: "fastcgi://unix:/var/run/php/php7.1-fpm.sock:", host:
 "example.org", referrer: "https://example.org/wp-
 login.php?action=lostpassword"
 2017/05/30 08:51:39 [error] 12361#12361: *315463 FastCGI sent in stderr:
 "PHP message: PHP Warning:  strpos() expects parameter 1 to be string,
 array given in /srv/www/sites/public/wordpress/wp-login.php on line 290
 PHP message: PHP Warning:  trim() expects parameter 1 to be string, array
 given in /srv/www/sites/public/wordpress/wp-login.php on line 295" while
 reading response header from upstream, client: ...snip..., server: ,
 request: "POST /wp-login.php?action=lostpassword&lnflscot=1 HTTP/1.0",
 upstream: "fastcgi://unix:/var/run/php/php7.1-fpm.sock:", host:
 "example.org", referrer: "https://example.org/wp-
 login.php?action=lostpassword"
 2017/05/30 08:51:40 [error] 12361#12361: *315477 FastCGI sent in stderr:
 "PHP message: PHP Warning:  strpos() expects parameter 1 to be string,
 array given in /srv/www/sites/public/wordpress/wp-login.php on line 290
 PHP message: PHP Warning:  trim() expects parameter 1 to be string, array
 given in /srv/www/sites/public/wordpress/wp-login.php on line 295" while
 reading response header from upstream, client: ...snip..., server: ,
 request: "POST /wp-login.php?action=lostpassword&ic63oe4f=1 HTTP/1.0",
 upstream: "fastcgi://unix:/var/run/php/php7.1-fpm.sock:", host:
 "example.org", referrer: "https://example.org/wp-
 login.php?action=lostpassword"
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40888#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list