Forums › Forums › Search & Filter Pro › 2.0.2 upgrade: results found, but not displayed
Tagged: 2.0.2, results not found
- This topic has 12 replies, 2 voices, and was last updated 9 years ago by Anonymous.
-
Anonymous(Private) November 1, 2015 at 8:43 pm #28675
I read the release notes on your website before upgrading.
– upgraded WP and other plugins, confirmed website and SF forms/results pages working
– updated search-filter-pro to 2.0.2
– rebuilt cache for existing search forms successfully
– opened SF forms, saved
– recreated one of the forms from scratch.
The results pages indicate results are found (gives correct count), but no results displayed. Outcome is exactly the same with the pre-existing forms and the form I created from scratch. Here’s a link to the search result page that uses the newly created SF form (https://www.hwcontractors.com/staff)Please help.
Thanks,
Tim StevensRoss Moderator(Private) November 3, 2015 at 12:49 pm #28821Hi Tim
I’m getting a
Your access to this site has been limited
message (from WordFence).Thanks
Ross Moderator(Private) November 5, 2015 at 8:31 am #28974Hey Tim
So the issue is you can’t actually see the results, but you get the text
Found 14 Results
etc?Have you tried customising the template, because it looks like the loop, that display the results has been removed?
Thanks
Ross Moderator(Private) November 5, 2015 at 8:34 am #28975Also I can see for some reason that the S&F Javascript is not being loaded – in the source code of your page I should be able to find a reference to
search-filter-build.js
But thats not there :/
I think once this is in your source it should work.
To force include the scripts simply add the code from this post:
Thanks 🙂
Anonymous(Private) November 6, 2015 at 4:37 am #29028Ross, I checked and found /wp-content/plugins/search-filter-pro/public/assets/js/search-filter-build.js
I also tried adding
wp_register_script( 'search-filter-plugin-build', home_url("/wp-content/plugins/search-filter-pro/search-filter-build.js"), array('jquery', 'jquery-ui-datepicker'), '1.4.3' ); wp_localize_script('search-filter-plugin-build', 'SF_LDATA', array( 'ajax_url' => admin_url( 'admin-ajax.php' ), 'home_url' => (home_url('/')), 'sfid' => '' )); wp_register_script( 'search-filter-chosen-script', home_url("/wp-content/plugins/search-filter-pro/chosen.jquery.min.js"), array( 'jquery' ), '1.4.3' ); wp_enqueue_script( 'jquery-ui-datepicker' ); wp_enqueue_script( 'search-filter-plugin-build' ); wp_enqueue_script( 'search-filter-chosen-script' );
to functions.php, updated the file, cleared my cache, reloaded the page, and I’m still not getting any results. Everything worked fine before I upgraded. FWIW, I (previously) created custom results files for my 2 SF pages, and they were working until the upgrade to 2.0.2
-
AuthorPosts