WordPress.org

Ready to get started?Download WordPress

Forums

Fatal error after upgrade to 3.1.1 (5 posts)

  1. aborisov
    Member
    Posted 3 years ago #

    Hello!

    I've tried to update my 3.0.5 blog to 3.1.1 and couldn't do it. Still getting the error

    Fatal error: Call to undefined method stdClass::add_query_var() in public_html/ambnotes/wp-includes/taxonomy.php on line 318

    Please, can somebody help me? Tried to change theme to Twenty Two. Tried to deactivate all plugins and after deactivating did upgrade. Getting this error.

    I don't know what to do. Actually, I never used taxonomy in my blog so, I never changed anything here. May be here is my mistake? Or not?

    Please, help me?

    Same problem I've had after I've tried to upgrade to 3.1. Have two blogs and on both of them getting the same error

  2. lonnylot
    Member
    Posted 3 years ago #

    Please try following the instructions here:
    http://codex.wordpress.org/Upgrading_WordPress_Extended

    Specifically the part about de-activating all of your plug-ins.

  3. aborisov
    Member
    Posted 3 years ago #

    I did it. Deactivated ALL of my plugins before I did an upgrade.

  4. govpatel
    Member
    Posted 3 years ago #

    Try and upgrade manually from the same link you will need to backup database I have video on my website if you prefer to see how to upgrade manually click on my name.

  5. _ck_
    Member
    Posted 3 years ago #

    The reason why some legacy installs cannot upgrade beyond version 3.0 is this:

    Check wp-config.php for any lines that define a $wp-> object setting.

    They will break 3.1 and above and give a $wp->add_query_var error.

    For example:

    $wp->cookiedomain = '.example.com';

    Will work in 3.0 and below but break WP 3.1 and 3.2

    You'll have to research for the replacement define setting as an alternative to $wp->

    For example, the modern replacement for the above line is
    define(COOKIE_DOMAIN,'.example.com');

Topic Closed

This topic has been closed to new replies.

About this Topic