[wp-trac] [WordPress Trac] #62362: Multiple PHP Warnings for "Undefined array key 'host'" and "Undefined array key 'scheme', " in wp-includes/canonical.php file
WordPress Trac
noreply at wordpress.org
Fri Nov 8 16:35:28 UTC 2024
#62362: Multiple PHP Warnings for "Undefined array key 'host'" and "Undefined array
key 'scheme'," in wp-includes/canonical.php file
----------------------------+------------------------------
Reporter: designdata2013 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Canonical | Version: 6.6.2
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+------------------------------
Old description:
> I am trying to figure out what is going on on many of the WordPress
> websites I maintain. They are all up to date and on PHP 8.0 or higher.
> Here is an example of the PHP Warning I am getting in the error log. I
> don't want to make changes to the canonical.php file because it will
> simply be overwritten with the next WordPress core update. I'm trying to
> figure out if it is a WordPress core issue or a conflict with a theme or
> plugin. Although these websites have different themes and different
> plugins, which makes me suspect it might be a WordPress Core issue. Here
> is the Error:
> [07-Nov-2024 17:10:26 UTC] PHP Warning: Undefined array key "host" in
> /home/xxxxxxxx/public_html/wp-includes/canonical.php on line 716
> [07-Nov-2024 17:10:26 UTC] PHP Warning: Undefined array key "host" in
> /home/xxxxxxxx/public_html/wp-includes/canonical.php on line 727
> [07-Nov-2024 17:10:26 UTC] PHP Warning: Undefined array key "host" in
> /home/xxxxxxx/public_html/wp-includes/canonical.php on line 730
> [07-Nov-2024 17:10:26 UTC] PHP Warning: Undefined array key "scheme" in
> /home/xxxxxxx/public_html/wp-includes/canonical.php on line 751
New description:
I am trying to figure out what is going on on many of the WordPress
websites I maintain. They are all up to date and on PHP 8.0 or higher.
Here is an example of the PHP Warning I am getting in the error log. I
don't want to make changes to the canonical.php file because it will
simply be overwritten with the next WordPress core update. I'm trying to
figure out if it is a WordPress core issue or a conflict with a theme or
plugin. Although these websites have different themes and different
plugins, which makes me suspect it might be a WordPress Core issue. Here
is the Error:
{{{
[07-Nov-2024 17:10:26 UTC] PHP Warning: Undefined array key "host" in
/home/xxxxxxxx/public_html/wp-includes/canonical.php on line 716
[07-Nov-2024 17:10:26 UTC] PHP Warning: Undefined array key "host" in
/home/xxxxxxxx/public_html/wp-includes/canonical.php on line 727
[07-Nov-2024 17:10:26 UTC] PHP Warning: Undefined array key "host" in
/home/xxxxxxx/public_html/wp-includes/canonical.php on line 730
[07-Nov-2024 17:10:26 UTC] PHP Warning: Undefined array key "scheme" in
/home/xxxxxxx/public_html/wp-includes/canonical.php on line 751
}}}
--
Comment (by sabernhardt):
The same errors are listed in #62334. Is this the same issue?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62362#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list