[wp-hackers] Invisible Errors on Activation

Rich Christiansen warproof at warproof.com
Sat Jun 14 00:58:40 GMT 2008

Thanks for the response, Austin!  I'd like to configure my plugin so 
that the errors are accessible on all installations automatically, 
without having to edit plugin.php.  Does anyone know how I might do so?


wp-hackers-request at lists.automattic.com wrote:

Message: 5 Date: Fri, 13 Jun 2008 12:47:44 -0400 From: "Austin Matzko" 
<if.website at gmail.com> Subject: Re: [wp-hackers] Invisible Errors on 
Activation To: wp-hackers at lists.automattic.com Message-ID: 
<674b4a3b0806130947wa7bb686tc0544ae04eae568f at mail.gmail.com> 
Content-Type: text/plain; charset=ISO-8859-1 On Thu, Jun 12, 2008 at 
1:42 PM, Rich Christiansen <warproof at warproof.com> wrote:

> > My latest plugin
> > (http://wordpress.org/extend/plugins/featurific-for-wordpress/) performs a
> > bunch of initialization during activation.  However, if the activation
> > generates PHP errors (e.g. file not found, etc.), they are not reported to
> > the user.  The problem is that I know that errors are being generated.  If I
> > call the activation method from another method, the PHP errors are
> > successfully reported.
> >
> > What's wrong?  Is this the default behavior of Wordpress?  And if so, how
> > can I work around it?

The function activate_plugin, defined in wp-admin/includes/plugin.php,
uses output buffering to check for fatal errors upon activation.  You
can comment out the call to output buffering functions there to see
the errors.

More information about the wp-hackers mailing list