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.
When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:
Hi all,
Please se my image at: http://store.sieugiaiphap.net/main/images/search-module-not-work.gif
Thanks, Duy
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
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)
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.
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?
in the layout.master file of your skin on <portal:ScriptLoader add the property LanguageCode="vi"
Maybe that will solve it.
Thanks Joe, It's still not work
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?
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.
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.
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.