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

WordPress Trac noreply at wordpress.org
Wed Mar 16 11:35:13 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-patch needs-unit-tests  |     Focuses:
------------------------------------------+-----------------------------

Comment (by stcn):

 Hi,

 I'm also having this issue :


 {{{
 [16-Mar-2022 04:02:38 UTC] PHP Warning:  Undefined array key "host" in
 /public_html/wp-includes/canonical.php on line 687
 [16-Mar-2022 04:02:38 UTC] PHP Warning:  Undefined array key "host" in
 /public_html/wp-includes/canonical.php on line 696
 [16-Mar-2022 04:02:38 UTC] PHP Warning:  Undefined array key "scheme" in
 /public_html/wp-includes/canonical.php on line 720
 }}}


 what is the problem? how can it be solved?

 Thanks!

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


More information about the wp-trac mailing list