• Resolved Vahan

    (@vahan889)


    Hi Team,

    I checked my log file and found lots of this lines:

    PHP Notice: Function is_tax was called <strong>incorrectly</strong>.

    I checked the backtrace and found that is comes from here:

    \Searchanise\SmartWoocommerceSearch\FulltextSearch::postsPreQuery

    When it calls to is_product_category and it prints the log info.

    I had similar issue with is_search function and you fixed it, thanks. And now this one is come. Please check it also.
    WordPress: 6.3.1
    PHP: 8.0.30

    Thanks in advance,
    Vahan

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Vahan

    (@vahan889)

    FYI, here is backtrace:

    Array
    (
    [0] => Array
        (
            [file] => [...]/public_html/wp-includes/query.php
            [line] => 341
        )
    [1] => Array
        (
            [file] => [...]/public_html/wp-content/plugins/woocommerce/includes/wc-conditional-functions.php
            [line] => 59
        )
    
    [2] => Array
        (
            [file] => [...]/public_html/wp-content/plugins/smart-search-for-woocommerce/includes/class-search.php
            [line] => 409
        )
    
    [3] => Array
        (
            [file] => [...]/public_html/wp-includes/class-wp-hook.php
            [line] => 310
        )
    
    [4] => Array
        (
            [file] => [...]/public_html/wp-includes/plugin.php
            [line] => 256
        )
    
    [5] => Array
        (
            [file] => [...]/public_html/wp-includes/class-wp-query.php
            [line] => 3147
        )
    
    [6] => Array
        (
            [file] => [...]/public_html/wp-includes/class-wp-query.php
            [line] => 3800
        )
    
    [7] => Array
        (
            [file] => [...]/public_html/wp-includes/post.php
            [line] => 2441
        )
    
    [8] => Array
        (
            [file] => [...]/public_html/wp-content/plugins/woocommerce-order-status-manager/src/wc-order-status-manager-functions.php
            [line] => 53
        )
    
    [9] => Array
        (
            [file] => [...]/public_html/wp-content/plugins/woocommerce-order-status-manager/class-wc-order-status-manager.php
            [line] => 259
        )
    
    [10] => Array
        (
            [file] => [...]/public_html/wp-includes/class-wp-hook.php
            [line] => 310
        )
    
    [11] => Array
        (
            [file] => [...]/public_html/wp-includes/plugin.php
            [line] => 205
        )
    
    [12] => Array
        (
            [file] => [...]/public_html/wp-content/plugins/woocommerce/includes/wc-order-functions.php
            [line] => 106
        )
    
    [13] => Array
        (
            [file] => [...]/public_html/wp-content/plugins/woocommerce-follow-up-emails/includes/addons/twitter/class-fue-addon-twitter-tweeter.php
            [line] => 82
        )
    
    [14] => Array
        (
            [file] => [...]/public_html/wp-content/plugins/woocommerce-follow-up-emails/includes/addons/twitter/class-fue-addon-twitter-scheduler.php
            [line] => 165
        )
    
    [15] => Array
        (
            [file] => [...]/public_html/wp-includes/class-wp-hook.php
            [line] => 310
        )
    
    [16] => Array
        (
            [file] => [...]/public_html/wp-includes/class-wp-hook.php
            [line] => 334
        )
    
    [17] => Array
        (
            [file] => [...]/public_html/wp-includes/plugin.php
            [line] => 517
        )
    
    [18] => Array
        (
            [file] => [...]/public_html/wp-settings.php
            [line] => 495
        )
    
    [19] => Array
        (
            [file] => [...]/public_html/wp-config.php
            [line] => 94
        )
    
    [20] => Array
        (
            [file] => [...]/public_html/wp-load.php
            [line] => 50
        )
    
    [21] => Array
        (
            [file] => [...]/public_html/wp-blog-header.php
            [line] => 13
        )
    
    [22] => Array
        (
            [file] => [...]/public_html/index.php
            [line] => 17
        )
    )
    Plugin Author Searchanise

    (@searchanise)

    Hi Vahan,

    Thank you for explaining the issue in detail. We’re sorry to see you faced it!

    Please try to replace the following part in the code:

    is_product_category()

    with this one:

    $wp_query->is_product_category()

    If it doesn’t help, please contact us at [email protected] so we could look into your problem with our developers. Thank you.

    Thread Starter Vahan

    (@vahan889)

    It works perfect! Thank you.

    Plugin Author Searchanise

    (@searchanise)

    Great to see it!

    Feel free to let us know if any new questions arise.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Notice: Function is_tax was called incorrectly.’ is closed to new replies.