solving problems and error reporting

I think we need a sticky post with how to debug a problem. And maybe some of the ideas in here can lead to a new support plugin for WPMUDEV users.

Lets see where we can start: You have a problem with a plugin or theme, its either not working as expected or not at all so where do you start?

Please provide the following info when reporting the error:

  • your wordpress version
  • your plugin version
  • how does the problem manifest itself?
  • your server and PHP info
  • an excerpt of your error logs
  • a list of all your active plugins

Lets explain one by one:

WordPress version and plugin version are obvious questions as is the one about how does the problem manifest itself. When it comes to server info you can create a file with any name, i.e. info.php and place the following code inside it: <?php phpinfo(); ?> opening this file in the browser i.e. mydomain.tld/info.php gives you all needed info about your server environment.

Optionally you can use a plugin, i.e.

When it comes to dealing with error logs, follow Sarah’s advice: or use a FTP program and check if you have a folder called logs which contains the error logs.

Error logs are vital for properly diagnosing a problem since usually your hosting provider has set up your environment as to not display errors so that you and your site’s visitors are not disturbed by error messages.

If you want to dig deeper and solve problems on your own, these plugins come handy but they do require a way deeper level of knowledge:

Manually tweaking your wp-config.php file for displaying errors and more:

define('WP_DEBUG', true);
define('SCRIPT_DEBUG', true);
define('CONCATENATE_SCRIPTS', false);
/* That's all, stop editing! Happy blogging. */

Examples taken from here: please read carefully for more details!

As to listing all active plugins, there were a few plugins around doing that but the last time I checked, none was reporting on those placed inside the mu-plugins folder.

I placed the list of plugins last as that usually leads to someone giving me the advice to deactivate all of them and try again, which I cannot do on a live environment but nevertheless its sound and logic advice so I listed it here.

When dealing with clients with a support contract, this plugin comes in handy:

And now lets see if we can come up with some ideas for a support and/or reporting for WPMUDEV users.

Obviously you guys don’t want to receive emails for every error we have but how about a plugin that helps when reporting errors and does the following:

  1. user CLICKs to enable debugging to a certain file
  2. User triggers the problem by activating the plugin or running it
  3. user CLICKs to stop debugging and gets a nice report by email he can then submit here in the forum containing the following info

  • – error log output between the two CLICKs by the user
  • – system info taken from <?php phpinfo(); ?>

WoW. That just turned out to be the longest post I’ve ever written :slight_smile: I might publish it on my blog too :wink: Feel free to correct, add to it and make it sticky….


*sarcasm start*I know its a long text and most people won’t read it until the end :slight_frown:*sarcasm end*

  • Philip John
    • DEV MAN’s Apprentice


    That’s an awesome post, nice one – more rep points for you!

    We do have something similar that Siobhan wrote a few weeks ago here:

    I am gonna make your post sticky actually… hopefully it’ll help some members to find out how they can troubleshoot!

    I like your idea about some kind of error log. Rather, I think it’d be cool if we could build into Update Notifications some kind of system that allows members to allow us access to their install from within their backend.

    Hmm… got me thinking!


  • Ovidiu
    • Code Wrangler

    ah, I seem to have missed that post by Siobhan, just glanced over it and its very similar to what I am saying except that I forgot about resetting to default theme and some other details she mentions instead I mentioned a couple of useful plugins :slight_smile:

    Its good to hear that you’re thinking about some sort of plugin too. If you guys have some issues with access to clients systems, I don’t know about the liabilities for such things, at least the functions I suggested that help the users gather the needed info would be a starting point.

  • Mason
    • DEV MAN’s Sidekick

    @ovidiu, I read this post and had a great big smile on my face :slight_smile: Love to see members here passing along solid, valuable information.

    Folks can save a ton of time by going through the steps you’ve provided above and including the information in their first post here. We’re still looking at various ways of getting all this awesome information together to make it accessible to the most people.

    Thanks (as always) for your useful knowledge here on the forums :slight_smile:

    • Site Builder, Child of Zeus

    Great advice Ovidiu… I’ve been guilty of omitting important pieces of information when making support requests in the past–here and elsewhere. I’m also on the receiving end of incomplete requests for support daily. No matter what side of the request you’re on, having all the necessary info saves a lot of time and effort.

  • Ovidiu
    • Code Wrangler

    Thanks but you see, I must admit I don’t expect anyone to provide all that info. Everyone wants their problem solved, pronto, so I’m happy if at least some of it is provided.

    I prefer a piece of error log to any other info honestly, mostly we’re left stabbing in the dark though :slight_frown:

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.