Search throws PHP error
-
Wordpress 5.8.2, PHP 7.4.27, Ivory Search 5.2.
When we do a search on the homepage of our site, no results are returned.
This was working (at some point in the past, but we just noticed it is now broken and not working today.).
When I look at the PHP error logs, this is what is present:
[23-Dec-2021 00:23:47 UTC] **************************** Trace start **************************** [0]file: Z:\breckproducts.com\www\wp-content\plugins\add-search-to-menu-premium\includes\class-is-debug.php; line: 98; function: debug_trace; class: IS_Debug [1]function: process_error_backtrace; class: IS_Debug [2]file: Z:\breckproducts.com\www\wp-includes\wp-db.php; line: 2056; function: mysqli_query [3]file: ZE:\breckproducts.com\www\wp-includes\wp-db.php; line: 1945; function: _do_query; class: wpdb [4]file: Z:\breckproducts.com\www\wp-includes\wp-db.php; line: 2657; function: query; class: wpdb [5]file: Z:\breckproducts.com\www\wp-includes\class-wp-query.php; line: 3024; function: get_col; class: wpdb [6]file: Z:\breckproducts.com\www\wp-includes\class-wp-query.php; line: 3465; function: get_posts; class: WP_Query [7]file: Z:\breckproducts.com\www\wp-includes\class-wp.php; line: 629; function: query; class: WP_Query [8]file: Z:\breckproducts.com\www\wp-includes\class-wp.php; line: 752; function: query_posts; class: WP [9]file: Z:\breckproducts.com\www\wp-includes\functions.php; line: 1291; function: main; class: WP [10]file: Z:\breckproducts.com\www\wp-blog-header.php; line: 16; function: wp [11]file: Z:\breckproducts.com\www\index.php; line: 17; function: require [23-Dec-2021 00:23:47 UTC] WordPress database error Illegal argument to a regular expression. for query SELECT SQL_CALC_FOUND_ROWS DISTINCT bp_posts.ID FROM bp_posts LEFT JOIN bp_postmeta pm ON (bp_posts.ID = pm.post_id) WHERE 1=1 AND ( ((bp_posts.post_title REGEXP '([[:<:]])paper|paper([[:>:]])') OR (bp_posts.post_content REGEXP '([[:<:]])paper|paper([[:>:]])') OR (bp_posts.post_excerpt REGEXP '([[:<:]])paper|paper([[:>:]])') OR (pm.meta_key = '_sku' AND pm.meta_value REGEXP '([[:<:]])paper|paper([[:>:]])'))) AND bp_posts.post_type IN ('post', 'page', 'attachment', 'e-landing-page', 'viwec_template', 'product', 'product_variation') AND ((bp_posts.post_status = 'publish' OR bp_posts.post_status = 'inherit')) ORDER BY bp_posts.post_title LIKE '%paper%' DESC, bp_posts.post_date DESC LIMIT 0, 10 made by require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
The page I need help with: [log in to see the link]
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Search throws PHP error’ is closed to new replies.