There were some errors to, I pasted the error just to direct you to the source.<br><br><br><b>These errors/notices don't come up while using add_theme_page or add_options_page.</b><br><br><br><div style="margin-left: 40px;">
Notice: Undefined variable: title in /Applications/XAMPP/xamppfiles/htdocs/WordPress/wp-admin/admin-header.php on line 14<br><br>Notice: Undefined variable: hook_suffix in /Applications/XAMPP/xamppfiles/htdocs/WordPress/wp-admin/admin-header.php on line 49<br>
<br>Notice: Undefined variable: pagenow in /Applications/XAMPP/xamppfiles/htdocs/WordPress/wp-admin/admin-header.php on line 70<br><br>Notice: Undefined variable: hook_suffix in /Applications/XAMPP/xamppfiles/htdocs/WordPress/wp-admin/admin-header.php on line 76<br>
<br>Notice: Undefined variable: hook_suffix in /Applications/XAMPP/xamppfiles/htdocs/WordPress/wp-admin/admin-header.php on line 77<br><br>Notice: Undefined variable: hook_suffix in /Applications/XAMPP/xamppfiles/htdocs/WordPress/wp-admin/admin-header.php on line 79<br>
<br>Notice: Undefined variable: hook_suffix in /Applications/XAMPP/xamppfiles/htdocs/WordPress/wp-admin/admin-header.php on line 81<br><br>Notice: Undefined variable: is_iphone in /Applications/XAMPP/xamppfiles/htdocs/WordPress/wp-admin/admin-header.php on line 90<br>
<br><br>Notice: Trying to get property of non-object in /Applications/XAMPP/xamppfiles/htdocs/premium/wp-admin/includes/template.php on line 1401<br><br>Notice: Trying to get property of non-object in /Applications/XAMPP/xamppfiles/htdocs/premium/wp-admin/includes/template.php on line 1413<br>
<br>Notice: Trying to get property of non-object in /Applications/XAMPP/xamppfiles/htdocs/premium/wp-admin/includes/template.php on line 1416<br><br>Notice: Trying to get property of non-object in /Applications/XAMPP/xamppfiles/htdocs/premium/wp-admin/includes/template.php on line 1455<br>
<br><br><b>Fatal error: Cannot redeclare _wp_menu_output() (previously declared in /Applications/XAMPP/xamppfiles/htdocs/premium/wp-admin/menu-header.php:36) in /Applications/XAMPP/xamppfiles/htdocs/premium/wp-admin/menu-header.php on line 162</b><br>
</div>