WordPress.org

Forums

Profile Pic
After uploading the profile pic , page will redirects to error messages (4 posts)

  1. gvvijaybhaskar
    Member
    Posted 4 years ago #

    These are the error messages:

    Warning: Invalid argument supplied for foreach() in D:\xampp\htdocs\wordpress-mu\wp-content\plugins\profile-pic\profile-pic.php on line 422

    Warning: Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\wordpress-mu\wp-content\plugins\profile-pic\profile-pic.php:422) in D:\xampp\htdocs\wordpress-mu\wp-includes\pluggable.php on line 890

    I added this if condition before foreach statement at 422 line in profile-pic.php and it is working fine now.
    if($raw_data)

  2. RuntOfTheLitter3
    Member
    Posted 4 years ago #

    i don't get the error anymore, but the profile pic still doesn't show up on the front end.

    http://literateletter.com/ccsnowrunners/?page_id=29#comment-6

  3. mauricio.camayo
    Member
    Posted 4 years ago #

    I solved typing this around line 422 on /home/[YOUR_HOME]/public_html/wp-content/plugins/profile-pic/profile-pic.php

    if($raw_data){
    		foreach ($raw_data as $key => $val) {
    			$reversed_data[$val] = $key;
    		}
    	}
  4. Mysterarts
    Member
    Posted 4 years ago #

    yes, it works! Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Profile Pic
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic