• Resolved sheriffbigbywolf

    (@sheriffbigbywolf)


    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!

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

    (@rochesterj)

    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

    Thanks!

    Thread Starter sheriffbigbywolf

    (@sheriffbigbywolf)

    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

    (@savvasha)

    Hi @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

    (@sheriffbigbywolf)

    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

    (@savvasha)

    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.