The plugin generated XXX characters of unexpected output…help?
I am working on a plugin that creates a custom post type and then creates a custom template file for the activated theme. The plugin is done editing. But I’ve received an error while uploading that says “The plugin generated 265 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.”
Here is the code for the main file: http://pastebin.com/jztzG499
What can I do to solve this problem? I have looked through other sites and Stackexchange but none of them were helpful.
Please help.
Leave an answer