Search is broken
This support request was posted in Flatbase by Rudy Krol
- Rudy Krol May 9, 2014 at 9:52 am
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/docsI 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=testHere is the link to my website for more details : http://goo.gl/mOYqA5
Am I doing something wrong?
Juanfra Aldasoro May 9, 2014 at 2:44 pmHello 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.Rudy Krol May 9, 2014 at 3:02 pmThank 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
Juanfra Aldasoro May 9, 2014 at 3:04 pmHi 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.
You must be logged in to reply to this topic.