Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author wpdreams

    (@wpdreams)

    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 🙂

    Thread Starter Shawana

    (@shanu)

    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!

    Plugin Author wpdreams

    (@wpdreams)

    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!

    Thread Starter Shawana

    (@shanu)

    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

    Plugin Author wpdreams

    (@wpdreams)

    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.

    Thread Starter Shawana

    (@shanu)

    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.

    Thread Starter Shawana

    (@shanu)

    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)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘I want to buy pro but the wheel keeps rolling and no results in lite’ is closed to new replies.