[theme-reviewers] Are themes restricted from adding top levelmenus in WP 3.1 rc-4

Philip M. Hofer (Frumph) philip at frumph.net
Wed Feb 16 08:33:37 UTC 2011


I'm sorry, what's the problem here?  Are you unable to fix notices/warnings/fatal errors?

Notices "undefined variable" gives you information that a $var is not being assigned before it's being used

"Trying to get property of non-object"  means that the $var being used is not an object, more then likely has no valid data and that you should check to make sure it's not empty (and valid) before being used

"Cannot redeclare"  thats a message stating you're trying to add a function that already exists, no two functions can be labelled the same -- more then likely you might be loading up /including/ the same php file over again



  ----- Original Message ----- 
  From: Satish Gandham 
  To: theme-reviewers at lists.wordpress.org 
  Sent: Wednesday, February 16, 2011 12:22 AM
  Subject: Re: [theme-reviewers] Are themes restricted from adding top levelmenus in WP 3.1 rc-4


  There were some errors to, I pasted the error just to direct you to the source.


  These errors/notices don't come up while using add_theme_page or add_options_page.



  Notice: Undefined variable: title in /Applications/XAMPP/xamppfiles/htdocs/WordPress/wp-admin/admin-header.php on line 14

  Notice: Undefined variable: hook_suffix in /Applications/XAMPP/xamppfiles/htdocs/WordPress/wp-admin/admin-header.php on line 49

  Notice: Undefined variable: pagenow in /Applications/XAMPP/xamppfiles/htdocs/WordPress/wp-admin/admin-header.php on line 70

  Notice: Undefined variable: hook_suffix in /Applications/XAMPP/xamppfiles/htdocs/WordPress/wp-admin/admin-header.php on line 76

  Notice: Undefined variable: hook_suffix in /Applications/XAMPP/xamppfiles/htdocs/WordPress/wp-admin/admin-header.php on line 77

  Notice: Undefined variable: hook_suffix in /Applications/XAMPP/xamppfiles/htdocs/WordPress/wp-admin/admin-header.php on line 79

  Notice: Undefined variable: hook_suffix in /Applications/XAMPP/xamppfiles/htdocs/WordPress/wp-admin/admin-header.php on line 81

  Notice: Undefined variable: is_iphone in /Applications/XAMPP/xamppfiles/htdocs/WordPress/wp-admin/admin-header.php on line 90


  Notice: Trying to get property of non-object in /Applications/XAMPP/xamppfiles/htdocs/premium/wp-admin/includes/template.php  on line 1401

  Notice: Trying to get property of non-object in /Applications/XAMPP/xamppfiles/htdocs/premium/wp-admin/includes/template.php on line 1413

  Notice: Trying to get property of non-object in /Applications/XAMPP/xamppfiles/htdocs/premium/wp-admin/includes/template.php on line 1416

  Notice: Trying to get property of non-object in /Applications/XAMPP/xamppfiles/htdocs/premium/wp-admin/includes/template.php on line 1455


  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



------------------------------------------------------------------------------


  _______________________________________________
  theme-reviewers mailing list
  theme-reviewers at lists.wordpress.org
  http://lists.wordpress.org/mailman/listinfo/theme-reviewers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20110216/d3b739cb/attachment.htm>


More information about the theme-reviewers mailing list