Hi!
It looks like the ajax request hangs somwehere. It returns with a status code of 200, which means that apparently everything went ok.
Try to turn on the error reporting (debug mode) in the wp-config.php file. I believe that some kind of error message should be visible after that in the ajax response.
It’s probably a minor issue, might not be related to the plugin, but it’s a bit hard to tell 🙂
Thank you for the response… I have done that as shown here:
http://www.hostknox.com/clients/knowledgebase/482/How-to-enable-PHP-error-reporting-in-WordPress.html
what is to be done now… I am new to wordpress.
I tried to deactivate the woocommerce-all-currencies plugin and use the search but it does not make any difference.
http://bustanperfumes.com/test/
Please help.
Thanks!
Hi!
Good news. The error is coming from the theme:
<b>Fatal error</b>: Cannot redeclare bfi_thumb() (previously declared in /home/bustan/public_html/test/wp-content/plugins/ajax-search-lite/includes/bfi_thumb.php:46) in <b>/home/bustan/public_html/test/wp-content/themes/cb-cosmetico/BFI_Thumb.php</b> on line <b>37</b><br />
The BFI_Thumb function is created once in the search plugin, and again from the theme – and it causes the upper mentioned error.
Based on the error message, open up the public_html/test/wp-content/themes/cb-cosmetico/BFI_Thumb.php file and go to line 37, where I suppose you will see something like this:
function bfi_thumb( $url, $params = array(), $single = true ) {
/* Some lines of code is here .. */
}
Wrap that function declaration around a conditional check statement, like this:
if ( ! function_exists( 'bfi_thumb' ) ) {
function bfi_thumb( $url, $params = array(), $single = true ) {
/* Some lines of code is here .. */
}
}
This will prevent declaring the function again. Hopefully this is the only error in the theme code. Let me know!
I edited the code to this:
————————
if ( ! function_exists( ‘bfi_thumb’ ) ) {
function bfi_thumb($url, $params = array(), $single = true) {
return BFI_Thumb::thumb($url, $params, $single);
}
}
———————–
but no improvements! 🙁
any other suggestion?
Thanks again for your help
Okays. It appears that the theme is using an outdated version of the BFI_thumb library. Would you please try to copy the contents of the
public_html/test/wp-content/plugins/ajax-search-lite/includes/bfi_thumb.php
file over to the:
public_html/test/wp-content/themes/cb-cosmetico/BFI_Thumb.php
file? Don’t forget to create a backup of it first, just in case. I’m not sure if that helps, but let’s hope so.
did as you said! …no luck!
If I type “Aramis” the wheel rotates and then a black circle with x appears – but if I type ‘wish’ it still keeps rotating.
ok… it’s working but not optimum!
the above problem is only in the top bar search – but on the search page it works… somewhat…
It takes too long to show the results + it does not show results for all words like it shows no results for “wish” (we have a perfume WISH Chopard)