[wp-trac] [WordPress Trac] #56032: PHP 8.1 has a flaw with WordPress 6.0 in class-wp-query.php
WordPress Trac
noreply at wordpress.org
Wed Jun 22 10:59:55 UTC 2022
#56032: PHP 8.1 has a flaw with WordPress 6.0 in class-wp-query.php
--------------------------+------------------------
Reporter: InternetTim | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Query | Version: 6.0
Severity: normal | Resolution: duplicate
Keywords: | Focuses:
--------------------------+------------------------
Changes (by SergeyBiryukov):
* status: new => closed
* component: General => Query
* milestone: Awaiting Review =>
* keywords: needs-patch needs-copy-review =>
* resolution: => duplicate
Old description:
> Updated some of the sites today to PHP 8.1, and instantly started to get
> error_logs, the exact ones, that read,
>
> [22-Jun-2022 01:28:19 UTC] PHP Warning: Attempt to read property "ID" on
> null in /home/username/public_html/wp-includes/class-wp-query.php on line
> 4186
> [22-Jun-2022 01:28:19 UTC] PHP Warning: Attempt to read property
> "post_title" on null in /home/username/public_html/wp-includes/class-wp-
> query.php on line 4188
> [22-Jun-2022 01:28:19 UTC] PHP Warning: Attempt to read property
> "post_name" on null in /home/username/public_html/wp-includes/class-wp-
> query.php on line 4190
>
> Don't know if this will help you with the next update, but I am giving it
> a shot.
New description:
Updated some of the sites today to PHP 8.1, and instantly started to get
error_logs, the exact ones, that read,
{{{
[22-Jun-2022 01:28:19 UTC] PHP Warning: Attempt to read property "ID" on
null in /home/username/public_html/wp-includes/class-wp-query.php on line
4186
[22-Jun-2022 01:28:19 UTC] PHP Warning: Attempt to read property
"post_title" on null in /home/username/public_html/wp-includes/class-wp-
query.php on line 4188
[22-Jun-2022 01:28:19 UTC] PHP Warning: Attempt to read property
"post_name" on null in /home/username/public_html/wp-includes/class-wp-
query.php on line 4190
}}}
Don't know if this will help you with the next update, but I am giving it
a shot.
--
Comment:
Hi there, welcome to WordPress Trac!
Thanks for the report, we're already tracking this issue in #29660.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56032#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list