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.
- Login to the server, and delete the possible incompatible plugin away.
- 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.
Related Articles
- Call to Undefined Function get_currentuserinfo() Error in WordPress
- Call To Undefined Function: ctype_digit() in WordPress 2.5
- Call to Undefined Function: wp_constrain_dimensions() When Uploading Images or image_downsize() in Gallery/Media Library in WordPress 2.5
- USB Unknown Device Drive Issue, Not Working, Recognized or Connected Error After Upgrading and Installing Vista SP1
- Disable WordPress 2.5 Flash Image/Video/Media Uploader with Plugin
- Media Buttons Disabler Plugin to Remove “Add Media” Icons in WordPress 2.5
- WordPress 2.5 Released for Free Download
- Fix WordPress 2.5 Image or Media Flash Uploader Not Working Issue in IE7
- WordPress 2.5 RC2 Released for Download
- WordPress 2.5.1 Released for Download










































April 5th, 2008 13:56
[...] reading PHP Fatal Error on Call to Add_Query_Var in Taxonomy.php After Upgrading to WordPress 2.5 RC2 at Tip and [...]
March 30th, 2008 13:52
[...] 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. [...]