PHP Fatal Error on Call to Add_Query_Var in Taxonomy.php After Upgrading to WordPress 2.5 RC2

After upgrading to WordPress 2.5 RC2, some WordPress iinstallation will return completely blank web page or all blog posts, pages and even wp-admin administrator dashboard and other administrative panel. Or the following error will be displayed (the error message will also be logged and captured in Apache error_log).

PHP Fatal error: Call to a member function add_query_var() on a non-object in /home/domain/public_html/wp-includes/taxonomy.php on line 165

The error happens because the webmaster upgrades to WordPress 2.5 RC2 without deactivating the plugins activated beforehand, and apparently there is plug-in that conflict or not compatible with the new beta release of WordPress 2.5. The problem happens even though users are upgrading from WordPress 2.5 RC1, and has no problem on that version.

The unsupported plugin is related to tags. For example, Simple Tags and bSuite, no longer works in WordPress 2.5 RC2, and probably in final 2.5 version too.

The best way to avoid the error is to disable all plugins before upgrading, and then turn on the plugins one by one to ensure compatibility, and deactivate those causing the blank or error webpages.

However, if you already upgraded and forgot to deactivate the plugins, and now facing the the problem usable to access Plugin Management page anymore to disable tags related plugins, try the following workarounds to fix the issue.

  1. Login to the server, and delete the possible incompatible plugin away.
  2. Downgrade to WordPress 2.5 RC1 (download link) to disable all plugins, and then upgrade to WordPress 2.5 RC2, or final version when released, again.


2 Responses to “PHP Fatal Error on Call to Add_Query_Var in Taxonomy.php After Upgrading to WordPress 2.5 RC2”

  1. WordPress 2.5 Relaese for Free Download » Tip and Trick
    March 30th, 2008 13:52
    1

    [...] If you’re upgrading from previous older version of WordPress, remember to read WordPress upgrade instructions, and verify the plugins compatibility to avoid any unforeseen problems. [...]

  2. PHP Fatal Error on Call to Add_Query_Var in Taxonomy.php After Upgrading to WordPress 2.5 RC2 (Excerpt) » My Digital Life
    April 5th, 2008 13:56
    2

    [...] reading PHP Fatal Error on Call to Add_Query_Var in Taxonomy.php After Upgrading to WordPress 2.5 RC2 at Tip and [...]

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to Tip and Trick Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

Incoming Search Terms for the Article

wordpress - "Fatal error: Call to a member function on a non-object" zoom - "Call to a member function add_query_var()" - Yugma - wordpress add_query_var() - tipandtrick - add_query_var - Call to a member function add_query_var() - playboy - cache:qO1z19W_qfcJ:www.mydigitallife.info/2008/04/05/php-fatal-error-on-call-to-add_query_var-in-taxonomyphp-after-upgrading-to-wordpress-25-rc2-excerpt/ taxonomy.php - taxonomy.php error wordpress - wordpress 2.5.1 blank page problem - downgrade wordpress 2.5.1 - wordpress member function on a non-object - wordpress "disable tags" - wordpress Fatal error: Call to a member function on a non-object in - php: error deactivation - fatal error taxonomy.php - Fatal error: Call to a member function on a non-object plugin - wordpress 2.5.1 "secret key" error - Fatal error: Call to a member function wordpress - wordpress error taxonomy.php - wordpress blank site after upgrade 2.5.1 - downgrade wordpress - php disable fatal error - error taxonomy.php - wordpress add_query_var - "Fatal error: Call to a member function on a non-object" wordpress - wordpress Fatal error: Call to a member - php Fatal error turn off - Fatal error: Call to a member function on a non-object "Fatal error: Call to a member function on a non-object" wordpress - wordpress "Call to a member function on a non-object" - incoming search terms wordpress plugin bsuite - Fatal error: Call to a member function add_query_var() - how to avoid fatal error php - blank pages wordpress taxonomy - wordpress upgrade to php5 Call to a member function - Fatal error: Call to a member function on a non-object zoom media gallery - media library blank after upgrade wordpress - Call to a member function on a non-object in wordpress - WordPress plugins "PHP Fatal error" - wordpress Taxonomy + blank page - bsuite + Fatal Error - Fatal error: Call to a member function on a non-object in wordpress - ubuntu fatal error call to member function - php execute program after fatal error - wordpress + Fatal error: Call to a member - Search Term Tag plugin - taxonomy php - custom apache page on php fatal error -