[wp-hackers] "Plugin could not be activated because it triggered a fatal error." But what is the error?

Dougal Campbell dougal at gunters.org
Thu Mar 11 19:19:43 UTC 2010

On Mar 11 2010 2:12 PM, James Nachlin wrote:
> Thanks Matthew and Austin for your answers.
> I don't think that the missing semicolon was the [only] problem.
> But the larger issue is that the server will have to start reporting 
> clear errors.  If this plugin gets more complex, there will be no way 
> to scan the entire set of code files looking for an error.
> There must be a way that plugin developers view the errors their 
> plugins cause.

Try adding this to your wp-config.php:

   define( 'WP_DEBUG', true );
   define( 'WP_DEBUG_LOG', true );

Then look for the 'debug.log' file in your wp-content directory (which 
must be writable by your server).

Dougal Campbell <dougal at gunters.org>

More information about the wp-hackers mailing list