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

WordPress Trac noreply at wordpress.org
Thu Jul 21 14:30:02 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 RavanH):

 Replying to [comment:40 yatgirl]:
 > As soon as I stopped the php notice errors on that old plugin, the
 canonical php error notice errors also instantly stopped.  So it appeared
 to me that these php canonical errors are reacting to other errors - In my
 case, I put a stop to the other errors and the canonical errors stop......

 How did you stop the notices? With the PHP function error_reporting()
 maybe? Please note that (depending on where you put the code) this will
 affect the error reporting level for everything that happens after that
 plugin loads, not just that particular plugin.

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


More information about the wp-trac mailing list