When users click search without a keyword getting a critical error

Home Forums Product Support Forums Ajax Search Pro for WordPress Support When users click search without a keyword getting a critical error

This topic contains 2 replies, has 2 voices, and was last updated by felix billington felix billington 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #42268
    felix billington
    felix billington
    Participant

    Hi there,

    I’ve started using the plugin on my site and it works great but when users don’t enter a keyword and just hit enter or click the magnifier icon then it goes to this URL: https://magellanmotorcycletours.co.uk/?s=&asp_active=1&p_asid=1&p_asp_data=1&filters_initial=1&filters_changed=0&qtranslate_lang=0&current_page_id=20755

    And they get a wordpress error page:

    “There has been a critical error on this website.

    Learn more about troubleshooting WordPress.”

    Any ideas what’s causing this and how I can rectify it?

    #42269
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Thanks for the details it helps a lot!

    There seems to be a mod_rewrite or URL rewrite rule applied for the search results page, and it tries to redirect the search results base from the default ?s=phrase to /search/phrase/ URL, but it does not seem to work properly.
    If I try to visit the search results page simply by going to https://magellanmotorcycletours.co.uk/?s=test
    ..then I get the same error. For other phrases (for example: https://magellanmotorcycletours.co.uk/?s=phrase ) redirects to the modified URL but there is still a 404 error reported.

    Make sure to check this custom URL rewrite/mod_rewrite .htaccess rule, it does not seem to work okay, it is very likely the cause of the issues.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #42282
    felix billington
    felix billington
    Participant

    Thanks for the prompt response Ernest, I’ll take a look and see if I can find whats doing the URL modifications 👍

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

You must be logged in to reply to this topic.