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.

WordPress Specialist with a focus on... runs on the Genesis framework

Genesis Framework

Genesis empowers you to quickly and easily build incredible websites with WordPress.Whether you're a novice or advanced developer, Genesis provides the secure and search-engine-optimized foundation that takes WordPress to places you never thought it could go. It's that simple - start using Genesis now!

Take advantage of the 6 default layout options, comprehensive SEO settings, rock-solid security, flexible theme options, cool custom widgets, custom design hooks, and a huge selection of child themes ("skins") that make your site look the way you want it to. With automatic theme updates and world-class support included, Genesis is the smart choice for your WordPress website or blog.

Last updated by at .

John
My specialties these days is helping folks get their WordPress website back up after a disaster such as being hacked. I focus on fixing a site rather than scrapping it and starting over. I am also there when you need to add functionality to your WordPress website, from realizing that you need to simply connect with social media website to getting setup with an ecommerce store. I can help you though the process. I am also there when you need to add functionality to your WordPress website, from realizing that you need to simply connect with social media website to getting setup with an ecommerce store. I can help you though the process.
John
John

Comments

  1. Curt G Maddon says:

    You rock…saved my butt!

  2. Glad it helped you out..

Join the Conversation

Leave you comment below or use the FaceBook integration system above.

*

 
Read more:
What Does It Take to Start a Blog?

By: Stephanie Foster Blogging is a very popular way to start a website right now. With free solutions such as...

Close