Search Module: Search not returning any results.

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
richbothe
Forum Members
Forum Members
Posts: 95
Joined: Tue Aug 15, 2006 5:34 pm
Location: Minnesota, USA

Search Module: Search not returning any results.

Post by richbothe »

CMSMS Ver. - 1.5.4

Website URL: http://www.mvpgoaltending.com/

Issue: I haven't modified the search form or results form at all; however, when I enter a search term and click submit no results are returned. I have tried using various words within the content and page names.

Please advise....
User avatar
richbothe
Forum Members
Forum Members
Posts: 95
Joined: Tue Aug 15, 2006 5:34 pm
Location: Minnesota, USA

Re: Search Module: Search not returning any results.

Post by richbothe »

I can't search from any page including the home page.  I have a staging site setup at http://staging.mvpgoaltending.com and the search works perfectly.  I'll keep troubleshooting and see if I can resolve this.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm
Location: MI

Re: Search Module: Search not returning any results.

Post by Jeff »

Have you made any changes to your template? How do you get the data from your staging site to the main site?
User avatar
richbothe
Forum Members
Forum Members
Posts: 95
Joined: Tue Aug 15, 2006 5:34 pm
Location: Minnesota, USA

Re: Search Module: Search not returning any results.

Post by richbothe »

I have a separate staging site (with separate db) setup at http://staging.mvpgoaltending.com. The staging and production sites are identical with the exception of the necessary url changes in the config file.
Last edited by richbothe on Tue Jul 28, 2009 4:24 pm, edited 1 time in total.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm
Location: MI

Re: Search Module: Search not returning any results.

Post by Jeff »

Do you add the content directly to the main site? or do you add it to staging site and then once approve copy it over to the main site?

If it is the later, please tell us how do you copy it, do you do a full database dumb?
User avatar
richbothe
Forum Members
Forum Members
Posts: 95
Joined: Tue Aug 15, 2006 5:34 pm
Location: Minnesota, USA

Re: Search Module: Search not returning any results.

Post by richbothe »

First, I backup the main site db and uploads directory.  I then restore that to the staging site so that staging has the latest content.  I then make my changes to the staging site.  Once approved, I backup the staging db and uploads and restore them to the main site. 

This site just went live a week ago and the Search function hasn't worked on the main site since going live.  I am currently upgrading the staging site to CMS 1.6.  Once complete, I will also upgrade the main site to 1.6 to see if that resolves the issue.
User avatar
richbothe
Forum Members
Forum Members
Posts: 95
Joined: Tue Aug 15, 2006 5:34 pm
Location: Minnesota, USA

Re: Search Module: Search not returning any results.

Post by richbothe »

Completed upgrade to cms 1.6 on both main site and staging site.  I also reindexed in Search Admin and still, my staging site search works, but not the main site.

I removed the 301 redirect from the .htaccess file at the root that forces the url to http://www.domain.com as opposed to http://domain.com and Search now works.

But that now presents another question/issue... is there another/better way other than .htaccess to force the url to "www"?  I found that with cms version 1.5.4 and later that the 301 redirect also caused an issue with FormBuilder and forms not submitting.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm
Location: MI

Re: Search Module: Search not returning any results.

Post by Jeff »

what is your domain in your config file set to? w/ or w/o the www
User avatar
richbothe
Forum Members
Forum Members
Posts: 95
Joined: Tue Aug 15, 2006 5:34 pm
Location: Minnesota, USA

Re: Search Module: Search not returning any results.

Post by richbothe »

By default, during installation it gets set to 'www' and that's what it is set to currently.
Ctopher
New Member
New Member
Posts: 3
Joined: Thu Sep 03, 2009 11:11 pm

Re: Search Module: Search not returning any results.

Post by Ctopher »

Was there ever a solution to this problem?  I have experienced what I think is the same issue.

My config file is set up with www.mysite.com, and I put a 301 redirect in my .htaccess file so that anyone visiting mysite.com would be redirected to www."mysite".com, however that broke the search module and no results would be displayed.

So, I took out the 301 redirect and noticed that search results always strip out the www. from the address, so all search results go to mysite.com instead of www.mysite.com - with the 301 redirect in place it couldn't display the results.

Thanks to anyone who can help.

Chris
Post Reply

Return to “Modules/Add-Ons”