[wp-trac] [WordPress Trac] #34353: redirect_canonical() – Undefined indexes 'host' and 'scheme'

WordPress Trac noreply at wordpress.org
Fri Jul 15 18:03:16 UTC 2022


#34353: redirect_canonical() – Undefined indexes 'host' and 'scheme'
-------------------------------------------------+-------------------------
 Reporter:  theamila                             |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Canonical                            |     Version:  4.3.1
 Severity:  normal                               |  Resolution:
 Keywords:  needs-unit-tests has-patch needs-    |     Focuses:
  testing-info                                   |
-------------------------------------------------+-------------------------

Comment (by Mayhem30):

 I'm not sure what these people doing to create these errors, but here are
 the 2 offenders today.

 Access log:
 {{{
 198.235.24.129 - [14/Jul/2022:19:49:15 -0700] GET / HTTP/1.1 "200" "-"
 "Expanse, a Palo Alto Networks company, searches across the global IPv4
 space multiple times per day to identify customers' presences on the
 Internet. If you would like to be excluded from our scans, please send IP
 addresses/domains to: scaninfo at paloaltonetworks.com"

 109.248.6.15 - [15/Jul/2022:04:08:25 -0700] GET / HTTP/1.0 "200" "-"
 "masscan-ng/1.3 (https://github.com/bi-zone/masscan-ng)"
 }}}


 Error log :

 {{{
 [14-Jul-2022 02:49:29 UTC] PHP Warning:  Undefined array key "host" in
 /www/example.com/httpdocs/wp-includes/canonical.php on line 687
 [14-Jul-2022 02:49:29 UTC] PHP Warning:  Undefined array key "host" in
 /www/example.com/httpdocs/wp-includes/canonical.php on line 696
 [14-Jul-2022 02:49:29 UTC] PHP Warning:  Undefined array key "host" in
 /www/example.com/httpdocs/wp-includes/canonical.php on line 699
 [14-Jul-2022 02:49:29 UTC] PHP Warning:  Undefined array key "scheme" in
 /www/example.com/httpdocs/wp-includes/canonical.php on line 720
 [14-Jul-2022 02:49:29 UTC] PHP Warning:  Undefined array key "host" in
 /www/example.com/httpdocs/wp-includes/canonical.php on line 687
 [14-Jul-2022 02:49:29 UTC] PHP Warning:  Undefined array key "host" in
 /www/example.com/httpdocs/wp-includes/canonical.php on line 696
 [14-Jul-2022 02:49:29 UTC] PHP Warning:  Undefined array key "host" in
 /www/example.com/httpdocs/wp-includes/canonical.php on line 699
 [14-Jul-2022 02:49:29 UTC] PHP Warning:  Undefined array key "scheme" in
 /www/example.com/httpdocs/wp-includes/canonical.php on line 720
 [15-Jul-2022 11:08:25 UTC] PHP Warning:  Undefined array key "host" in
 /www/example.com/httpdocs/wp-includes/canonical.php on line 687
 [15-Jul-2022 11:08:25 UTC] PHP Warning:  Undefined array key "host" in
 /www/example.com/httpdocs/wp-includes/canonical.php on line 696
 [15-Jul-2022 11:08:25 UTC] PHP Warning:  Undefined array key "host" in
 /www/example.com/httpdocs/wp-includes/canonical.php on line 699
 [15-Jul-2022 11:08:25 UTC] PHP Warning:  Undefined array key "scheme" in
 /www/example.com/httpdocs/wp-includes/canonical.php on line 720
 [15-Jul-2022 11:08:25 UTC] PHP Warning:  Undefined array key "host" in
 /www/example.com/httpdocs/wp-includes/canonical.php on line 687
 [15-Jul-2022 11:08:25 UTC] PHP Warning:  Undefined array key "host" in
 /www/example.com/httpdocs/wp-includes/canonical.php on line 696
 [15-Jul-2022 11:08:25 UTC] PHP Warning:  Undefined array key "host" in
 /www/example.com/httpdocs/wp-includes/canonical.php on line 699
 [15-Jul-2022 11:08:25 UTC] PHP Warning:  Undefined array key "scheme" in
 /www/example.com/httpdocs/wp-includes/canonical.php on line 720
 }}}

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


More information about the wp-trac mailing list