[wp-trac] [WordPress Trac] #60173: Warning: Undefined array key "host"

WordPress Trac noreply at wordpress.org
Mon Jan 1 08:39:34 UTC 2024


#60173: Warning: Undefined array key "host"
--------------------------+-----------------------------
 Reporter:  ainsleyclark  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I encountered an issue on my WordPress website where an ErrorException is
 thrown, displaying the following error message:

 {{{
 ErrorException
 Warning: Undefined array key "host"
 }}}

 This error occurs in the canonical.php file on line 718 of the /wp-
 includes/ directory. Here is the relevant code snippet:

 `$compare_original = array( $original['host'], $original['path'] );`

 Additionally, the error stack trace includes the following information:

 `/wp-includes/canonical.php in redirect_canonical at line 718`

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60173>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list