• Resolved Collin Condray

    (@ccondray)


    I recently updated several plugins on my site and started getting the following warning at the top of my dashboard:

    Warning: Invalid argument supplied for foreach() in /home/theconfe/public_html/wp-content/plugins/user-specific-content/config/main_plugin_fields.php on line 101

    I’m not using any features of the User Specific Content plugin yet so I’m not sure if I’ve lost any functionality from the plugin. The rest of my site appears to be running normally. Can anyone give me some idea of how to remove this warning? Thanks in advance for your help.

    https://www.ads-software.com/plugins/user-specific-content/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Collin Condray

    (@ccondray)

    I think I’ve come up with a fix that gets rid of the error message.
    Starting at line 98, of main_plugin_fields.php, replace it with the following code: https://pastebin.com/utdc4ztf. It makes sure that the foreach array is actually an array. I don’t know what this does to the functionality of the plugin but at least it gets rid of the error message.

    Plugin Author Bainternet

    (@bainternet)

    Thanks fixed in 1.0.2

    Thanks! This was a real god-send so to speak for a client running v1.0.1. Patched the file, then updated to the latest version. Awesome.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Invalid argument supplied for foreach in main_plugin_fields.php on line 101’ is closed to new replies.