Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › searching for term which does not exist breaks system
This topic contains 6 replies, has 2 voices, and was last updated by Ernest Marcinko 8 months ago.
- AuthorPosts
- July 22, 2022 at 12:17 pm #38534
Hello
I checked functionality with other plugins disabled and it makes no difference.
Generally if I search for term which does not exist in my blog, the search freezes, and when trying to search for new term it just endlesly searching never producing result.Please help
Thank you
Attachments:
You must be logged in to view attached files.July 22, 2022 at 1:00 pm #38536Hi,
Thank you for the details, it helps a lot!
I tried to log in with the details, but they don’t work. Can you please also add temporary FTP access? I would like to do a quick debugging session.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
July 23, 2022 at 3:15 pm #38538Sorry
I had the access set up as subscriber instead Admin, now changed to Admin.
Can you please try again?FTP access is not straight forward as I host the site on AWS Lightsail I would need to give you the SSH key for you to log in.
Can you try again please?Thank you
July 25, 2022 at 8:04 am #38546Hello
I think I resolved the issue, it is working now. I think it was because I had ‘Results count per page’ set to auto instead results originally displayed – which was also affecting the pagination.
Now al works fine.By the way I have another question.
Is there a way to force the page to reload after changing the taxonomy term selectors? Its needed for my table of contents to refresh but I have to do it manuallyWhat do you think?
Thank you
July 25, 2022 at 2:11 pm #38549All right, so it was just something with the number of elements.
Well, I think it might be possible, but only via custom code. Try adding this code to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.
add_action('wp_footer', 'asp_footer_custom_script', 999999); function asp_footer_custom_script() { ?> <script> jQuery(function($){ $('.prosettings').one('click', function(){ $('.asp_option_cat').on('click', function(){ setTimeout(function(){ location.href = location.href; }, 100); }); }); }); </script> <?php }
This will trigger a page reload after changing a taxonomy setting.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
July 27, 2022 at 8:32 pm #38606Ernest
Thank you for your help but this didnt work. When I added the above code the taxonomy selector stopped working all together, and the page didnt reload.
I mean when I wanted ‘tick’ or ‘untick’ selection it would just re-set the taxonomy to how it was – i.e. no change, i could not change selection
I hope the above makes senseAll the best
July 28, 2022 at 12:31 pm #38609Okay, try this variation isntead:
add_action('wp_footer', 'asp_footer_custom_script', 999999); function asp_footer_custom_script() { ?> <script> jQuery(function($){ $('.prosettings').one('click', function(){ $('.asp_option_cat').on('click', function(){ $('.asp_m').on('asp_search_end', function(){ location.href = location.href; }); }); }); }); </script> <?php }
This one seems to work okay when I test it via the console. It will wait until the search is finished, then do the refresh.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.