<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 'Times New Roman'; 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, 'Courier New', 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's your code:</div>
<blockquote style="MARGIN-RIGHT: 0px" dir="ltr">
<div>add_theme_page('Swift Theme Options', 'Swift Options', 'edit_theme_options', 'swift-options',<strong><font color="#ff0000"> 'swiftOptions',$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"><<a href="mailto:satish.iitg@gmail.com">satish.iitg@gmail.com</a>></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('admin_menu', 'swift_themes_menu');<br>function swift_themes_menu() {<br> $favicon=get_bloginfo('template_url').'/images/favicon.ico';<br>
add_menu_page('Swift Theme Options', 'Swift Options', 'edit_theme_options', 'swift-options', 'swiftOptions',$favicon,62);<br> add_submenu_page( 'swift-options', 'Design Options', 'Design Options', 'edit_theme_options', 'swift-design-options', 'swiftDesignOptions');<br>
add_submenu_page( 'swift-options', 'Import and Export SWIFT options','Import / Export', 'edit_theme_options', 'swift-import-export', 'swiftImportExportMenu');<br>}<br><br>
<br>/* No error when i use this*/<br>function swift_themes_menu() {<br> $favicon=get_bloginfo('template_url').'/images/favicon.ico';<br> add_theme_page('Swift Theme Options', 'Swift Options', 'edit_theme_options', 'swift-options', 'swiftOptions',$favicon,62);<br>
add_theme_page('Design Options', 'Design Options', 'edit_theme_options', 'swift-design-options', 'swiftDesignOptions');<br> add_theme_page('Import and Export SWIFT options','Import / Export', 'edit_theme_options', 'swift-import-export', 'swiftImportExportMenu');<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>