WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Profile Pic] Error with site, profile pic related

[Plugin: Profile Pic] Error with site, profile pic related

  • Hello,

    I recently had an error occur after activating the plug-in…it reads as follows after I try and update a user profile (even when I do not change anything, just click update):

    Warning: Invalid argument supplied for foreach() in /home1/conteste/public_html/wp-content/plugins/profile-pic/profile-pic.php on line 422

    Warning: Cannot modify header information – headers already sent by (output started at /home1/conteste/public_html/wp-content/plugins/profile-pic/profile-pic.php:422) in /home1/conteste/public_html/wp-includes/pluggable.php on line 850

    Any help would be greatly appreciated!

    Thanks,
    Chris

Viewing 3 replies - 1 through 3 (of 3 total)
  • Bump

    I had the same probleme 5 minutes ago… anyone have a fix for this?

    I just got the same thing. The problem is if you don’t have any options checked off for what info. you’d like to make public. Go to line 419 and change the code to this:

    // store form data
    	if($_POST['profilepic_displayoptions']){
    	$raw_data = $_POST['profilepic_displayoptions'];
    	$reversed_data = array();
    	foreach ($raw_data as $key => $val) {
    		$reversed_data[$val] = $key;
    	}}

    That just checks to see if there are any profile pic display options (the if part) and if there are it processes them, if not it moves along. Solved the issue for me.

    Great plug in. Cheers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Profile Pic] Error with site, profile pic related’ is closed to new replies.
Skip to toolbar