<div>Check your arguments for add_theme_page().</div>
<div> </div>
<div>Here are the valid arguments:</div>
<blockquote style="MARGIN-RIGHT: 0px" dir="ltr">
<div><span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium &#39;Times New Roman&#39;; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="TEXT-ALIGN: left; LINE-HEIGHT: 22px; FONT-FAMILY: Consolas, Monaco, &#39;Courier New&#39;, Courier, monospace; WHITE-SPACE: pre-wrap; FONT-SIZE: 12px" class="Apple-style-span"><span style="TEXT-ALIGN: left !important; FONT-VARIANT: normal !important; COLOR: rgb(0,0,187)">add_theme_page</span><span style="TEXT-ALIGN: left !important; FONT-VARIANT: normal !important; COLOR: rgb(0,119,0)">( </span><span style="TEXT-ALIGN: left !important; FONT-VARIANT: normal !important; COLOR: rgb(0,0,187)">$page_title</span><span style="TEXT-ALIGN: left !important; FONT-VARIANT: normal !important; COLOR: rgb(0,119,0)">, </span><span style="TEXT-ALIGN: left !important; FONT-VARIANT: normal !important; COLOR: rgb(0,0,187)">$menu_title</span><span style="TEXT-ALIGN: left !important; FONT-VARIANT: normal !important; COLOR: rgb(0,119,0)">, </span><span style="TEXT-ALIGN: left !important; FONT-VARIANT: normal !important; COLOR: rgb(0,0,187)">$capability</span><span style="TEXT-ALIGN: left !important; FONT-VARIANT: normal !important; COLOR: rgb(0,119,0)">, </span><span style="TEXT-ALIGN: left !important; FONT-VARIANT: normal !important; COLOR: rgb(0,0,187)">$menu_slug</span><span style="TEXT-ALIGN: left !important; FONT-VARIANT: normal !important; COLOR: rgb(0,119,0)">, </span><span style="TEXT-ALIGN: left !important; FONT-VARIANT: normal !important; COLOR: rgb(0,0,187)">$function</span><span style="TEXT-ALIGN: left !important; FONT-VARIANT: normal !important; COLOR: rgb(0,119,0)">);</span></span></span></div>
</blockquote>
<div>And here&#39;s your code:</div>
<blockquote style="MARGIN-RIGHT: 0px" dir="ltr">
<div>add_theme_page(&#39;Swift Theme Options&#39;, &#39;Swift Options&#39;, &#39;edit_theme_options&#39;, &#39;swift-options&#39;,<strong><font color="#ff0000"> &#39;swiftOptions&#39;,$favicon,62</font></strong>);</div></blockquote>

<div>You are calling invalid arguments; namely, the last two: <font color="#ff0000"><strong>$icon_url</strong>, and <strong>$position</strong></font>.</div>
<div> </div>
<div>Codex Ref: <a href="http://codex.wordpress.org/Administration_Menus">Administration Menus</a></div>
<div> </div>
<div>Chip<br><br></div>
<div class="gmail_quote">On Thu, Feb 17, 2011 at 10:35 AM, Satish Gandham <span dir="ltr">&lt;<a href="mailto:satish.iitg@gmail.com">satish.iitg@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Yes, I was this folder as eclipse project directory.<br><br>I created a new folder and installed a fresh copy, still the same error.<br>
<br>here is my code<br><br>//Adding adminstrative menus<br>add_action(&#39;admin_menu&#39;, &#39;swift_themes_menu&#39;);<br>function swift_themes_menu() {<br>    $favicon=get_bloginfo(&#39;template_url&#39;).&#39;/images/favicon.ico&#39;;<br>
    add_menu_page(&#39;Swift Theme Options&#39;, &#39;Swift Options&#39;, &#39;edit_theme_options&#39;, &#39;swift-options&#39;, &#39;swiftOptions&#39;,$favicon,62);<br>    add_submenu_page( &#39;swift-options&#39;, &#39;Design Options&#39;, &#39;Design Options&#39;, &#39;edit_theme_options&#39;, &#39;swift-design-options&#39;, &#39;swiftDesignOptions&#39;);<br>
    add_submenu_page( &#39;swift-options&#39;, &#39;Import and Export SWIFT options&#39;,&#39;Import / Export&#39;, &#39;edit_theme_options&#39;, &#39;swift-import-export&#39;, &#39;swiftImportExportMenu&#39;);<br>}<br><br>
<br>/* No error when i use this*/<br>function swift_themes_menu() {<br>    $favicon=get_bloginfo(&#39;template_url&#39;).&#39;/images/favicon.ico&#39;;<br>    add_theme_page(&#39;Swift Theme Options&#39;, &#39;Swift Options&#39;, &#39;edit_theme_options&#39;, &#39;swift-options&#39;, &#39;swiftOptions&#39;,$favicon,62);<br>
    add_theme_page(&#39;Design Options&#39;, &#39;Design Options&#39;, &#39;edit_theme_options&#39;, &#39;swift-design-options&#39;, &#39;swiftDesignOptions&#39;);<br>    add_theme_page(&#39;Import and Export SWIFT options&#39;,&#39;Import / Export&#39;, &#39;edit_theme_options&#39;, &#39;swift-import-export&#39;, &#39;swiftImportExportMenu&#39;);<br>
}<br><br><br>_______________________________________________<br>theme-reviewers mailing list<br><a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br><a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br>