Support » Fixing WordPress » error when i active plugin.

  • 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:
    Author URI:
    Author: abc
    Description: Just a fun plugin
    function fubs(){
    	error.log("this is working");

    what am i doing wrong?

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


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



    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.