User Taxonomies
Getting an error while activating the plugin (7 posts)

  1. closemarketing
    Posted 4 years ago #

    Fatal error: Call to a member function add_rewrite_tag() on a non-object in /wp-includes/taxonomy.php on line 333

    What's going on?


  2. Damian Gostomski
    Plugin Author

    Posted 4 years ago #


    Firstly, apologies for taking so long to get back to you... It seems W.org doesn't auto alert plugin authors of support requests!

    Can you let me know what version of WP you're running, as I'd tested it on several version and they all seem to work.
    Does this occur for you on a clean install as well, or only if you have other plugins/a non default theme enabled (if so, can you let me know what theme/plugins are enabled so I can try to replicate).


  3. FYI, you can monitor your plugin support reqs by following http://wordpress.org/support/view/plugin-committer/YOURHANDLE

  4. Damian Gostomski
    Plugin Author

    Posted 4 years ago #

    Thanks very much Ipstenu - Added to my RSS feed so should be much quicker to respond to support requests :-)

  5. Stephanie Leary
    Posted 3 years ago #

    I had the same error pop up just now, only mine complained about /wp-includes/rewrite.php on line 51. We're on 3.4.1... alas, with a ton of plugins installed, but I just tried it on a clean install and saw the same thing.

  6. Damian Gostomski
    Plugin Author

    Posted 3 years ago #

    Does the error occur on every page or just specific ones?
    Have you tried going to Settings > Permalinks to flush the rewrite rules?

    @Ipstenu - Any idea why there seems to be a 6 day lag on the notifications when following my support RSS feed?

  7. divydovy
    Posted 3 years ago #


    I was getting this error too. The register_taxonomy function needs to be called on init (http://codex.wordpress.org/Function_Reference/register_taxonomy).

    So, just wrap the example code in a function, call it on init and BOOM:

    function my_register_user_taxonomy() {
        register_taxonomy('services', 'user',
            // your array
    add_action('init', 'my_register_user_taxonomy', 0);

    H/T to Tadlock's original post for the fix.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • User Taxonomies
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.