Support » Plugins » Hacks » An error with simple plugin?

  • Hi
    I make a simple plugin:

    Plugin Name: xxxxxxx
    add_action('admin_menu', 'xxxxxx');
    function xxxxxx() {
    	add_submenu_page( 'themes.php', 'xxxxxx', 'xxxxxx', 'manage_options', 'xxxxxxx', 'xxxxxxx_callback' );
    function xxxxxxx_callback() {
    	echo 'xxxxxxxx';

    Then active with this Error. please help me:
    The plugin generated 3 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • In your editor, make sure you have no white space before the opening <?php and closing ?>.

    … and make sure You do not edit script using windows notepad as has habbit of inserting codepage bytes at very beginning of the file.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘An error with simple plugin?’ is closed to new replies.