[wp-trac] [WordPress Trac] #58162: Undefined array key PHP Warnings
WordPress Trac
noreply at wordpress.org
Thu Apr 20 05:59:54 UTC 2023
#58162: Undefined array key PHP Warnings
------------------------------+-----------------------------
Reporter: onlanka | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Canonical | Version: 6.2
Severity: major | Keywords: needs-patch
Focuses: coding-standards |
------------------------------+-----------------------------
Recently I upgraded my server's PHP version from 7.4 to 8.1.
Now I'm getting following error lines in the **error_log** file.
{{{
[18-Apr-2023 07:13:55 UTC] PHP Warning: Undefined array key "00" in
/some_path/public_html/wp-includes/class-wp-locale.php on line 319
[18-Apr-2023 07:57:56 UTC] PHP Warning: Undefined array key "path" in
/some_path/public_html/wp-includes/canonical.php on line 592
[18-Apr-2023 14:20:18 UTC] PHP Warning: Undefined array key "host" in
/some_path/public_html/wp-includes/canonical.php on line 689
[18-Apr-2023 14:20:18 UTC] PHP Warning: Undefined array key "host" in
/some_path/public_html/wp-includes/canonical.php on line 698
[18-Apr-2023 14:20:18 UTC] PHP Warning: Undefined array key "host" in
/some_path/public_html/wp-includes/canonical.php on line 701
[18-Apr-2023 14:20:18 UTC] PHP Warning: Undefined array key "scheme" in
/some_path/public_html/wp-includes/canonical.php on line 722
}}}
And also following errors were found:
{{{
[18-Apr-2023 21:51:53 UTC] PHP Warning: Attempt to read property
"post_content" on null in /some_path/public_html/wp-content/themes/boldr-
lite/functions.php on line 267
[18-Apr-2023 21:51:53 UTC] PHP Warning: Attempt to read property
"post_content" on null in /some_path/public_html/wp-content/themes/boldr-
lite/functions.php on line 268
}}}
But if I switch back to PHP 7.4, no **error_log** is reported.
If someone from WordPress needs to investigate, I can give access to my
website privately.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58162>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list