Tag Archives: dbDelta

The plugin generated XXX characters of unexpected output during activation [SOLVED]

While writing my own wordpress plugin, I ran into the following error at plugin activation time: The plugin generated 145582 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin. Step 1: Capture the unexpected output WordPress error message is not that useful because we have no clue on what the unexpected output is.To find what generated this output, we need first to know what this output is. The trick here is to add an action to ‘activated_plugin’ hook which will simply dump the […]