"Warning: Invalid argument supplied for foreach() …"
-
Hi Andrea,
Thanks for your work on this plugin. I went to utilize some of the new features and found this warning next to “Form Field:” and all fields missing;
Warning: Invalid argument supplied for foreach() in /home/**removed-username**/public_html/wp-content/plugins/bp-profile-search/bps-functions.php on line 148
I have no code experience, but this is what it’s referencing (top line is 148);
foreach ($bps_options['field_name'] as $k => $id) { if (empty ($fields[$id])) continue; $label = $bps_options['field_label'][$k]; $desc = $bps_options['field_desc'][$k]; ?>
Where the search toggle should be in the Members Directory, it now says “BP Profile Search : Error, you have not configured your search form.”. It appears this is a result of the most recent update. Do you know what might be causing these warnings and errors and a possible fix? Thanks for your help.
WordPress 3.8.2, Multisite, BuddyPress 1.9.2.
- The topic ‘"Warning: Invalid argument supplied for foreach() …"’ is closed to new replies.