Fatal error: Call to a member function add_rewrite_tag() on a non-object in

If you get this error after doing an upgrade to your WordPress blog here is what you need to do. The error is “Fatal error: Call to a member function add_rewrite_tag() on a non-object in” what you need to do is simple enough.

Start by disabling your plugin folder by renaming it old-plugins, create a new plug in folder. Then go back into your WordPress install and it should come back to life now. click on plugins and you will see a bunch of errors as it disables all your plug ins because it cannot find the files for them.

Now go back and delete that folder you created and rename back the old-plugins to plugins. Now go back to your WordPress install and reactivate the plugins one by one testing your install for errors after each activation. As soon as the error reappears you have found the plug in that is at fault.

In my case it was the wp-ecommerce plugin causing the issue due to using a custom permalink structure. I changed it back to the default permalink structure and it works fine now. Since I was not really using the custom structure on that site I will get back to solving it completely later

If you have questions or need help feel free to leave a comment her thanks.

Last updated by at .

John
My specialty is helping people help themselves. I get their WordPress website up and running after a catastrophe such as being hacked or a plugin malfunction. My focus is on fixing the problem rather than scrapping the site and rebuilding it from the bottom up. Although this may be tempting to do, the costs associated with this are much more than you may think. The loss of time spent on the site, posts, data and images that may have been forgotten or no longer accessible. With a bit of time I can get your site cleaned up, functioning, and re-establish its presence on the web.
John

@Ahkonsu

Moving forward..
Just completed a 6.54 km run - Damp cool morning beautiful day for a runs event time http://t.co/qDhflgj2Fy #Runkeeper - 5 hours ago
John
2 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *