Undefined Index
-
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 71It 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.
-
This topic was modified 4 years, 3 months ago by
-
Hi there!
Thanks for reaching out.
What happens when you use the shortcode instead of the widget?
https://support.themeboy.com/article/100-countdown-shortcodeThanks!
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 45Hi @sheriffbigbywolf ,
What theme are you using? Did you try to switch a default theme like
RookieorTwentyTwentyand confirm that the issue is still there?
What is the exact shortcode code you are using?Thanks,
SavvasHi,
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!
Make sure you are using the latest version of SportsPress.
The topic ‘Undefined Index’ is closed to new replies.