NiceThemesSearch is broken – NiceThemes http://nicethemeswp.com/forums/topic/search-is-broken/feed/ Sun, 20 Apr 2025 10:35:27 +0000 http://bbpress.org/?v=2.5.12-6148 en-US http://nicethemeswp.com/forums/topic/search-is-broken/#post-4084 <![CDATA[Search is broken]]> http://nicethemeswp.com/forums/topic/search-is-broken/#post-4084 Fri, 09 May 2014 09:52:15 +0000 Rudy Krol The search box (live search and search submit) doesn’t work on my WP.
Live search is showing an infinite loading icon when I type something in it and submitting the query show me en empty page.

The only other plugin I use is Polylang for multilingual content, and the language is part of the permalinks.
For example : http://mywebsite.com/fr/docs

I see 404 errors on search requests, so I suppose it is related to my permalinks configuration, but this configuration is exactly what I need.
For example, this AJAX request of the live search results with 404 : http://mywebsite.com/fr/docs/?ajax=true&livesearch=true&s=test

Here is the link to my website for more details : http://goo.gl/mOYqA5

Am I doing something wrong?

]]>
http://nicethemeswp.com/forums/topic/search-is-broken/#post-4085 <![CDATA[Reply To: Search is broken]]> http://nicethemeswp.com/forums/topic/search-is-broken/#post-4085 Fri, 09 May 2014 14:44:13 +0000 Juanfra Aldasoro Hello Rudy,

Thanks for writing. I’ve been through your site and everything is working as it should. For example, this is what I get when using the live search: https://cloudup.com/cqWkuYaKMye

Which browser are you using?

Best,
Juan.

]]>
http://nicethemeswp.com/forums/topic/search-is-broken/#post-4086 <![CDATA[Reply To: Search is broken]]> http://nicethemeswp.com/forums/topic/search-is-broken/#post-4086 Fri, 09 May 2014 15:02:29 +0000 Rudy Krol Thank you for your help Juanfra, I had to find a workaround.

The problem was that all search request were done on http://mywebsite.com/fr/docs (or http://mywebsite.com/en/docs-en for english language).

I just replaced the call to home_url() in header.php and scripts.php by a custom function which retrieve the home page url without /docs (or /docs-en) of the request path.

So now search requests are done on http://mywebsite.com/fr or http://mywebsite.com/en and it works as expected.

I have another limitation for now, it would have been great if it was possible to have multiple languages for the info boxes. This would allow to show different version of the homepage with info boxes depending on language.

Rudy

]]>
http://nicethemeswp.com/forums/topic/search-is-broken/#post-4087 <![CDATA[Reply To: Search is broken]]> http://nicethemeswp.com/forums/topic/search-is-broken/#post-4087 Fri, 09 May 2014 15:04:55 +0000 Juanfra Aldasoro Hi Rudy,

Thanks for writing back. Great news then.

Well, it is possible to have multiple languages in all contents. That depends on the plugin you use to translate your site, and its configuration. Check if the plugin has a section where you can set what contents should be translatable.

Best,
Juan.

]]>