• Resolved chchch

    (@goch)


    Hi,

    In debug mode, i have the following warning:

    Notice: Undefined index: height in?/wp-content/plugins/soundcloud-shortcode/soundcloud-shortcode.php?on line?162

    I just have a basic shortcode like that:
    [soundcloud]https://soundcloud.com/zerocrossingpoint/perceptio-audio-version[/soundcloud]

    I don’t have the warning if i change the link to a soundcloud list (and not a single sound).

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author indextwo

    (@indextwo)

    Yup, this seems to be an issue when certain conditions are met: PHP8 became a lot more strict with error reporting, and depending on the environment (e.g. if your host hasn’t locked down E_NOTICE & E_WARNING messages), you might get these with a shortcode like the one you mentioned.

    I had to modify my environment to get this to show, but it did after I restarted. I’ve updated the code and tested it, eliminating a couple of other undefined warnings that were showing too. Once I’ve finished the PHPCS tests, I’ll release an updated version, hopefully later today.

    Thread Starter chchch

    (@goch)

    cool, thank you for the quick and detailled reply!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Undefined index warning’ is closed to new replies.