The plugin generated 227 characters of unexpected output during activation. If you notice “headers already sent” messages

I create test plugin for learn purpose. i face this error on plugin activation.error:The plugin generated 227 characte

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;


?>

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742290068a4416021.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信