Title: Undefined Index Errors in class-eventbrite-api-widget.php
Last modified: September 25, 2019

---

# Undefined Index Errors in class-eventbrite-api-widget.php

 *  Resolved [databell96](https://wordpress.org/support/users/databell96/)
 * (@databell96)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/undefined-index-errors-in-class-eventbrite-api-widget-php/)
 * When I have debug mode turned on, I get two errors related to undefined index
   errors as is the following:
 * > Notice: Undefined index: number in /home/flsidf5/public_html/wp-content/plugins/
   > widget-for-eventbrite-api/includes/class-eventbrite-api-widget.php on line 
   > 162
   > Notice: Undefined index: order_by in /home/flsidf5/public_html/wp-content/plugins/
   > widget-for-eventbrite-api/includes/class-eventbrite-api-widget.php on line 
   > 179
 * Seems to relate to these pieces of code:
 * > $instance[‘number’] = (int) $new_instance[‘number’];
 * > $instance[‘order_by’] = sanitize_text_field( $new_instance[‘order_by’] );
 * Any idea how to correct this?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fundefined-index-errors-in-class-eventbrite-api-widget-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [fullworks](https://wordpress.org/support/users/fullworks/)
 * (@fullworks)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/undefined-index-errors-in-class-eventbrite-api-widget-php/#post-11968759)
 * Thanks, will tidy that up.
 *  Plugin Author [fullworks](https://wordpress.org/support/users/fullworks/)
 * (@fullworks)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/undefined-index-errors-in-class-eventbrite-api-widget-php/#post-11969089)
 * These warnings showing in debug have been fixed in 2.8.2.
 * Thanks again for letting me know.

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

The topic ‘Undefined Index Errors in class-eventbrite-api-widget.php’ is closed 
to new replies.

 * ![](https://ps.w.org/widget-for-eventbrite-api/assets/icon-256x256.jpg?rev=2863321)
 * [Display Eventbrite Events](https://wordpress.org/plugins/widget-for-eventbrite-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/widget-for-eventbrite-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/widget-for-eventbrite-api/)
 * [Active Topics](https://wordpress.org/support/plugin/widget-for-eventbrite-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/widget-for-eventbrite-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/widget-for-eventbrite-api/reviews/)

## Tags

 * [php-error](https://wordpress.org/support/topic-tag/php-error/)
 * [undefined index](https://wordpress.org/support/topic-tag/undefined-index/)

 * 2 replies
 * 2 participants
 * Last reply from: [fullworks](https://wordpress.org/support/users/fullworks/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/undefined-index-errors-in-class-eventbrite-api-widget-php/#post-11969089)
 * Status: resolved