Rank Math is a revolutionary WordPress SEO Plugin that combines the features of many SEO tools and lets you multiply your traffic in the easiest way possible :bulb: :chart_with_upwards_trend: →
There's a problem behind the logic that adds the admin menu, you can reproduce the problem installing Captivate Sync™ plugin, this plugin uses a wordpress page as cpt archive and modifies the wp_query to return is_archive as true, in this case Rank Math detects the page as term archive and the function add_taxonomy_menu tries to get taxonomy labels from queried object, this generates a fatal error because the queried object is a page.
I've suggest to check the queried object before trying to access an invalid property, something like this should work
There's a problem behind the logic that adds the admin menu, you can reproduce the problem installing Captivate Sync™ plugin, this plugin uses a wordpress page as cpt archive and modifies the wp_query to return is_archive as true, in this case Rank Math detects the page as term archive and the function add_taxonomy_menu tries to get taxonomy labels from queried object, this generates a fatal error because the queried object is a page.
I've suggest to check the queried object before trying to access an invalid property, something like this should work
`
`