• Hi,

    I have problem with activating my own written plugin. My plugin have code like this:

    plugins/Testing/test.php
    <?php
    /*
    Plugin Name: Testing
    Version: 0.1
    Plugin URI: https://www.testing.com
    Description: Testing
    Author: Testing
    Author URI: https://www.testing.com
    */
    ?>
    halo

    When I try to activate this plugin, wordpress give this error:

    “The plugin generated 4 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.”

    When I try to logout from wordpress, it gives another long list of warning that prevent me from logging out.

    Any idea how to fix this? Not sure is my settings problem or wordpress issue, so far it it working for wordpress 2.9.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Make sure there is no characters or whitespace before the <?php or after the ?>

    “halo” = 4 characters. WordPress considers this to be a corrupt plugin.

    Mike Challis-

    Thanks for posting your comment. It saved me considerable time and trouble, as I definitely would not have come up with that on my own. Just one line of whitespace was destroying my efforts.

    Thanks again,

    matt pilon

    User : Mike Challis
    User : miqrogroove
    You both gives exactly correct ans. Mike Challis’s ans helps me a lot.
    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress 3.0 Plugin Activation Error’ is closed to new replies.