Title: PHP Warning: array_key_exists() data-feeds.php
Last modified: April 14, 2020

---

# PHP Warning: array_key_exists() data-feeds.php

 *  Resolved [webdev3996](https://wordpress.org/support/users/webdev3996/)
 * (@webdev3996)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-warning-array_key_exists-data-feeds-php/)
 * Hi, I’m constantly getting the following PHP warning from the website error log:
 * [Tue Apr 14 04:12:04 2020] [warn] [client 178.63.13.154] mod_fcgid: stderr: PHP
   Warning: array_key_exists() expects parameter 2 to be array, string given in
   /
   var/www/vhosts/3mfm.com.au/httpdocs/wordpress/wp-content/plugins/radio-station/
   includes/data-feeds.php on line 849
 * That’s in function radio_station_add_feeds() & the section check if feeds are
   registered.
 * What should I look for to correct this?
 * Radio Station V2.3.0
    Wordpress V5.4 PHP V7.0.33 MySQL V5.1.73
 * Thanks,
    Rod
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-array_key_exists-data-feeds-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Tony Zeoli](https://wordpress.org/support/users/tonyzeoli/)
 * (@tonyzeoli)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-warning-array_key_exists-data-feeds-php/#post-12675269)
 * The lead dev, Tony Hayes, will pick this up shortly and investigate. Thanks for
   your patience while we take a look.
 *  Plugin Contributor [Tony Hayes](https://wordpress.org/support/users/majick/)
 * (@majick)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-warning-array_key_exists-data-feeds-php/#post-12678074)
 * [@webdev3996](https://wordpress.org/support/users/webdev3996/)
 * At that point in the code it is checking your site’s existing `rewrite_rules`
   option.
    I will add a test to check they are not empty in a future version…
 * But they shouldn’t be empty for anyone so far as I know, so this may indicate
   some other problem on your site. First thing you can do is resave your Permalinks
   from the Settings -> Permalinks WP Admin Page. Alternatively, deactivating and
   reactivating the plugin also triggers a flush or your rewrite rules.
 * This relates to your Data Feeds, which are a fallback data API to the REST API.
   So if you don’t need that and are still getting errors, you can deactivate that
   service in the meanwhile in the Plugin Settings.
 *  Plugin Contributor [Tony Hayes](https://wordpress.org/support/users/majick/)
 * (@majick)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-warning-array_key_exists-data-feeds-php/#post-12755263)
 * I’m going to close this one out as we haven’t heard back, as the extra checking
   code was added and hopefully flushing the permalinks manually was able to fix
   this problem.

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

The topic ‘PHP Warning: array_key_exists() data-feeds.php’ is closed to new replies.

 * ![](https://ps.w.org/radio-station/assets/icon-256x256.png?rev=2905948)
 * [Radio Station by netmix® - Manage and play your Show Schedule in WordPress!](https://wordpress.org/plugins/radio-station/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/radio-station/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/radio-station/)
 * [Active Topics](https://wordpress.org/support/plugin/radio-station/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/radio-station/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/radio-station/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Tony Hayes](https://wordpress.org/support/users/majick/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/php-warning-array_key_exists-data-feeds-php/#post-12755263)
 * Status: resolved