[wp-hackers] Plugin could not be activated because it triggered

ozgreg wphackers at galleryembedded.com
Wed Jun 20 23:20:36 GMT 2007


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 --------------------




More information about the wp-hackers mailing list