Title: Undefined array key
Last modified: September 8, 2022

---

# Undefined array key

 *  Resolved [daveskim](https://wordpress.org/support/users/daveskim/)
 * (@daveskim)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/undefined-array-key-11/)
 * Hi there,
 * I’m getting this error being displayed on each event listed:
 * Warning: Undefined array key “show_end_time” in /wp-content/plugins/widget-for-
   eventbrite-api/includes/class-utilities.php on line 287
 * Debugging is off and nothing in the browser console.
 * Can you help?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fundefined-array-key-11%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Alan Fuller](https://wordpress.org/support/users/alanfuller/)
 * (@alanfuller)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/undefined-array-key-11/#post-15992372)
 * Hi,
 * Sorry you are experiencing this however `warnings` not `errors`.
 * We will of course look at this, but it is not a critical issue of any consequence.
 * A production site should be set to `not` display warnings and notices.
 * Notices and Warnings are to help developers clean up code issues e.g. the Notice
   might be that a function is deprecated in a future release. Or a Warning may 
   be that a variable has not been set before being used.
 * In general – on a production site – you should have Notices and Warning set not
   to display.
 * This is easy to do, you can edit your wp-config.php file and set
 *     ```
       ini_set('display_errors','Off');
       ini_set('error_reporting', E_ALL );
       define('WP_DEBUG', false);
       define('WP_DEBUG_DISPLAY', false);
       ```
   
 * Or if that is too technical – just raise a support ticket to your host to ask
   them to suppress PHP Notices and Warnings.
 * If you wish to fix this without setting up your display warnings
 * then edit
    /wp-content/plugins/widget-for-eventbrite-api/includes/class-utilities.
   php on line 287
 * replace
    `if ( false == $args || $args['show_end_time'] ) {` with `if ( false
   == $args ) {`
 *  Thread Starter [daveskim](https://wordpress.org/support/users/daveskim/)
 * (@daveskim)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/undefined-array-key-11/#post-15992388)
 * Thanks very much for getting back so quickly.
 * Oddly I do have debug set to false – not sure why this was showing on page and
   not in the browser console.
 * I have edited the PHP file which works great. Will this be written into the next
   update or will I need to look out for this if the plugin is updated?
 * Thanks again!
 *  Plugin Author [Alan Fuller](https://wordpress.org/support/users/alanfuller/)
 * (@alanfuller)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/undefined-array-key-11/#post-15992413)
 * Yes I have already put that in the development branch, so next release will be
   fine.
 * It is not just debug mode, but possible a PHP setting that displays warniongs
   
   hence
 *     ```
       ini_set('display_errors','Off');
       ini_set('error_reporting', E_ALL )
       ```
   
 * If that doesn’t work, ask your host, because unless it is a test system displaying,
   rather than logging warnings is not considered a good idea.
 *  Plugin Author [Alan Fuller](https://wordpress.org/support/users/alanfuller/)
 * (@alanfuller)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/undefined-array-key-11/#post-15992419)
 * p.s. I like what you have done with your site.
 * a nice review is always welcome [https://wordpress.org/support/plugin/widget-for-eventbrite-api/reviews/?view=all](https://wordpress.org/support/plugin/widget-for-eventbrite-api/reviews/?view=all)
 *  Thread Starter [daveskim](https://wordpress.org/support/users/daveskim/)
 * (@daveskim)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/undefined-array-key-11/#post-15993991)
 * Thanks very much – reviewed and very happy!

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

The topic ‘Undefined array key’ 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [daveskim](https://wordpress.org/support/users/daveskim/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/undefined-array-key-11/#post-15993991)
 * Status: resolved