Opened 8 years ago
Closed 8 years ago
#39880 closed defect (bug) (duplicate)
PHP Notice: Undefined index: host in canonical.php on line 444
Reported by: | romgo | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.7.2 |
Component: | Canonical | Keywords: | has-patch |
Focuses: | Cc: |
Description
Hello,
I am having this message in my error log :
PHP Notice: Undefined index: host in <removed>/www/wp-includes/canonical.php on line 444
PHP Notice: Undefined index: host in <removed>/www/wp-includes/canonical.php on line 445
PHP Notice: Undefined index: host in <removed>/www/wp-includes/canonical.php on line 445
PHP Notice: Undefined index: host in <removed>/www/wp-includes/canonical.php on line 446
PHP Notice: Undefined index: host in <removed>/www/wp-includes/canonical.php on line 448
running wordpress 4.7.2
This message is coming from my nagios server, can reproduce with :
./check_http -S $hostname
Maybe the issue is coming from the fact that $hostname is not the name of my public URL.
If need more information feel free to ask.
Hi @romgo, welcome to WordPress Trac!
Thanks for the report, we're already tracking this issue in #34353.