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

WordPress Trac noreply at wordpress.org
Fri Jul 29 17:46:46 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 yatgirl):

 On just the main php page of the old abandoned plugin (visitor-maps.php),
 I put error_reporting
 at the top of the page.  Are you saying I did something wrong ?  I thought
 this would affect just this plugin.  Please let me know.

 Replying to [comment:42 RavanH]:
 > 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:46>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list