[wp-trac] [WordPress Trac] #52510: In PHP 8.0, non-posts/pages shows an warning error "Attempt to read property on null"

WordPress Trac noreply at wordpress.org
Fri Feb 12 13:39:34 UTC 2021


#52510: In PHP 8.0, non-posts/pages shows an warning error "Attempt to read
property on null"
---------------------------+------------------------------
 Reporter:  erwinbantilan  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  General        |     Version:  5.6.1
 Severity:  minor          |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------

Comment (by erwinbantilan):

 By the way here are the example errors:


 {{{
 2021/02/12 12:49:21 [error] 101518#101518: *74 FastCGI sent in stderr:
 "PHP message: PHP Warning: Attempt to read property "ID" on null in
 /var/www/gamingph.com/wp-includes/class-wp-query.php on line 4027PHP
 message: PHP Warning: Attempt to read property "post_title" on null in
 /var/www/gamingph.com/wp-includes/class-wp-query.php on line 4029PHP
 message: PHP Warning: Attempt to read property "post_name" on null in
 /var/www/gamingph.com/wp-includes/class-wp-query.php on line 4031PHP
 message: PHP Warning: Attempt to read property "ID" on null in
 /var/www/gamingph.com/wp-includes/class-wp-query.php on line 4027PHP
 message: PHP Warning: Attempt to read property "post_title" on null in
 /var/www/gamingph.com/wp-includes/class-wp-query.php on line 4029PHP
 message: PHP Warning: Attempt to read property "post_name" on null in
 /var/www/gamingph.com/wp-includes/class-wp-query.php on line 4031PHP
 message: PHP Warning: Attempt to read property "ID" on null in
 /var/www/gamingph.com/wp-includes/class-wp-query.php on line 4027PHP
 message: PHP Warning: Attempt to read property "post_title" on null in
 /var/www/gamingph.com/wp-includes/class-wp-query.php on line 4029PHP
 message: PHP Warning: Attempt to read property "post_name" on null in
 /var/www/gamingph.com/wp-includes/class-wp-query.php on line 4031PHP
 message: PHP Warning: Attempt to read property "post_type" on null in
 /var/www/gamingph.com/wp-includes/class-wp-query.php on line 4179PHP
 message: PHP Warning: Attempt to read property "post_type" on null in
 /var/www/gamingph.com/wp-includes/class-wp-query.php on line 4179PHP
 message: PHP Warning: Attempt to read property "post_type" on null in
 /var/www/gamingph.com/wp-includes/class-wp-query.php on line 4179" while
 reading response header from upstream, client: 49.145.229.24, server:
 gamingph.com, request: "GET /data/feed/ HTTP/2.0", upstream:
 "fastcgi://unix:/var/run/php/php8.0-fpm.sock:", host: "gamingph.com"
 }}}



 {{{
 2021/02/12 10:56:58 [error] 84487#84487: *9570 FastCGI sent in stderr:
 "PHP message: PHP Warning: Attempt to read property "ID" on null in
 /var/www/gamingph.com/wp-includes/class-wp-query.php on line 4027PHP
 message: PHP Warning: Attempt to read property "post_title" on null in
 /var/www/gamingph.com/wp-includes/class-wp-query.php on line 4029PHP
 message: PHP Warning: Attempt to read property "post_name" on null in
 /var/www/gamingph.com/wp-includes/class-wp-query.php on line 4031PHP
 message: PHP Warning: Attempt to read property "ID" on null in
 /var/www/gamingph.com/wp-includes/class-wp-query.php on line 4027PHP
 message: PHP Warning: Attempt to read property "post_title" on null in
 /var/www/gamingph.com/wp-includes/class-wp-query.php on line 4029PHP
 message: PHP Warning: Attempt to read property "post_name" on null in
 /var/www/gamingph.com/wp-includes/class-wp-query.php on line 4031" while
 reading response header from upstream, client: 212.83.184.228, server:
 gamingph.com, request: "GET /data/rss HTTP/1.1", upstream:
 "fastcgi://unix:/var/run/php/php8.0-fpm.sock:", host: "gamingph.com"
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52510#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list