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

WordPress Trac noreply at wordpress.org
Tue Jan 17 04:44:14 UTC 2023


#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 bcolflesh):

 This still happens in 6.1.1 -

 2023/01/16 21:41:33 [error] 1166#1166: *222553 FastCGI sent in stderr:
 "PHP message: PHP Notice:  Undefined index: host in /my/path/wp-
 includes/canonical.php on line 689PHP message: PHP Notice:  Undefined
 index: host in /my/path/wp-includes/canonical.php on line 698PHP message:
 PHP Notice:  Undefined index: host in /my/path/wp-includes/canonical.php
 on line 701" while reading response header from upstream, client:
 99.99.100.99, server: 99.99.99.100, request: "GET / HTTP/1.0", upstream:
 "fastcgi://unix:/var/run/php/php7.4-fpm.sock:"

 Why not update the handler for cases when host is not set?

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


More information about the wp-trac mailing list