[wp-hackers] Plugin could not be activated because it triggered
Omry Yadan
omry at yadan.net
Thu Jun 21 04:22:03 GMT 2007
I fully agree, in fact - a month ago I wrote this to the list , but got
no replies:
> Some complex plugins may fail during activation (creating database
> tables or what not).
> currently there is no way for plugins to return an error signal +
> error message in such cases: only thing they can do is to print the
> error.
> this is problematic as the error does not fit well into the wordpress
> admin page, and can also cause problems if for some reason the someone
> tries to set an http header after the plugin was activated.
>
> I suggest that we allow plugin to return error message back to
> wordpress on activation.
Your suggestion completes mine for existing plugins.
ozgreg wrote:
> I been getting a small number of "Plugin could not be activated because it triggered a fatal error." posts in the WPG2 forum.
>
> Unfortunately change http://trac.wordpress.org/changeset/5239 executes a ob_end_clean() thus removing any error message making it impossible to debug what in their Wordpress Environment is causing the problem..
>
> The issue is we need the error output, my suggestion would be to have a link in the plugin cannot be activated error message that allows the plugin activation to be simulated and the error output be displayed, but I am open for suggestions..
>
> PS: Just a minor point, I feel the assumption in the ticket, "Don't die because of output by badly-written plugins upon activation." is not ideal, if the WP plugin is a simple hello world then yes you should not be getting an output, however take a plugin that integrates a another third party application and that assumption goes straight out the window because you have a whole lot of other factors to deal with.
>
>
>
>
> -------------------- m2f --------------------
>
> Gallery2 Embedded Forums (http://www.galleryembedded.com/forums/)
> -------------------- m2f --------------------
>
>
> _______________________________________________
> 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