175 posts
  • Has been a member for 4-5 years
  • Sold between 50 000 and 100 000 dollars
  • Exclusive Author
  • Europe
  • Referred between 100 and 199 users
  • Bought between 10 and 49 items
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