Too much results cause error message
-
Hi,
My problem is the following. I have a webshop with about 1600 products. The AJAX search works well, but there’s a problem at the search result page.
1) If I disable the max 100 limit for the search results with a snippet I found here (add_filter(‘aws_page_results’, ‘my_aws_page_results’); function my_aws_page_results( $num ) { return 999;}) then all those searches that have more than 100 results come back with an error message (just the message “There has been a critical error on your website.” + a “Learn more about debugging in WordPress.” link – and I can’t find a debug file for a detailed error).
2) If I leave the limit as is (max 100) then the searches that have more than 100 but less than 200 work well (of course only showing 100 results), but the others cause the above mentioned error (it’s weird, but there’s a search with 381 and another with 730 results that works…).
What could cause this problem and how can it be solved?
Thanks
The topic ‘Too much results cause error message’ is closed to new replies.