• Resolved webdev3996

    (@webdev3996)


    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 to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tony Zeoli

    (@tonyzeoli)

    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

    (@majick)

    @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

    (@majick)

    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.