• Use Plugin Version Search Everything 8.1.9

    If the query string is empty, the following error is returned

    $searchQuery = $this->se_search_default();
    se_search_default returns string ‘()’

    if ( $searchQuery != '' ) {
    	// lets use _OUR_ query instead of WP's, as we have posts already included in our query as well(assuming it's not empty which we check for)
    	$where = " AND ((" . $searchQuery . ")) ";
    }

    This process is true

    WordPress データベースエラー: [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘))) AND wp_posts.post_type IN (‘post’, ‘page’, ‘attachment’) AND (wp_posts.post’ at line 1]
    SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND ((())) AND wp_posts.post_type IN (‘post’, ‘page’, ‘attachment’) AND (wp_posts.post_status = ‘publish’ OR wp_posts.post_author = 1 AND wp_posts.post_status = ‘private’) ORDER BY wp_posts.post_date DESC LIMIT 0, 10

Viewing 1 replies (of 1 total)
  • Plugin Author Sovrn

    (@sovrn)

    Hi @andante0727,

    Thank you for reaching out to sovrn support with your inquiry, we are happy to help!

    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 to you directly 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 1 replies (of 1 total)
  • The topic ‘Error when keyword is empty’ is closed to new replies.