WordPress.org

Ready to get started?Download WordPress

Plugin Reviews

Cute Profiles

Social Media Profiles and Sharing Icons at Fixed Locations

1 review
Average Rating
4 stars
4.1 out of 5 stars
You are currently viewing the reviews that provided a rating of 1 star. Click here to see all reviews.
1 star
PHP Warning: Invalid argument supplied for foreach()
By , for WP 3.9

error_log reads

[08-May-2014 04:26:46 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/ponyo/public_html/wp-content/plugins/cute-profiles/processors/cute_1.php on line 25
[08-May-2014 04:26:46 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/ponyo/public_html/wp-content/plugins/cute-profiles/processors/cute_1.php on line 160
[08-May-2014 04:26:46 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/ponyo/public_html/wp-content/plugins/cute-profiles/processors/cute_1.php on line 187

I am getting a massive error_log from these errors. This plugin seems to be very popular on my instance. This is very annoying, here's a possible solution.

Line 25, 160, 187

in foreach check if array.

foreach ((array) $cute_profiles_network as $key=>$value) {

add (array) to each foreach, upload, profit. Errors go away.

You must log in to submit a review. You can also log in or register using the form near the top of this page.