title: Wordpress Error while developing a plugin -"You do not have sufficient permissions to access this page."
body: <p>I have just started learning wordpress plugin development and got this error when I access the my plugin menu from admin.</p>
  
  <p>Here is the code: importer.php</p>
  
  <pre><code>//*************** Admin function ***************
  function oscimp_admin() {
      include('importer_admin.php');
  }
  
  function oscimp_admin_actions() {
      add_options_page("OSCommerce Product Display", "OSCommerce Product Display", 1, "OSCommerce Product Display", "oscimp_admin");
  }
  
  add_action('admin_menu', 'oscimp_admin_actions');
  </code></pre>
  
  <p>importer_admin.php</p>
  
  <pre><code>&lt;div class="wrap"&gt;
  &lt;?php    echo "&lt;h2&gt;" . __( 'OSCommerce Product Display Options', 'oscimp_trdom' ) . "&lt;/h2&gt;"; ?&gt;
  
  &lt;form name="oscimp_form" method="post" action="&lt;?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?&gt;"&gt;
      &lt;input type="hidden" name="oscimp_hidden" value="Y"&gt;
      &lt;?php    echo "&lt;h4&gt;" . __( 'OSCommerce Database Settings', 'oscimp_trdom' ) . "&lt;/h4&gt;"; ?&gt;
      &lt;p&gt;&lt;?php _e("Database host: " ); ?&gt;&lt;input type="text" name="oscimp_dbhost" value="&lt;?php echo $dbhost; ?&gt;" size="20"&gt;&lt;?php _e(" ex: localhost" ); ?&gt;&lt;/p&gt;
      &lt;p&gt;&lt;?php _e("Database name: " ); ?&gt;&lt;input type="text" name="oscimp_dbname" value="&lt;?php echo $dbname; ?&gt;" size="20"&gt;&lt;?php _e(" ex: oscommerce_shop" ); ?&gt;&lt;/p&gt;
      &lt;p&gt;&lt;?php _e("Database user: " ); ?&gt;&lt;input type="text" name="oscimp_dbuser" value="&lt;?php echo $dbuser; ?&gt;" size="20"&gt;&lt;?php _e(" ex: root" ); ?&gt;&lt;/p&gt;
      &lt;p&gt;&lt;?php _e("Database password: " ); ?&gt;&lt;input type="text" name="oscimp_dbpwd" value="&lt;?php echo $dbpwd; ?&gt;" size="20"&gt;&lt;?php _e(" ex: secretpassword" ); ?&gt;&lt;/p&gt;
      &lt;hr /&gt;
      &lt;?php    echo "&lt;h4&gt;" . __( 'OSCommerce Store Settings', 'oscimp_trdom' ) . "&lt;/h4&gt;"; ?&gt;
      &lt;p&gt;&lt;?php _e("Store URL: " ); ?&gt;&lt;input type="text" name="oscimp_store_url" value="&lt;?php echo $store_url; ?&gt;" size="20"&gt;&lt;?php _e(" ex: http://www.yourstore.com/" ); ?&gt;&lt;/p&gt;
      &lt;p&gt;&lt;?php _e("Product image folder: " ); ?&gt;&lt;input type="text" name="oscimp_prod_img_folder" value="&lt;?php echo $prod_img_folder; ?&gt;" size="20"&gt;&lt;?php _e(" ex: http://www.yourstore.com/images/" ); ?&gt;&lt;/p&gt;
  
  
      &lt;p class="submit"&gt;
      &lt;input type="submit" name="Submit" value="&lt;?php _e('Update Options', 'oscimp_trdom' ) ?&gt;" /&gt;
      &lt;/p&gt;
  &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Any one can figure out what I am doing wrong.</p>