• Resolved pumster3

    (@pumster3)


    Reindex table is not done like in the picture. It stays at 0%. And even if you search for the title, it doesn’t work.

    Another problem is that when you search on the English page, only products on the English page should be searched, but products on the Korean page are also searched.

    How can I solve this?

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hi,

    So, as I understand, that index progress counter always stays on zero.

    Please try the following – enable debug mode as described in this article and then check for any errors inside your debug.log file. Write to me about any that you find there.

    Regards

    Thread Starter pumster3

    (@pumster3)

    @mihail-barinov

    I ran it as is, but didn’t see any errors. knife
    attach the photo

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'your_function' not found or invalid function name in /pumster3/www/wp-includes/class-wp-hook.php on line 308

    I will write down the error details.

    Plugin Author ILLID

    (@mihail-barinov)

    I see that this error message is related to some custom function with the name ‘your_function’. Have you added this function via some custom code snippet?

    Thread Starter pumster3

    (@pumster3)

    @mihail-barinov

    I am inserting the code like this.
    Having trouble?

    <section class="top">
    	<div class="tex-area">
    		<p class="title show-on-scroll fademove">Air-<strong>driven.</strong></p>
    		<div id="pro-search" class="show-on-scroll fademove">		
    [aws_search_form]
    		</div>
    [xyz-ips snippet="mouse-motion"]
    	</div>
    </section>
    Plugin Author ILLID

    (@mihail-barinov)

    Please tell me – how do you add this code? Via block editor or maybe inside any of your theme php files?

    Thread Starter pumster3

    (@pumster3)

    @mihail-barinov

    Created using Elementor plugin.

    And currently, when you search for the word ‘gb’ on the English page, products from the Korean page appear in the results. English products do not appear in the results.

    Plugin Author ILLID

    (@mihail-barinov)

    Looks like it is the legit way of adding such custom markup with the Elementor html widget. Perhaps that ‘your_function’ is added somewhere else – for example inside child theme files.

    About language issues – please open the plugin settings page and click the ‘Reindex table’ button. Wait till the index is finished and then check search results one more time.

    Thread Starter pumster3

    (@pumster3)

    @mihail-barinov

    There is no change even if you reindex the table. Would it be better to delete the plugin and reinstall it?

    Plugin Author ILLID

    (@mihail-barinov)

    I don’t think that plugin re-installing will solve the problem. Please try to use the following code snippet:

    add_filter( 'aws_search_query_array', 'my_aws_search_query_array' );
    function my_aws_search_query_array( $query ) {    
        if ( isset( $query['lang'] ) && $query['lang'] ) {        
            $query['lang'] = str_replace( "OR lang = ''", "", $query['lang'] );   
        }    
        return $query;
    }

    You need to add it somewhere outside the plugins folder. For example, inside functions.php file of your theme or use some plugin for adding code snippets.

    Also, after adding this code you will need to go to the plugin settings page and click the ‘Clear cache’ button.

    Thread Starter pumster3

    (@pumster3)

    @mihail-barinov

    hello
    I inserted the code you provided into themes – go-child – functions.php and cleared the cache.

    functions.php

    As a result, when you search for the word ‘GB’ on the English page, results appear as shown in the image below. Did I configure it incorrectly? Is there another way? Please review.

    English page search results

    The image below shows the plugin settings.

    General tab setting
    Performance tab setting

    The image below shows the Korean and English product page settings.

    Korean page product settings
    Please help me solve it

    Plugin Author ILLID

    (@mihail-barinov)

    Can you write to me directly to [email protected] ? I need some additional details in order to help you.

    Thread Starter pumster3

    (@pumster3)

    @mihail-barinov

    I left an inquiry.
    Is it possible to check?

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Reindex table not working’ is closed to new replies.