[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 03:42:57 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:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  6.0
 Severity:  normal        |   Keywords:  needs-patch needs-copy-review
  Focuses:                |
--------------------------+-------------------------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56032>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list