Search module loading forever

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
4/11/2011 10:37:54 PM
Gravatar
Total Posts 12

Search module loading forever

Hi all,

Please se my image at: http://store.sieugiaiphap.net/main/images/search-module-not-work.gif

Thanks, Duy
 

4/13/2011 6:46:18 AM
Gravatar
Total Posts 18439

Re: Search module loading forever

Hi,

You are using the google custom search feature. It is possible that it does not work in in all countries or in all languages.

You may need to research their troubleshooting information.

Hope it helps,

Joe

4/13/2011 11:17:10 AM
Gravatar
Total Posts 12

Re: Search module loading forever

Thank for quickly reply.

I try to search "seo" word but it throw an exception (Value cannot be null). The value is "seo", right?. Here is the detail log. Any solution for me?

 

thanks - Duy

 

at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2011-04-13 23:09:06,318 ERROR mojoPortal.Web.Global - 58.186.126.188-en-US - /SearchResults.aspx?q=seo&f=00000000-0000-0000-0000-000000000000
System.ArgumentNullException: Value cannot be null.
Parameter name: s
   at System.IO.StringReader..ctor(String s)
   at mojoPortal.Business.WebHelpers.IndexHelper.Search(Int32 siteId, Boolean isAdmin, List`1 userRoles, Guid featureGuid, String queryText, Boolean highlightResults, Int32 highlightedFragmentSize, Int32 pageNumber, Int32 pageSize, Int32 maxClauseCount, Int32& totalHits, Boolean& invalidQuery)
   at mojoPortal.Web.UI.Pages.SearchResults.DoSearch()
   at mojoPortal.Web.UI.Pages.SearchResults.SetupInternalSearch()
   at mojoPortal.Web.UI.Pages.SearchResults.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at mojoPortal.Web.mojoBasePage.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

4/13/2011 11:25:03 AM
Gravatar
Total Posts 18439

Re: Search module loading forever

ok, now you are using the built in site search which uses Lucene search engine, which also may not support the language of your site.

You could also try using Bing for site search, maybe it will work.

Hope it helps,

Joe

4/13/2011 12:06:33 PM
Gravatar
Total Posts 12

Re: Search module loading forever

Thanks Joe, I will try Bing Search. About google search, when I put all code ( google provide me and use html content), it work fine to me. But i use Search ID (007612641433478361812:r7zeptaockg), it dont work.

Full code:

<div id="cse" style="width: 100%;">Loading</div>
<script src="//www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
  google.load('search', '1', {language : 'vi'});
  google.setOnLoadCallback(function() {
    var customSearchControl = new google.search.CustomSearchControl('007612641433478361812:r7zeptaockg');
    customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
    customSearchControl.draw('cse');
  }, true);
</script>
<link rel="stylesheet" href="//www.google.com/cse/style/look/default.css" type="text/css" />
    

 

Can you tell me why?

Thanks, Duy

 

4/13/2011 12:14:06 PM
Gravatar
Total Posts 18439

Re: Search module loading forever

in the layout.master file of your skin on <portal:ScriptLoader add the property LanguageCode="vi"

Maybe that will solve it.

Hope it helps,

Joe

4/13/2011 7:53:31 PM
Gravatar
Total Posts 12

Re: Search module loading forever

Thanks Joe, It's still not work

4/13/2011 10:53:28 PM
Gravatar
Total Posts 12

Re: Search module loading forever

Hi Joe,

Only siple add the below script into layout.master

<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
  google.load('search', '1');
</script>

It work fine. But Is there any better solution?

4/14/2011 12:06:29 PM
Gravatar
Total Posts 18439

Re: Search module loading forever

I think the problem is that in mojoPortal we also need an API key for google maps, and if this is not present it also does not load the custom search javascript correctly since they both need to load the same main script. If you get a google maps api key and enter it in Site Settings > API Keys, it should fix the problem.

Hope it helps,

Joe

4/14/2011 2:37:04 PM
Gravatar
Total Posts 37

Re: Search module loading forever

Joe I had the same problem....now the issue is http://www.pinkfashionista.com/SearchResults.aspx no resilts pop up.   it seems to be hidden.  can you please look at the site and do a search. i do not know how to describe it.

4/14/2011 2:43:24 PM
Gravatar
Total Posts 37

Re: Search module loading forever

Joe.

Got it to work.

I used the id number from a ad sense search engine.  not the id created in the url inside of the mojo help.....Hold it let me get it.

http://www.google.com/cse/   you need to replace that link with a get an adsense account account or something.

Thanks and i hope i was a little help in my non-techy way.

 

You must sign in to post in the forums. This thread is closed to new posts.