• Resolved Gal Baras

    (@galbaras)


    While debugging something, I got the following messages:

    Warning: Attempt to read property “labels” on bool in ROOT/wp-content/plugins/seo-by-rank-math/includes/settings/titles/taxonomies.php on line 15

    Warning: Attempt to read property “singular_name” on null in ROOT/wp-content/plugins/seo-by-rank-math/includes/settings/titles/taxonomies.php on line 15

    Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in ROOT/wp-content/plugins/seo-by-rank-math/includes/settings/titles/taxonomies.php on line 72

    Looking further into it, this taxonomy did not appear in the output of get_taxonomies(), which was strange, and makes me think that, although Rank Math recognises it on its settings page, there is a point at which it isn’t defined properly.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Steve Burge

    (@stevejburge)

    Hi @galbaras. Thanks for using TaxoPress. This an error coming from RankMath. Please ask their support to see if they have a fix available.

    Thread Starter Gal Baras

    (@galbaras)

    I have asked Rank Math support to check before using taxonomy attributes, but in my own troubleshooting with get_taxonomies(), which is a core function, media_tag is not listed like other taxonomies. Could it be defined too late in the WP loading sequence?

    Thread Starter Gal Baras

    (@galbaras)

    Here’s what Rank Math support was able to find out:

    After further investigation, it seems that the issue is not how that plugin registers the taxonomies but rather related to some piece of code that is changing the global $wp_taxonomies which is made evident by the fact that the function get_taxonomy() returns null in the plugin source code.

    Plugin Author Steve Burge

    (@stevejburge)

    Hi @galbaras. Is the “Media Tags” taxonomy marked as “Active” on your site. It is inactive by default.

    Thread Starter Gal Baras

    (@galbaras)

    It seems to be active on all of my sites. I’ve had the plugin for AGES, so maybe it was introduced as active?

    Not sure about my test site anymore, because I removed it completely, but since I hadn’t touched it (hadn’t even known about it), I would assume it was active there too.

    • This reply was modified 1 month ago by Gal Baras.
    Plugin Author Steve Burge

    (@stevejburge)

    Thanks for using TaxoPress. We’ve not heard from you in a week so are closing this discussion for now. Please post back if this remains an issue.

    Thread Starter Gal Baras

    (@galbaras)

    I actually posted a reply, but it seems to have been deleted.

    From what I can see, the media_tag taxonomy is active on all my sites. I’m not sure when it was added, but I’ve been using the plugin for many years, and never had reason to look for it.

    My guess is that it was added active at some point, and the default activation was later changed for new installations, but didn’t affect mine.

    Plugin Author Steve Burge

    (@stevejburge)

    Another user reported that disabling the Media Tags helped with this.

    Thread Starter Gal Baras

    (@galbaras)

    That’s beside the point. The taxonomy should work when active.

    Plugin Author Steve Burge

    (@stevejburge)

    Hi @galbaras. We’ll take a look but this remains an issue with Rank Math. If there’s a workaround available, we’ll post it here.

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.