Troubleshooting: Why Your Better Search Replace Dry Run Shows No Results
Content
Many users of the Better Search Replace plugin report a common and frustrating issue: they initiate a dry run, the process appears to complete, but no results or report is displayed. The page may simply refresh, leaving you wondering what happened. This guide will explain the likely causes and walk you through the most effective troubleshooting steps to resolve this problem.
Why Does This Happen?
Based on community reports, the dry run failing to show results is rarely a single-issue problem. Instead, it's typically caused by one of the following underlying conditions:
- PHP Errors or Warnings: A silent PHP error during the process can prevent the results page from rendering correctly, causing a blank screen or a page refresh.
- Plugin or Theme Conflict: Another plugin or your active theme might be causing a JavaScript conflict or a PHP error that interferes with Better Search Replace's ability to display its results.
- Execution Time Limits: On very large databases with hundreds of tables, the script might be hitting your server's maximum execution time (timeout) before it can finalize and display the report.
- Memory Limits: The search process can be memory-intensive. If PHP runs out of allocated memory, it will halt execution, often without showing an error.
Step-by-Step Troubleshooting
Follow these steps to identify and fix the root cause of your missing dry run results.
Step 1: Enable Debugging to Reveal Hidden Errors
The first and most crucial step is to make hidden PHP errors visible by enabling WordPress debugging. This will often reveal the exact error causing the blank page.
- Connect to your website using FTP or your web host's file manager.
- Locate and edit the
wp-config.phpfile in your site's root directory. - Find the line that says:
define( 'WP_DEBUG', false ); - Replace it with the following lines:
define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false); - Save the file and upload it back to your server.
- Run another dry run in Better Search Replace.
This configuration will log any errors to a file called debug.log in your /wp-content/ directory. Check this log file for any errors related to the plugin or PHP limits after running the dry run.
Step 2: Check for Conflicts
A quick way to rule out conflicts with other plugins or your theme is to perform a conflict test.
- Temporarily switch your WordPress theme to a default theme like Twenty Twenty-Four.
- Deactivate all other plugins except for Better Search Replace.
- Run another dry run. If the results now appear, you know a conflict was the cause.
- Reactivate your plugins one by one, testing the dry run after each one, until you find the culprit.
- Finally, switch back to your original theme to test it as well.
Step 3: Adjust Plugin and Server Settings
If the issue is related to resource limits, you can try a few adjustments.
- Reduce Max Page Size: Within the Better Search Replace settings, try reducing the "Max Page Size" value. A lower value processes data in smaller chunks, which can help avoid timeouts and memory issues on large databases.
- Increase PHP Limits: If your debug log shows memory or time limit errors, contact your web host and ask them to temporarily increase your PHP
memory_limit,max_execution_time, andmax_input_varsfor troubleshooting.
Summary
The issue of a dry run completing without showing results is almost always due to a hidden PHP error, a conflict, or a server resource limit. The troubleshooting path recommended by the Better Search Replace team and confirmed by the community is to first enable debugging to reveal errors, then perform a conflict test. For very large sites, adjusting the plugin's page size or consulting with your host about increasing PHP limits may be necessary.
Related Support Threads Support
-
Dry run not workinghttps://wordpress.org/support/topic/dry-run-not-working-2/
-
S&E Dry Run not showing resultshttps://wordpress.org/support/topic/se-dry-run-not-showing-results/
-
Report Doesn’t SHow After Runhttps://wordpress.org/support/topic/report-doesnt-show-after-run/
-
Dry run works, live run doesn’thttps://wordpress.org/support/topic/dry-run-works-live-run-doesnt-2/
-
No Results – 300 Tableshttps://wordpress.org/support/topic/no-results-300-tables/
-
dry run not workinghttps://wordpress.org/support/topic/dry-run-not-working/
-
What columns though?https://wordpress.org/support/topic/what-columns-though/
-
Where are the results?https://wordpress.org/support/topic/where-are-the-results/
-
[FEATURE REQUEST] task ran by cronhttps://wordpress.org/support/topic/feature-request-task-ran-by-cron/
-
Autocheck or Autoselect of test mode is inconvenient and not idealhttps://wordpress.org/support/topic/autocheck-or-autoselect-of-test-mode-is-inconvenient-and-not-ideal/
-
Nothing happenshttps://wordpress.org/support/topic/nothing-happens-149/