• Edit: 3/27/2015 Looking good on 4.1.1!!!

    ——- previous review ——-

    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.

  • The topic ‘PHP Warning: Invalid argument supplied for foreach()’ is closed to new replies.