[wp-trac] [WordPress Trac] #59785: Fatal error: Attempt to assign property “object_id” on bool in class-wp-term-query.php
WordPress Trac
noreply at wordpress.org
Wed Nov 1 15:47:12 UTC 2023
#59785: Fatal error: Attempt to assign property “object_id” on bool in class-wp-
term-query.php
--------------------------+-----------------------------
Reporter: Faar | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 6.3.3
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
The populate_terms() function in this class still throws a PHP fatal error
on the get_term() query. Why?
In special circumstances, get_term() returns NULL and the variable $term
is not checked to see if it is still an object or already boolean.
$term = NULL and this leads to a fatal PHP error and the page loading is
aborted because $term->object_id does not work with NULL.
NULL->object_id
More to read here:
https://wordpress.org/support/topic/fatal-error-attempt-to-assign-
property-object_id-on-bool/
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59785>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list