[wp-trac] [WordPress Trac] #56188: Attempt to read property "post_type" on null after PHP 8.1

WordPress Trac noreply at wordpress.org
Sat Jul 9 16:21:26 UTC 2022


#56188: Attempt to read property "post_type" on null after PHP 8.1
-------------------------------+-----------------------------
 Reporter:  brmartinez         |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:
 Severity:  critical           |   Keywords:  needs-patch
  Focuses:                     |
-------------------------------+-----------------------------
 Hello, I've noticed this error in WordPress since I've installed PHP 8.1.
 Can you fix it?

 [09-Jul-2022 16:16:45 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:16:45 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:16:45 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:16:45 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:16:45 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:16:45 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:16:45 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:16:45 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:16:45 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:16:45 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:17:00 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:17:00 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:17:00 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:17:00 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:17:00 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:17:00 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:17:00 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:17:00 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:17:00 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:17:00 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:18:11 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:18:11 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:18:11 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:18:11 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:18:11 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:18:11 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:18:11 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:18:11 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:18:11 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338
 [09-Jul-2022 16:18:11 UTC] PHP Warning:  Attempt to read property
 "post_type" on null in /home/showmetechcom/public_html/wp-includes/class-
 wp-query.php on line 4338

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


More information about the wp-trac mailing list