[wp-trac] [WordPress Trac] #53135: PHP Warning: Attempt to read property in class-wp-query.php
WordPress Trac
noreply at wordpress.org
Mon May 3 01:24:46 UTC 2021
#53135: PHP Warning: Attempt to read property in class-wp-query.php
--------------------------+-----------------------------
Reporter: bwbama | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.7.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
My error log is filled with these errors and I am having a hard time
trying to figure out what might be triggering it.
[03-May-2021 01:11:31 UTC] PHP Warning: Attempt to read property "ID" on
null in /home/nginx/domains/bamapolitics.com/public/wp-includes/class-wp-
query.php on line 4044
[03-May-2021 01:11:31 UTC] PHP Warning: Attempt to read property
"post_title" on null in /home/nginx/domains/bamapolitics.com/public/wp-
includes/class-wp-query.php on line 4046
[03-May-2021 01:11:31 UTC] PHP Warning: Attempt to read property
"post_name" on null in /home/nginx/domains/bamapolitics.com/public/wp-
includes/class-wp-query.php on line 4048
Should there not be some checking to make sure that the property is not
null?
Server is running PHP 8.0.5
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53135>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list