Title: Undefined Index
Last modified: February 9, 2022

---

# Undefined Index

 *  Resolved [sheriffbigbywolf](https://wordpress.org/support/users/sheriffbigbywolf/)
 * (@sheriffbigbywolf)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/undefined-index-181/)
 * Hi,
 * I have issues with some of the SportsPress widgets. I’m using Elementor to build
   a frontpage. When I add some SportsPress widgets in the Elementor interface, 
   notices appear. For example, when I add the Countdown widget, the following notice
   appears above the widget:
 * `Notice: Undefined index: show_excluded in ...\wp-content\plugins\sportspress\
   includes\widgets\class-sp-widget-countdown.php on line 71`
 * It does not happen with default WordPress widgets. And it only happens on the
   page built with Elementor (i.e. everything is fine in archive page for example).
 * It also does not matter which theme is used. It happens on default WordPress 
   themes as well.
 * How can I fix it? Thanks!
    -  This topic was modified 4 years, 3 months ago by [sheriffbigbywolf](https://wordpress.org/support/users/sheriffbigbywolf/).

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

 *  [Roch](https://wordpress.org/support/users/rochesterj/)
 * (@rochesterj)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/undefined-index-181/#post-15347473)
 * Hi there!
 * Thanks for reaching out.
 * What happens when you use the shortcode instead of the widget?
    [https://support.themeboy.com/article/100-countdown-shortcode](https://support.themeboy.com/article/100-countdown-shortcode)
 * Thanks!
 *  Thread Starter [sheriffbigbywolf](https://wordpress.org/support/users/sheriffbigbywolf/)
 * (@sheriffbigbywolf)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/undefined-index-181/#post-15347529)
 * Hi!
 * I’ve used the [countdown] shortcode but anyway I still have the following notice:
 * `Notice: Undefined variable: calendar in ...\wp-content\plugins\sportspress\templates\
   countdown.php on line 45`
 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/undefined-index-181/#post-15353772)
 * Hi [@sheriffbigbywolf](https://wordpress.org/support/users/sheriffbigbywolf/),
 * What theme are you using? Did you try to switch a default theme like `Rookie`
   or `TwentyTwenty` and confirm that the issue is still there?
    What is the exact
   shortcode code you are using?
 * Thanks,
    Savvas
 *  Thread Starter [sheriffbigbywolf](https://wordpress.org/support/users/sheriffbigbywolf/)
 * (@sheriffbigbywolf)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/undefined-index-181/#post-15356340)
 * Hi,
 * It happens with default themes as well.
    This is the exact shortcode: [countdown]
 * I’m not sure what could be the reason but I tried to add the widget on another
   local WordPress installation and there is no issues so far.
 * I’ll let you know in case the issue occurs again.
 * Thank you!
 *  Plugin Contributor [Savvas](https://wordpress.org/support/users/savvasha/)
 * (@savvasha)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/undefined-index-181/#post-15356351)
 * Make sure you are using the latest version of SportsPress.

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

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

 * ![](https://ps.w.org/sportspress/assets/icon-256x256.png?rev=1252005)
 * [SportsPress - Sports Club & League Manager](https://wordpress.org/plugins/sportspress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sportspress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sportspress/)
 * [Active Topics](https://wordpress.org/support/plugin/sportspress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sportspress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sportspress/reviews/)

## Tags

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

 * 5 replies
 * 3 participants
 * Last reply from: [Savvas](https://wordpress.org/support/users/savvasha/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/undefined-index-181/#post-15356351)
 * Status: resolved