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

WordPress Trac noreply at wordpress.org
Tue Nov 9 14:05:05 UTC 2021


#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-patch needs-unit-tests  |     Focuses:
------------------------------------------+-----------------------------

Comment (by Andy Schmidt):

 Replying to [comment:26 jojooba008]:
 > I'm also having the same problem.
 > My server is running on Ubuntu, and I found out that when bots etc.
 access 127.0.1.1 (not 127.0.0.1), I get the notice about canonical.php.
 > Could this information be a help in solving this problem?

 Yes, this is indeed one of the circumstances known to trigger it.

 What version of WordPress? The original problem was reported in Version 4
 where it was not fixed for years, and now it won't be because of version
 5.

 If your problem still persists in version 5, that would be relevant.

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


More information about the wp-trac mailing list