{"id":3183395,"date":"2012-11-11T22:16:40","date_gmt":"2012-11-11T22:16:40","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/errors-when-using-wp_debug\/"},"modified":"2016-08-20T17:29:54","modified_gmt":"2016-08-20T17:29:54","slug":"errors-when-using-wp_debug","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/errors-when-using-wp_debug\/","title":{"rendered":"Errors when using WP_DEBUG"},"content":{"rendered":"<p>When using <code>WP_DEBUG<\/code> the following errors are displayed in the admin plugins page:<\/p>\n<pre><code>Notice: Undefined index: PO_group_view in \/Users\/mikeschinkel\/Sites\/example\/public_html\/wp-content\/plugins\/plugin-organizer\/lib\/PluginOrganizer.class.php on line 481\nNotice: Undefined index: PO_group_view in \/Users\/mikeschinkel\/Sites\/example\/public_html\/wp-content\/plugins\/plugin-organizer\/lib\/PluginOrganizer.class.php on line 497\nNotice: Undefined index: PO_group_view in \/Users\/mikeschinkel\/Sites\/example\/public_html\/wp-content\/plugins\/plugin-organizer\/lib\/PluginOrganizer.class.php on line 566\nNotice: Undefined index: plugin_status in \/Users\/mikeschinkel\/Sites\/example\/public_html\/wp-content\/plugins\/plugin-organizer\/lib\/PluginOrganizer.class.php on line 398\nNotice: Undefined offset: 0 in \/Users\/mikeschinkel\/Sites\/example\/public_html\/wp-content\/plugins\/plugin-organizer\/lib\/PluginOrganizer.class.php on line 381<\/code><\/pre>\n<p>Using <code>WP_DEBUG<\/code> during plugin development is a best practice as you can see here:<\/p>\n<p>http:\/\/nacin.com\/2010\/04\/23\/5-ways-to-debug-wordpress\/<\/p>\n<p>Would love to see you add the following like to your development system&#8217;s <code>\/wp-config.php<\/code> file and then test your plugin with it:<\/p>\n<p><code>define( &#039;WP_DEBUG&#039;, true );<\/code><\/p>\n","protected":false},"template":"","class_list":["post-3183395","topic","type-topic","status-closed","hentry","topic-tag-errors","topic-tag-wp_debug"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3183395","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3183395\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=3183395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}