searching for term which does not exist breaks system

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 Ernest Marcinko 2 weeks, 6 days ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #38534
    jarek
    jarek
    Participant

    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.
    #38536
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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 :)


    #38538
    jarek
    jarek
    Participant

    Sorry
    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

    #38546
    jarek
    jarek
    Participant

    Hello

    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 manually

    What do you think?

    Thank you

    #38549
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    All 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 :)


    #38606
    jarek
    jarek
    Participant

    Ernest

    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 sense

    All the best

    #38609
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Okay, 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 :)


Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.