[wp-trac] [WordPress Trac] #62334: Undefined array key "host" in canonical.php

WordPress Trac noreply at wordpress.org
Tue Nov 5 05:56:47 UTC 2024


#62334: Undefined array key "host" in canonical.php
--------------------------+--------------------------------
 Reporter:  morebrackets  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Canonical     |     Version:  6.6.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  php-compatibility
--------------------------+--------------------------------

Comment (by geekofshire):

 I implemented fallbacks for the host and scheme keys, setting them to ''
 and 'http' respectively when missing, but unfortunately, this didn’t
 resolve the issue. I’m still seeing PHP warnings related to these keys in
 canonical.php. Could someone point me in the right direction or suggest an
 alternative approach?

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


More information about the wp-trac mailing list