Support » Fixing WordPress » error when i active plugin.

  • emaarkhan

    (@emaarkhan)


    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • s_ha_dum

    (@apljdi)

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

    emaarkhan

    (@emaarkhan)

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘error when i active plugin.’ is closed to new replies.