WordPress.org

Ready to get started?Download WordPress

Forums

how to revert to previous WP installation (17 posts)

  1. kizora
    Member
    Posted 3 years ago #

    Hi

    Upgraded from 3.0.2 to 3.1.3. Unresolved search error so want to revert back to 3.0.2.

    Can I just re-instate wp-admin and wp-includes from 3.0.2 (i copied them before the upgrade). They are the only directories that wordpress updates aren't they?

    Thanks
    Chris

  2. stvwlf
    Member
    Posted 3 years ago #

    They are the only directories that wordpress updates aren't they?

    No, files in the root WP folder are also upgraded.
    Also the database is upgraded.

    You can download a full version of 3.0.2 from
    http://wordpress.org/download/release-archive/

    The issue is if any database changes will cause an issue when you return to 3.0.2 Offhand I don't know the answer to that.

    Its always a good idea to back up the database before upgrading (or downgrading which by the way is not recommended with WordPress).
    The WP DB Backup plugin makes it simple to do so.

    I had issues with 3.1.3 on a few sites and went back to 3.1.2 3.2 will be out soon. With WordPress its best to stay current. Some upgrades will break some plugins that haven't been kept current. Getting them fixed or finding others that have been kept current is a better solution than downgrading.

  3. kizora
    Member
    Posted 3 years ago #

    Hi,

    Thanks for the info.

    It's not a plugin problem, it's the search function in wordpress that doesn't work now.

    When I upgraded my localhost version of my website from 3.0.2 to 3.1.3, the search works correctly, but it doesn't work on my live website - VERY frustrating !

    Is there anyway I can debug it to find the actual problem, most of the advice seems to be do the upgrade again....

    Cheers
    Chris

  4. hyperdude
    Member
    Posted 3 years ago #

    This tells me there's probably something to do with your hosting provider or server setup if it currently works on the localhost. Do you have another hosting account to try on?

    who are you hosting with?

  5. @kizora: sounds more like a template problem. What exactly does or doesn't work with search? Do you have a searchform.php in your theme? What URL?

  6. kizora
    Member
    Posted 3 years ago #

    Thanks for the replies.

    I'm hosting with JustHost. I don't have another hosting account unfortunately.

    URL is http://thebeautifulhousecompany.com/search/. It displays with an example search string of “Swimming Pool” (with quotes). With WP 3.0.2, this displayed all properties with swimming pools. With WP 3.1.3, no properties are returned.

    In 3.0.2, if swimming pool (no quotes ) was entered, properties with pool tables and no swimming pools would be returned, hence the need for quotes for exact match on multiple words.

    In 3.1.3, if stag parties (no quotes) is entered, a property (newcourt park)referencing The Stagg Inn is found – this post does not contain stag parties.

    One word searches are fine.

    searchform.php is the same for live/localhost:

    <form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
    <div>
    <input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
    <input type="submit" id="searchsubmit" value="<?php _e('Search','ElegantEstate'); ?>" />
    </div>
    </form>

    It uses a search.php and page-search.php too

    Cheers,

    Chris

  7. Dion Hulse
    WordPress Dev
    Posted 3 years ago #

    Just reading that, I'm not 100% sure of the problem you're having, but I'm fairly confident it's not a bug, just a change (for the better) in the algorithm used for searching.

    WordPress has never (to my knowledge) supported advanced searching (eg using quoted strings for exact matches), and i'm pretty certain it doesnt in 3.1.3 either.

    As for it working differently between the live server and your local installation, I have a feeling thats due to the different MySQL configuration (which is what is doing the searching, not WordPress).

    to me, it sounds like you might need to investigate the various searching plugins to find one that suits your requirements: http://wordpress.org/extend/plugins/tags/search

  8. Dion Hulse
    WordPress Dev
    Posted 3 years ago #

    Ok, I'll eat my hat on that one.. Seems Quoted strings do work, and have done so for 5+ years :) http://core.trac.wordpress.org/ticket/3177

    I don't see any major changes to the search functionality in the last few releases though.

    I still recommend having a look at the plugins in that link however, as thats really the way to go forward in order to make it work how you want it working :)

  9. kizora
    Member
    Posted 3 years ago #

    Hi Dion,

    Thanks for the help.

    Are you saying that the search functionality hasn't changed since 3.0.2? Point me in the right direction of where to look and I'll check if you didn't go back that far.

    I did a compare of 3.0.2 and 3.1.3 source but if you're saying the search functionality is in MYSQL, my compare wouldn't have picked up any changes?

    Just looked at that link. The theme I'm using comes with a search page. Can I just install one of those other search plugins, test my search, uninstall if not suitable, and try another?

    Cheers,
    Chris

  10. john661
    Member
    Posted 3 years ago #

    i am a1so face this problem.thanks for help.

  11. kizora
    Member
    Posted 3 years ago #

    Hi,

    Is there some way I can check how the word press search is executed on MySQL on my server?

    Thanks
    Chris

  12. kizora
    Member
    Posted 3 years ago #

    Hi

    It seems the problem is related to the use of double quotes "

    Whenever I use " ... text string ... " the search returns no results.

    Any tips on how I can see where the quotes are mis-interpreted?

    Cheers
    Chris

  13. kizora
    Member
    Posted 3 years ago #

    Hi

    If I go into the wp dashboard and click on posts, then enter "stag parties" (with the quotes") in the 'search posts box' top right of the screen. I get the correct results back - without newcourt park.

    If I enter "swimming pool" in the search box, it finds the 8 posts with swimming pools. The URL address after the search is:-
    http://thebeautifulhousecompany.com/wp-admin/edit.php?s=%22swimming+pool%22&post_status=all&post_type=post&action=-1&m=0&cat=0&paged=1&mode=list&action2=-1

    When I do the search via the search page, the URL address is:-
    http://thebeautifulhousecompany.com/?s=%22Swimming+Pool%22&et-cat=0&et_searchform_submit=et_search_proccess

    Is this giving me a clue as to why it doesn't work?

    Cheers
    Chris

  14. kizora
    Member
    Posted 3 years ago #

    Hi,

    I've been trying to get general logging (for MySQL) enabled on my site, but JustHost can't set it on because it's shared. I wanted to examine the actual SQL coming in from the dashboard (when it works) and from my search page (when it doesn't work).

    Is there another way of tracking the SQL?

    Thanks
    Chris

  15. kizora
    Member
    Posted 3 years ago #

    Hi,

    Is there any point in upgrading to WordPress 3.1.4 or should I just give up and go back to 3.0.2?

    Thanks
    Chris

  16. kizora
    Member
    Posted 3 years ago #

    Or rather 3.2 as that's available now?

    Cheers
    Chris

  17. kizora
    Member
    Posted 3 years ago #

    I can't go to 3.2 as my host doesn't have PHP 5.2.4 on it's shared servers.

    So I guess I may aswell revert back to 3.0.2 and get my web site working again. When I've got my confidence back, if I decided to do manual incremental upgrades to 3.0.3, 3.0.4 etc which downloads do I take from

    http://wordpress.org/download/release-archive/

    zip (md5 | sha1) tar.gz (md5 | sha1) ?

    and what's the -IIS version for ?

    How are WP database changes shown in the manual updates? or are they included in the WP-ADMIN/INCLUDES folders?

    Thanks
    Chris

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.