Wordpress untraceable white screen of death on migration
So it's safe to say that the bug is inside widget-price_filter.php right?
Yes, totally (and you followed the correct way of debugging).
The problem is when I add a die at the beginning of widget-price_filter.php, it does not print it out. It's like the line where the error occurred is nowhere.
If (as you say you've done) you have added die('HELLO');
right at the top (after the <?php
) and it does not appear - this means there is one of two problems
- File not found
- A syntax error in that page.
You can solve in 1 of three ways:
- Check the php error logs (if you have access)
Before you call the "include_one" (in init.php) add:
error_reporting(E_ALL);ini_set('display_errors', 'on');
Completely empty the code (just leaving the
<?php die('HELLO'); ?>
, check that appears and then add code in bit by bit.
If you got route 2, remember to take it out when you've got it working. Very important!
+1 for actually taking time to try to solve it yourself before posting (with the echo and die). So I hope that helps with the rest.