Wordpress插件激活期间出错[重复]

问题描述:

Got the following error during the plugin activation

The plugin generated 1 character 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 of that plugin http://pastebin.com/ZKrKQbPv

Also i can't able to edit plugin content via wordpress plugin editor. When i click save it shows “headers already sent” error.

</div>

此问题已经存在 这里有一个答案: p>

  • 插件在激活期间生成了意外输出的X个字符(WordPress) 15回答 span> li> ul> div>

    在此过程中出现以下错误 插件激活 p>

    插件在激活期间生成了1个意外输出字符。 如果您注意到“已发送标头”消息,联合供稿问题或其他问题,请尝试停用或删除此插件。 p>

    此处是该插件的代码 http://pastebin.com/ZKrKQbPv p>

    此外,我无法编辑插件内容 通过wordpress插件编辑器。 当我点击保存时,它显示“已发送标题”错误。 p> div>

make sure BOTH one.php and two.php contain ONLY the following code if keeping blank:

<?php

Place that at the very top of the files and save and upload them to server. By including them as they are blank they have a newline in them which is being output. This will fix it. DO NOT put a closing ?> tag. It's recommended you don't end your files with them since it increases the likelihood as well of putting newlines by accident.