Moodle Apr 22, 2003| teaching Picture should not have an empty string. Fixed by adding $user->picture = -1 . You can e-mail me at sacha@sachachua.com.