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

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

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


More information about the wp-trac mailing list