WordPress.org

Ready to get started?Download WordPress

Forums

error when i active plugin. (3 posts)

  1. emaarkhan
    Member
    Posted 2 years ago #

    hi, i am learning plugin development. but when i activate a plugin, it says this error
    The plugin generated 157 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.
    and my code is

    /*
    Plugin Name: Awesomeness
    Plugin URI: http://www.emaarworkx.com/my-work
    Author URI: http://www.emaarworkx.com/
    Author: abc
    Description: Just a fun plugin
    */
    function fubs(){
    	error.log("this is working");
    }
    register_activation_hook(__FILE__,'fubs');

    what am i doing wrong?

  2. s_ha_dum
    Member
    Posted 2 years ago #

    Well, error.log doesn't even look like PHP at all, so the parser is probably echoing a NOTICE. Maybe you wanted error_log?

  3. emaarkhan
    Member
    Posted 2 years ago #

    fudge! i didn't noticed it. its activated. thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic