Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search returning zero results, blog results or case sensitive results. #1501

Closed
cestrian77 opened this issue May 21, 2018 · 7 comments
Closed

Comments

@cestrian77
Copy link

Steps to Reproduce

  1. Carry out keyword search in WP Job Manager

What I Expected

Job results matching the keyword search

What Happened Instead

I'm getting mixed results, depending on the site/installation I try this with. On some sites I'm getting zero results. On others, I'm getting blog results returned. On some I'm seeing the search only working with case sensitive queries.

WordPress / WP Job Manager Version

4.9.6

Browser / OS Version

Windows 10 Pro / Google Chrome 66.0.3359.181

Screenshot / Video

This is what I see if I search for "science" - all lowercase.
no-results

Then if I search for "Science" with a capital 'S'... I get results returned.
results

Context / Source

@cestrian77
Copy link
Author

If I leave the page open, I subsequently get a POST error message in the Console that looks like:

jquery.js?ver=1.12.4:4 POST https://www.DOMAIN.co.uk/wp-admin/admin-ajax.php 0 ()
send @ jquery.js?ver=1.12.4:4
ajax @ jquery.js?ver=1.12.4:4
call_ajax @ job_count_ajax.js?ver=4.9.6:21

Not sure if this helps?

@cestrian77
Copy link
Author

And an admin-ajax.php (failed) error message too:

admin-ajax

@richardmtl
Copy link

Hi! GitHub Issues is for reporting core WPJM bugs and feature requests. For support and feature requests for our extensions, please visit https://wpjobmanager.com/support. For support for the core plugin, post in the forum: https://wordpress.org/support/plugin/wp-job-manager/

As a first step to troubleshooting this, though, I'd suggest switching to a default theme like Twenty Seventeen, to see if your theme is getting in the way.

@cestrian77
Copy link
Author

Thanks. But I've switched to a default theme Twenty Seventeen, deactivated all plugins apart from WP Job Manager and I'm still seeing the weird search behaviour - which is why I thought it was a bug that needed reporting. Please see: https://www.rpmtech.co.uk/jobs/ - and try searching for "Recruitment" vs "recruitment".

@richardmtl
Copy link

@cestrian77 We consider a bug to usually be something wrong with the code; until we've determined that this is the case, let's take this to the forum or our support form (if you have a paid add-on), shall we? Thanks!

@cestrian77
Copy link
Author

Panic over! I've identified that we had some custom script in our child theme's functions.php aimed at narrowing search to posts only (ie excluding pages). This used to work, but I guess a recent update has now led to it conflicting. Removing the code instantly fixes the issue.

@richardmtl
Copy link

Thanks for letting me know! For future cross-referencing, you opened this thread: https://wordpress.org/support/topic/wp-job-manager-search-not-working-properly/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants