How to debug function file causing white screen

It sounds like there is a fatal error occurring, but you aren’t displaying errors on the page.

To enable debugging you should add the following code to your wp-config.php file.

define( 'WP_DEBUG', true );

*note: if your wp-config.php file already contains an entry for the above, make sure it’s set to true.

Once you know what is causing the error you can go about trying to fix it.