197 posts ThemePrince
  • Had an item that became a weekly top seller
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Has been part of the Envato Community for over 5 years
+3 more
ThemePrince
says

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.

by
by
by
by
by
by