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?
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
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.
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….
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?
@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?
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’); ?>/”>
<input type=”text” value=”<?php the_search_query(); ?>” name=”s” id=”s” />
<input type=”submit” id=”searchsubmit” value=”<?php _e(‘Search’,’ElegantEstate’); ?>” />
It uses a search.php and page-search.php too
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
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 🙂
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?
Is there some way I can check how the word press search is executed on MySQL on my server?
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?
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:-
When I do the search via the search page, the URL address is:-
Is this giving me a clue as to why it doesn’t work?
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?
Is there any point in upgrading to WordPress 3.1.4 or should I just give up and go back to 3.0.2?
- The topic ‘how to revert to previous WP installation’ is closed to new replies.