Opened 4 years ago
Closed 4 years ago
#56032 closed defect (bug) (duplicate)
PHP 8.1 has a flaw with WordPress 6.0 in class-wp-query.php
| Reported by: | InternetTim | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Query | Version: | 6.0 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description (last modified by )
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.
Change History (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi there, welcome to WordPress Trac!
Thanks for the report, we're already tracking this issue in #29660.