Title: PHP Warning: &#8220;Undefined array key &#8220;pci_osm&#8221;&#8221;
Last modified: August 18, 2025

---

# PHP Warning: “Undefined array key “pci_osm””

 *  Resolved [Jer Clarke](https://wordpress.org/support/users/jerclarke/)
 * (@jerclarke)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-pci_osm/)
 * Hi all, thanks as always for this incredible plugin and all the support you put
   into it.
 * I discovered another one of those classic little bugs where an edge-case results
   in PHP warnings in the logs:
 *     ```wp-block-code
       [18-Aug-2025 16:50:23] PHP warning: "Undefined array key "pci_osm"" file: [...]/powerpress/powerpress.php:1498 url: globalvoices.org/-/special/global-voices-podcast/feed/ 
       ```
   
 * Seems easy enough to fix, as the code just doesn’t validate that the array item
   isn’t empty before checking if it’s an array:
 *     ```wp-block-code
       if( !is_array($Feed['pci_geo']) && !empty($Feed['pci_geo']) ) {     echo " geo=\"" . htmlspecialchars($Feed['pci_geo']) . "\"";}if( !is_array($Feed['pci_osm']) && !empty($Feed['pci_osm']) ) {     echo " osm=\"" . htmlspecialchars($Feed['pci_osm']) . "\"";}
       ```
   
 * Seems to me all we need to do is flip the order so it checks `!empty()` first,
   then check if it’s an array:
 *     ```wp-block-code
       if( !empty($Feed['pci_geo']) && !is_array($Feed['pci_geo']) ) {     echo " geo=\"" . htmlspecialchars($Feed['pci_geo']) . "\"";}if( !empty($Feed['pci_osm']) && !is_array($Feed['pci_osm']) ) {     echo " osm=\"" . htmlspecialchars($Feed['pci_osm']) . "\"";}
       ```
   
 * I wasn’t able to replicate this issue using a local test site, but I’m going 
   to update my live site and confirm this solves the problem for me and reply back.

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

 *  Thread Starter [Jer Clarke](https://wordpress.org/support/users/jerclarke/)
 * (@jerclarke)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-pci_osm/#post-18604070)
 * Update: I pushed that change to my live site and everything still seems to work.
   It definitely silenced the warning.
 *  Plugin Support [Shawn](https://wordpress.org/support/users/shawnogordo/)
 * (@shawnogordo)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-pci_osm/#post-18604121)
 * Thanks for the report! It has been passed on to the Blubrry dev team.
 *  Thread Starter [Jer Clarke](https://wordpress.org/support/users/jerclarke/)
 * (@jerclarke)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-pci_osm/#post-18604158)
 * Thanks Shawn! I’ll close this ticket and look forward to removing my hotfix when
   the next version comes out. Always appreciate your team 🙏🏻

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

The topic ‘PHP Warning: “Undefined array key “pci_osm””’ is closed to new replies.

 * ![](https://ps.w.org/powerpress/assets/icon.svg?rev=2849869)
 * [PowerPress Podcasting plugin by Blubrry](https://wordpress.org/plugins/powerpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/powerpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/powerpress/)
 * [Active Topics](https://wordpress.org/support/plugin/powerpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/powerpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/powerpress/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jer Clarke](https://wordpress.org/support/users/jerclarke/)
 * Last activity: [9 months, 3 weeks ago](https://wordpress.org/support/topic/php-warning-undefined-array-key-pci_osm/#post-18604158)
 * Status: resolved