admin管理员组

文章数量:1122832

i keep seeing the following in the php error log, repeating:

[05-Aug-2024 02:34:41 UTC] PHP Warning:  Attempt to read property "post_content" on null in /home/euognau/public_html/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php on line 506
[05-Aug-2024 02:34:41 UTC] PHP Warning:  Attempt to read property "ID" on null in /home/euognau/public_html/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php on line 506
[05-Aug-2024 02:34:41 UTC] PHP Warning:  Attempt to read property "post_content" on null in /home/euognau/public_html/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php on line 506
[05-Aug-2024 02:34:41 UTC] PHP Warning:  Attempt to read property "ID" on null in /home/euognau/public_html/wp-content/plugins/seo-by-rank-math/includes/opengraph/class-image.php on line 506

i reached out to the Rank Math support team, and they responded with the following:

If the query get_queried_object() is returning null it means that is not a WordPress object and as such the metadata cannot be generated for that particular page or set of pages.

If it’s not returning one on your website is because there is some page that is incorrectly created and not an actual object.

how would i go about addressing the portion they suggest is the cause, being an incorrectly created page object?

本文标签: phptaxonomy pages returning “NULL” when running default WordPress function 39getqueriedobject()39