admin管理员组文章数量:1332389
I create test plugin for learn purpose. i face this error on plugin activation.
error: The plugin generated 227 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.
my php file:
<?php
if(!class_exists('my_class')):
class my_class{
public function __construct(){
}
function activation()
{
echo "activaton function is called on activation";
}
}
new my_class;
register_activation_hook(__FILE__, array('my_class','activation'));
endif;
?>
本文标签:
版权声明:本文标题:The plugin generated 227 characters of unexpected output during activation. If you notice “headers already sent” messages 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742290068a2447629.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论