WordPress.org

Ready to get started?Download WordPress

Forums

Assignment Desk
[resolved] Call to a member function add_rewrite_tag() on a non-object (2 posts)

  1. Daniel Drake
    Member
    Posted 3 years ago #

    Hey folks.

    Running WP in multi-site mode on my laptop's WAMP server. (http://localhost.localdomain/)

    When I activate Assignment Desk, this error starts popping up on any URL:

    Fatal error: Call to a member function add_rewrite_tag() on a non-object in C:\wamp\www\wp-includes\taxonomy.php on line 289

    Tried installing older versions, but got the same result. I didn't get this error when I installed the very first "0.1" release, though.

    Other plugins have the same problem; seems to be a WP 3.0 compatibility issue?

    http://wordpress.org/extend/plugins/assignment-desk/

  2. Scott Bressler
    Member
    Posted 3 years ago #

    This happened because rewrites are turned on for the custom taxonomies that AD is registering (and I assume because the taxonomies are being registered before the 'init' action is called). At the least, adding 'rewrite' => false to your register_taxonomy args should fix this.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic