• Resolved dainiuv

    (@dainiuv)


    Hello,

    Before you helped me with search for this page. But after update search not working at all. All Relevanssi custom functions is still there. Can you help me?

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Do you have an index? Is everything on the indexing page still correct? Can you show me screen shots of your indexing and searching setting pages, please?

    Thread Starter dainiuv

    (@dainiuv)

    Hello Mikko,

    Yes, I have and index. I think all the settings are correct. Here are screen shots:
    https://tinypic.com/r/jkwvh3/9
    https://tinypic.com/r/293fv2d/9
    https://tinypic.com/r/hspb43/9
    https://tinypic.com/r/2w6xiz4/9
    https://tinypic.com/r/20t3r5j/9

    Plugin Author Mikko Saari

    (@msaari)

    Try setting set post content weight to 1. It’s currently empty. Does that solve the problem?

    Thread Starter dainiuv

    (@dainiuv)

    I have set content weight to 1, then rebuild index. But this doesn’t worked.

    Plugin Author Mikko Saari

    (@msaari)

    Do the first two steps here: https://www.relevanssi.com/knowledge-base/debugging-relevanssi-searching-issues/ and let me know what they print out.

    Thread Starter dainiuv

    (@dainiuv)

    First:
    array(67) { [“s”]=> string(5) “darbo” [“posts_per_page”]=> int(15) [“error”]=> string(0) “” [“m”]=> string(0) “” [“p”]=> int(0) [“post_parent”]=> string(0) “” [“subpost”]=> string(0) “” [“subpost_id”]=> string(0) “” [“attachment”]=> string(0) “” [“attachment_id”]=> int(0) [“name”]=> string(0) “” [“static”]=> string(0) “” [“pagename”]=> string(0) “” [“page_id”]=> int(0) [“second”]=> string(0) “” [“minute”]=> string(0) “” [“hour”]=> string(0) “” [“day”]=> int(0) [“monthnum”]=> int(0) [“year”]=> int(0) [“w”]=> int(0) [“category_name”]=> string(0) “” [“tag”]=> string(0) “” [“cat”]=> string(0) “” [“tag_id”]=> string(0) “” [“author”]=> string(0) “” [“author_name”]=> string(0) “” [“feed”]=> string(0) “” [“tb”]=> string(0) “” [“paged”]=> int(0) [“meta_key”]=> string(0) “” [“meta_value”]=> string(0) “” [“preview”]=> string(0) “” [“sentence”]=> string(0) “” [“title”]=> string(0) “” [“fields”]=> string(0) “” [“menu_order”]=> string(0) “” [“embed”]=> string(0) “” [“category__in”]=> array(0) { } [“category__not_in”]=> array(0) { } [“category__and”]=> array(0) { } [“post__in”]=> array(0) { } [“post__not_in”]=> array(0) { } [“post_name__in”]=> array(0) { } [“tag__in”]=> array(0) { } [“tag__not_in”]=> array(0) { } [“tag__and”]=> array(0) { } [“tag_slug__in”]=> array(0) { } [“tag_slug__and”]=> array(0) { } [“post_parent__in”]=> array(0) { } [“post_parent__not_in”]=> array(0) { } [“author__in”]=> array(0) { } [“author__not_in”]=> array(0) { } [“ignore_sticky_posts”]=> bool(false) [“suppress_filters”]=> bool(false) [“cache_results”]=> bool(true) [“update_post_term_cache”]=> bool(true) [“lazy_load_term_meta”]=> bool(true) [“update_post_meta_cache”]=> bool(true) [“post_type”]=> string(3) “any” [“nopaging”]=> bool(false) [“comments_per_page”]=> string(2) “50” [“no_found_rows”]=> bool(false) [“search_terms_count”]=> int(1) [“search_terms”]=> array(1) { [0]=> string(5) “darbo” } [“search_orderby_title”]=> array(1) { [0]=> string(166) “ggae_posts.post_title LIKE ‘{a9e2ba9fa8553461832366d204a4a6cc9ac50231816bd187a8ca3d13a8e7be5a}darbo{a9e2ba9fa8553461832366d204a4a6cc9ac50231816bd187a8ca3d13a8e7be5a}'” } [“order”]=> string(4) “DESC” }

    Second:
    string(405) “SELECT DISTINCT(relevanssi.doc), relevanssi.*, relevanssi.title * 5 + relevanssi.content * 1 + relevanssi.comment * 0.75 + relevanssi.tag * 0.75 + relevanssi.link * 0 + relevanssi.author + relevanssi.category * 0.75 + relevanssi.excerpt + relevanssi.taxonomy + relevanssi.customfield + relevanssi.mysqlcolumn AS tf FROM ggae_relevanssi AS relevanssi WHERE relevanssi.term = ‘darbo’ “

    Plugin Author Mikko Saari

    (@msaari)

    Nothing wrong there. Please check the other two as well.

    Thread Starter dainiuv

    (@dainiuv)

    Third:
    Parse error: syntax error, unexpected ‘$results’ (T_VARIABLE), expecting ‘,’ or ‘)’ in /home/nakatt/domains/nav-skatt.lt/public_html/wp-content/themes/nav-skatt/functions.php on line 193

    I have used this function:
    add_filter( ‘relevanssi_results’, ‘rlv_check_results’ );
    function rlv_check_results( $results ) {
    var_dump(?$results );
    exit();
    }

    Fourth:
    array(0) { }

    Plugin Author Mikko Saari

    (@msaari)

    This is a problem with the Simple Membership support. It’s being way too strict and blocking everything. For a fix, replace the relevanssi_default_post_ok() function in the file / wp-content/plugins/relevanssi/lib/common.php with this: https://gist.github.com/msaari/e067346fc1af91dfac90ce9e6c8d46b1

    That should fix the search.

    Thread Starter dainiuv

    (@dainiuv)

    Thank you, Mikko!

    Now it works well, as it worked before.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Search not working after updates’ is closed to new replies.