Title: PHP Warning Undefined array key
Last modified: August 19, 2023

---

# PHP Warning Undefined array key

 *  [arypneta](https://wordpress.org/support/users/arypneta/)
 * (@arypneta)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-11/)
 * 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/](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](https://wordpress.org/support/users/zahardoc/)
 * (@zahardoc)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-11/#post-16892222)
 * Hi [@arypneta](https://wordpress.org/support/users/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](https://wordpress.org/support/users/arypneta/)
 * (@arypneta)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-11/#post-16901878)
 * 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.

 * ![](https://ps.w.org/seriously-simple-podcasting/assets/icon-256x256.png?rev=
   970355)
 * [Seriously Simple Podcasting](https://wordpress.org/plugins/seriously-simple-podcasting/)
 * [Support Threads](https://wordpress.org/support/plugin/seriously-simple-podcasting/)
 * [Active Topics](https://wordpress.org/support/plugin/seriously-simple-podcasting/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/seriously-simple-podcasting/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/seriously-simple-podcasting/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [arypneta](https://wordpress.org/support/users/arypneta/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-11/#post-16901878)
 * Status: not resolved