[wp-hackers] Invisible Errors on Activation

DD32 wordpress at dd32.id.au
Sat Jun 14 01:26:46 GMT 2008

It is the default behaviour.
Upon a fatal error in activation, it should redirect back to the plugin  
page with:
"Plugin could not be activated because it triggered a fatal error.
<Small inline frame here which contains the fatal error messages generated  
by the plugin>"
The iframe simply tries to activate the plugin once again, it should hit  
the fatal error then again too.

On Sat, 14 Jun 2008 01:54:03 +1000, Rich Christiansen <rich at byu.net> wrote:

> Hey all,
> 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?
> Thanks so much in advance! :)
> -RIch
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list