Support » Plugin: Search Everything » Empty search not working

  • Anda Pop

    (@andapop)


    Hello,

    I have recently updated the Search Everything plugin from to v 8.1.9 and now there are no results returned if the search term is empty (normally all results should be returned).

    The problem, as shown on the page:
    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘))) AND alp_posts.post_type = ‘job’ AND (alp_posts.post_status = ‘publish’ OR alp_’ at line 1]

    SELECT SQL_CALC_FOUND_ROWS alp_posts.ID FROM alp_posts WHERE 1=1 AND ((())) AND alp_posts.post_type = ‘job’ AND (alp_posts.post_status = ‘publish’ OR alp_posts.post_status = ‘acf-disabled’ OR alp_posts.post_status = ‘private’) ORDER BY alp_posts.post_date DESC LIMIT 0, 5

    The only thing that I do custom is hook into pre_get_posts and set the post type.
    But i’ve also tested the default search (no custom action) and it’s the same issue caused by the ((()))

    SELECT SQL_CALC_FOUND_ROWS alp_posts.ID FROM alp_posts WHERE 1=1 AND ((())) AND alp_posts.post_type IN (‘post’, ‘page’, ‘attachment’, ‘job’) AND (alp_posts.post_status = ‘publish’ OR alp_posts.post_status = ‘acf-disabled’ OR alp_posts.post_author = 1 AND alp_posts.post_status = ‘private’) ORDER BY alp_posts.post_date DESC LIMIT 0, 5

    Looking forward to hearing from you.
    Thank you
    Anda

Viewing 4 replies - 1 through 4 (of 4 total)
  • xAndyx

    (@xandyx)

    Im having the same problem with version 8.1.9.

    Almost the same database error near ‘)))
    [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘))) AND wp_posts.post_type = ‘post’ AND (wp_posts.post_status = ‘publish’ OR wp’ at line 3]

    No problems with version 8.1.6 so ive downgraded to that version for the time being.

    ald4r1s

    (@ald4r1s)

    Same story here.

    ald4r1s

    (@ald4r1s)

    @xandyx @andapop

    Another user found a solution for this, it helped me.
    https://wordpress.org/support/topic/search-query-bug-fix/

    Plugin Author Sovrn

    (@sovrn)

    Hello,

    Thank you for your inquiry and we apologize for any inconvenience this may be causing.

    In taking a closer look at your request, we have determined that it calls for technical escalation. A case has been created for our dev and engineering team. As soon as confirmation of a fix has been provided I will reach back out here with further instructions.

    Our Engineering team is currently in the process of building out and updating our suite of plugins in an effort to consolidate our technologies as well as enhance the overall user experience. As such, our most relevant solution may be an upcoming rollout.

    Please feel free to check back in for any new technological updates at any time and do not hesitate to follow up with any further questions.

    Best,
    Sovrn Support

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Empty search not working’ is closed to new replies.