Forum Replies Created
-
AuthorPosts
-
DavidParticipant@eversatile
- 4 Topics
- 10 Posts
I found the issue.
I block certain characters in urls on my site, which helps deter XSS attacks.
That function is preventing the age range. Though, all the fields work fine in the search, and none of the characters that are being blocked are present in the url when searching by age. So I’d have to look into it more to figure out why it’s blocking the search.September 6, 2022 at 12:15 #42497DavidParticipant@eversatile- 4 Topics
- 10 Posts
Those do not explain the same issue that I am experiencing.
I set the profile field as recommended.
Then I add the field to the profile search settings with the search mode set to age range.
When I execute a search, the page just refreshes and the query is not executed. Though, the url shows that it worked. /?bp_member_type=&field_173_age_rangemin=23&field_173_age_rangemax=26&bps_form=1374&bps_form_page=%2Fmembers%2FThe ending results page still just shows the full member list. There are no errors in the logs.
September 5, 2022 at 21:58 #42478DavidParticipant@eversatile- 4 Topics
- 10 Posts
I kind of solved it. Don’t quite know what the issue is though.
Changing the name of the child theme folder fixes the problem. Even when uploading a fresh child theme, the problem is there until I change the name of the folder.July 7, 2022 at 18:34 #41482DavidParticipant@eversatile- 4 Topics
- 10 Posts
I operate my own server so there is no host for me to contact. I will try to look further into it to see if I can find a solution.
Another piece of info is that I first installed on PHP 8.0, after finding out that some features were not working with that PHP version, I put it on PHP 7.4.June 22, 2022 at 15:17 #41272DavidParticipant@eversatile- 4 Topics
- 10 Posts
I deactivated all plugins except for the global search and used a default theme, same results.
I also received a error:AH01071: Got error 'PHP message: PHP Warning: mysqli_query(): (HY000/3685): Illegal argument to a regular expression. in /var/directory/wp-includes/wp-db.php on line 2169PHP message: WordPress database error Illegal argument to a regular expression. for query ( SELECT DISTINCT id , 'posts' as type, post_title LIKE '%search%' AS relevance, post_date as entry_date FROM prefix_posts p WHERE 1=1 AND ( p.post_title LIKE '%search%' OR p.post_content LIKE '%search%' ) AND p.post_type = 'post' AND p.post_status = 'publish' ) UNION ( SELECT DISTINCT u.id, 'members' as type, u.display_name LIKE '%search%' AS relevance, a.date_recorded as entry_date FROM prefix_users u JOIN prefix_bp_activity a ON a.user_id=u.id WHERE 1=1 AND u.id IN ( SELECT ID FROM prefix_users WHERE ( display_name LIKE '%zenith%' OR ID IN ( SELECT user_id FROM prefix_usermeta WHERE meta_value LIKE '%search%' ) ) ) OR u.id IN ( SELECT user_id FROM prefix_bp_xprofile_data WHERE ( value LIKE '%search%' AND field_id IN ( 0,53) ) OR ( value REGEXP '[[:<:]]search[[:>:]]' AND field_id IN ( 0,48) ) ) AND a.component = 'members' AND a.type = 'last_activity' GROUP BY u.id ) UNION ( SELECT DISTIN...PHP message: PHP Warning: mysqli_query(): (HY000/3685): Illegal argument to a regular expression. in /var/directory/wp-includes/wp-db.php on line 2169PHP message: WordPress database error Illegal argument to a regular expression. for query SELECT COUNT( DISTINCT u.id ) FROM prefix_users u JOIN prefix_bp_activity a ON a.user_id=u.id WHERE 1=1 AND u.id IN ( SELECT ID FROM prefix_users WHERE ( display_name LIKE '%search%' OR ID IN ( SELECT user_id FROM prefix_usermeta WHERE meta_value LIKE '%search%' ) ) ) OR u.id IN ( SELECT user_id FROM prefix_bp_xprofile_data WHERE ( value LIKE '%search%' AND field_id IN ( 0,53) ) OR ( value REGEXP '[[:<:]]search[[:>:]]' AND field_id IN ( 0,48) ) ) AND a.component = 'members' AND a.type = 'last_activity' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/armadon/page.php'), get_template_part, locate_template, load_template, require('/themes/armadon/template-parts/content-page.php'), do_action('armadon_page'), WP_Hook->do_action, WP_Hook->apply_filters, armadon_grimlock_page, do_action('grimlock_page'), WP_Hook->do_action, WP_Hook->apply_filters, Gr...', referer: https://site.com/ AH01071: Got error 'PHP message: PHP Warning: mysqli_query(): (HY000/3685): Illegal argument to a regular expression. in /var/directory/wp-includes/wp-db.php on line 2169PHP message: WordPress database error Illegal argument to a regular expression. for query ( SELECT DISTINCT id , 'posts' as type, post_title LIKE '%search%' AS relevance, post_date as entry_date FROM prefix_posts p WHERE 1=1 AND ( p.post_title LIKE '%search%' OR p.post_content LIKE '%search%' ) AND p.post_type = 'post' AND p.post_status = 'publish' ) UNION ( SELECT DISTINCT u.id, 'members' as type, u.display_name LIKE '%search%' AS relevance, a.date_recorded as entry_date FROM prefix_users u JOIN prefix_bp_activity a ON a.user_id=u.id WHERE 1=1 AND u.id IN ( SELECT ID FROM prefix_users WHERE ( display_name LIKE '%search%' OR ID IN ( SELECT user_id FROM prefix_usermeta WHERE meta_value LIKE '%search%' ) ) ) OR u.id IN ( SELECT user_id FROM prefix_bp_xprofile_data WHERE ( value LIKE '%search%' AND field_id IN ( 0,53) ) OR ( value REGEXP '[[:<:]]search[[:>:]]' AND field_id IN ( 0,48) ) ) AND a.component = 'members' AND a.type = 'last_activity' GROUP BY u.id ) UNION ( SELECT DISTIN...', referer: https://site.com/
June 21, 2022 at 20:07 #41257 -
AuthorPosts