I was developing a plugin for wordpress and receive a messsage:
The plugin generated 496 characters of unexpected output during activation
I placed the following code at the end of my plugin file,
then looked in the wordpress options table using the query
WHERE option_name = ‘plugin_error'”
Then I could see what the unexpected output was.
Or I could’ve installed the WH Debug plugin and just added this to the end of the plugin file:
wh_debug( ‘plugin_error’, ob_get_contents());
And then viewed it in the WordPress admin pages under Tools->WH Debug.
keywords: wordpress characters of unexpected output during activation