• I have a problem with Search widget. I added it to my sidebar and when I search for some random term it works, but when I search with term which is the same string as one of the navigation sites like (“home”, “news”, “nature”), the site just keeps loading and loading and nothing happens, even refresh and anything doesn’t help. Everything I can do is to restart browser and then simply reproduce the problem.

    Is there an option to log or debug what is happening when I click Search ?

    Wordpress version: 5.3.2

Viewing 3 replies - 1 through 3 (of 3 total)
  • If it’s truly a PHP error you can enable PHP/WordPress debugging:

    Debugging in WordPress

    In your wp-config.php file you would enable specifically WP_DEBUG_LOG.

    define( ‘WP_DEBUG’, true );
    define( ‘WP_DEBUG_LOG’, true );

    Then you would run your search, see that it breaks, check your debug.log file in the wp-content folder.

    Thread Starter devtb

    (@devtb)

    Already tried that, there is no logs anywhere

    Difficult to say what the issue is without any specific debug information. Maybe use the WordPress Health Check & Troubleshooting tool to narrow down if the issue lies with the specific theme or a specific plugin. Once narrows down where the issue lies you can reach out to the related developers and hope they have suggestions.

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

The topic ‘WordPress search not working’ is closed to new replies.