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
版权声明:本文标题:php - taxonomy pages returning “NULL” when running default WordPress function 'get_queried_object()' 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736298822a1930308.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论