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>