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

WordPress Trac noreply at wordpress.org
Thu Aug 11 13:52:08 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):

 Replying to [comment:47 RavanH]:
 > Replying to [comment:46 yatgirl]:
 > > On just the main php page of the old abandoned plugin (visitor-
 maps.php), I put
 > >
 > > {{{
 > > error_reporting (E_ALL ^ E_NOTICE);
 > > }}}
 > >
 > > 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.
 >
 > No, not wrong :) That effectively will suppress all PHP notices, which
 in itself is not bad for a live site. It depends on how this visitor-
 maps.php file is used (is it the main plugin file or is it used as a
 front-end template?) whether your code will turn off notices for your
 complete site or only a particular public page. Still, not a problem
 unless you need notices for debugging...

 ----
 Thanks - the visitor maps is the admin main page of an admin report that
 shows who is on my site and what they are doing- it doesnt affect anything
 front end.
 I guess doing that turned off all notices and I have found not having
 notices a breath of fresh air actually.  They are just notices (which
 seems to be everyones attitude) and if the canonical one hasnt been
 rectified in 7 years, then I am glad to be rid of it.  The constant
 notices in my log just take away from the warnings etc that are important.

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


More information about the wp-trac mailing list