0

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.

bumped to the homepage by Community yesterday

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

0

I solved it. This line:

"if (!isset($pd_plugin_instance)) $pd_plugin_instance = new Products();"

Was causing all the error. I removed the Widget section from the plugin but forgot to remove it. After removing it, the error was gone.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.