PHP Warning null on post_author
-
Hello,
Recently I came accross this warning:
[2024-11-28 18:21:48] PHP Warning: Attempt to read property "post_author" on null in /wp-content/plugins/seo-by-rank-math/includes/opengraph/class-facebook.php on line 326
Stack trace:
#0 /wp-content/plugins/seo-by-rank-math/includes/opengraph/class-facebook.php(326): bac_error_handler()
#1 /wp-content/plugins/seo-by-rank-math/includes/opengraph/class-facebook.php(277): get_author()
#2 /wp-includes/class-wp-hook.php(324): article_author()
#3 /wp-includes/class-wp-hook.php(348): apply_filters()
#4 /wp-includes/plugin.php(565): do_action()
#5 /wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(90): do_action_ref_array()
#6 /wp-content/plugins/seo-by-rank-math/includes/opengraph/class-opengraph.php(74): do_action()
#7 /wp-includes/class-wp-hook.php(324): output_tags()
#8 /wp-includes/class-wp-hook.php(348): apply_filters()
#9 /wp-includes/plugin.php(565): do_action()
#10 /wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(90): do_action_ref_array()
#11 /wp-content/plugins/seo-by-rank-math/includes/frontend/class-head.php(180): do_action()
#12 /wp-includes/class-wp-hook.php(324): head()
#13 /wp-includes/class-wp-hook.php(348): apply_filters()
#14 /wp-includes/plugin.php(517): do_action()
#15 /wp-includes/general-template.php(3064): do_action()
#16 /wp-content/themes/woodmart/header.php(12): wp_head()
#17 /wp-includes/template.php(810): require_once()
#18 /wp-includes/template.php(745): load_template()
#19 /wp-includes/general-template.php(48): locate_template()
#20 /wp-content/themes/woodmart/page.php(15): get_header()
#21 /wp-includes/template-loader.php(106): include()
#22 /wp-blog-header.php(19): require_once()
#23 /index.php(17): require()Can you explain a bit more why this happens and how this can be fixed?
Best Regards
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- You must be logged in to reply to this topic.