Ready to get started?Download WordPress


An error with simple plugin? (3 posts)

  1. kobi1
    Posted 2 years ago #

    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.

  2. tugbucket
    Posted 2 years ago #

    In your editor, make sure you have no white space before the opening <?php and closing ?>.

  3. pedjas
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.