WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. closemarketing
    Member
    Posted 2 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?

    http://wordpress.org/extend/plugins/user-taxonomies/

  2. Damian Gostomski
    Member
    Plugin Author

    Posted 1 year ago #

    Hi

    Firstly, apologies for taking so long to get back to you... It seems WP.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).

    Thanks
    Damian

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

  4. Damian Gostomski
    Member
    Plugin Author

    Posted 1 year ago #

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

  5. Stephanie Leary
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year ago #

    Hmmm...
    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
    Member
    Posted 1 year ago #

    Hey.

    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

About this Topic

Tags

No tags yet.