Title: Undefined Index Errors
Last modified: August 9, 2017

---

# Undefined Index Errors

 *  [thatstevensguy](https://wordpress.org/support/users/thatstevensguy/)
 * (@thatstevensguy)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/undefined-index-errors-15/)
 * This plugin is throwing undefined index errors for various components of the 
   widget.
 * `[09-Aug-2017 00:31:08 UTC] PHP Notice: Undefined index: title in /Applications/
   MAMP/htdocs/mysite/wp-content/plugins/list-custom-taxonomy-widget/list-custom-
   taxonomy-widget.php on line 217`
    -  This topic was modified 8 years, 10 months ago by [thatstevensguy](https://wordpress.org/support/users/thatstevensguy/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Nick Halsey](https://wordpress.org/support/users/celloexpressions/)
 * (@celloexpressions)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/undefined-index-errors-15/#post-9418801)
 * Do you still get errors when you remove and re-add a widget? Or is this when 
   you first add an instance?
 *  Thread Starter [thatstevensguy](https://wordpress.org/support/users/thatstevensguy/)
 * (@thatstevensguy)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/undefined-index-errors-15/#post-9419963)
 * It happens whenever the widget simply exists in a sidebar in the widgets admin.
   The errors dump to my PHP error log. I can actually see it reported by PHP with
   WP_DEBUG with a fresh widget instance.
 *     ```
       [18-Aug-2017 02:49:20 UTC] PHP Notice:  Undefined index: title in /Applications/MAMP/htdocs/mysite/wp-content/plugins/list-custom-taxonomy-widget/list-custom-taxonomy-widget.php on line 217
       [18-Aug-2017 02:49:20 UTC] PHP   7. lc_taxonomy->form() /Applications/MAMP/htdocs/mysite/wp-includes/class-wp-widget.php:532
       [18-Aug-2017 02:49:20 UTC] PHP Notice:  Undefined index: taxonomy in /Applications/MAMP/htdocs/mysite/wp-content/plugins/list-custom-taxonomy-widget/list-custom-taxonomy-widget.php on line 218
       [18-Aug-2017 02:49:20 UTC] PHP   7. lc_taxonomy->form() /Applications/MAMP/htdocs/mysite/wp-includes/class-wp-widget.php:532
       [18-Aug-2017 02:49:20 UTC] PHP Notice:  Undefined index: orderby in /Applications/MAMP/htdocs/mysite/wp-content/plugins/list-custom-taxonomy-widget/list-custom-taxonomy-widget.php on line 219
       [18-Aug-2017 02:49:20 UTC] PHP   7. lc_taxonomy->form() /Applications/MAMP/htdocs/mysite/wp-includes/class-wp-widget.php:532
       [18-Aug-2017 02:49:20 UTC] PHP Notice:  Undefined index: ascdsc in /Applications/MAMP/htdocs/mysite/wp-content/plugins/list-custom-taxonomy-widget/list-custom-taxonomy-widget.php on line 220
       [18-Aug-2017 02:49:20 UTC] PHP   7. lc_taxonomy->form() /Applications/MAMP/htdocs/mysite/wp-includes/class-wp-widget.php:532
       [18-Aug-2017 02:49:20 UTC] PHP Notice:  Undefined index: exclude in /Applications/MAMP/htdocs/mysite/wp-content/plugins/list-custom-taxonomy-widget/list-custom-taxonomy-widget.php on line 221
       [18-Aug-2017 02:49:20 UTC] PHP   7. lc_taxonomy->form() /Applications/MAMP/htdocs/mysite/wp-includes/class-wp-widget.php:532
       [18-Aug-2017 02:49:20 UTC] PHP Notice:  Undefined index: expandoptions in /Applications/MAMP/htdocs/mysite/wp-content/plugins/list-custom-taxonomy-widget/list-custom-taxonomy-widget.php on line 222
       [18-Aug-2017 02:49:20 UTC] PHP   7. lc_taxonomy->form() /Applications/MAMP/htdocs/mysite/wp-includes/class-wp-widget.php:532
       [18-Aug-2017 02:49:20 UTC] PHP Notice:  Undefined index: childof in /Applications/MAMP/htdocs/mysite/wp-content/plugins/list-custom-taxonomy-widget/list-custom-taxonomy-widget.php on line 223
       [18-Aug-2017 02:49:20 UTC] PHP   7. lc_taxonomy->form() /Applications/MAMP/htdocs/mysite/wp-includes/class-wp-widget.php:532
       ```
   
 * The following appear in the PHP error log with a fresh instance, WP_DEBUG reveals
   more though (more of the fields):
 *     ```
       [18-Aug-2017 02:53:40 UTC] PHP Notice:  Undefined index: taxonomy in /Applications/MAMP/htdocs/mysite/wp-content/plugins/list-custom-taxonomy-widget/list-custom-taxonomy-widget.php on line 174
       [18-Aug-2017 02:53:40 UTC] PHP   9. lc_taxonomy->update() /Applications/MAMP/htdocs/mysite/wp-includes/class-wp-widget.php:456
       [18-Aug-2017 02:53:40 UTC] PHP Notice:  Undefined index: ascdsc in /Applications/MAMP/htdocs/mysite/wp-content/plugins/list-custom-taxonomy-widget/list-custom-taxonomy-widget.php on line 176
       [18-Aug-2017 02:53:40 UTC] PHP   9. lc_taxonomy->update() /Applications/MAMP/htdocs/mysite/wp-includes/class-wp-widget.php:456
       ```
   
 * You might have to check if the index in the array has a value !empty() etc to
   fix it.
    -  This reply was modified 8 years, 10 months ago by [thatstevensguy](https://wordpress.org/support/users/thatstevensguy/).
    -  This reply was modified 8 years, 10 months ago by [thatstevensguy](https://wordpress.org/support/users/thatstevensguy/).
    -  This reply was modified 8 years, 10 months ago by [thatstevensguy](https://wordpress.org/support/users/thatstevensguy/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Undefined Index Errors’ is closed to new replies.

 * ![](https://ps.w.org/list-custom-taxonomy-widget/assets/icon.svg?rev=1225454)
 * [List Custom Taxonomy Widget](https://wordpress.org/plugins/list-custom-taxonomy-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/list-custom-taxonomy-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/list-custom-taxonomy-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/list-custom-taxonomy-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/list-custom-taxonomy-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/list-custom-taxonomy-widget/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [thatstevensguy](https://wordpress.org/support/users/thatstevensguy/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/undefined-index-errors-15/#post-9419963)
 * Status: not resolved