I just had a problem with a client who had a lot of plugins installed and when my theme was activated, only a white screen appeared both in admin and frontend. I figured out that one of the plugins had the same function name what I used in the theme.
So…
Tip #1: always create your PHP functions with an own prefix like this:
function my_custom_dashboard_themeprince(){ ... }
Tip #2: For debugging errors like this in WP, add the following lines to wp-config.php:
define(‘WP_DEBUG’, true); @ini_set(‘display_errors’,’On’);
Deactivate all plugins, activate the theme and start activating plugins 1-by-1 untill the error appears.
