• Hi, we are noticing lots of warnings in our debug logs:

    PHP Warning: Undefined array key 2 in /wp-includes/feed.php on line 484
    PHP Warning: Undefined array key 1 in /wp-includes/feed.php on line 494

    After digging further, it appears that these errors are happening for posts that are type “podcast” which is the type created by SSP. The meta field “enclosure” only has the link for posts of type “podcast”, where it also has other data for other posts with embedded media.

    I see in another support post on this forum that someone else had a similar issue: https://wordpress.org/support/topic/php-warning-in-header-2/

    You responded there to say that that particular WordPress core function shouldn’t be called if we are using the SSP feed template. As far as I know, we have everything set up as normal with SSP, but we are still receiving that error.

    Where should I look to find out whether we are using the SSP feed template or not?

    Thanks!

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

    (@zahardoc)

    Hi @arypneta,

    Thank you for bringing it to our attention.
    It looks like this is a core WordPress issue, not something that we can fix from our side. I have made a ticket for it in the WordPress core track, hope it will be fixed in the next WordPress versions.

    Meanwhile, please make sure you don’t use links to /podcast/feed anywhere, but only /feed/podcast. Also, you can setup a redirect using any of the redirect plugins you like.

    Best regards,
    Sergiy.

    Thread Starter arypneta

    (@arypneta)

    Okay, thanks for the update. I don’t think we are using /podcast/feed anywhere, but maybe we’ll try redirecting to /feed/podcast explicitly.

    Thanks for submitting a bug to WP Core. Hopefully, they fix the issue!

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

The topic ‘PHP Warning Undefined array key’ is closed to new replies.