Can't upload user picture When I want to add my user picture, the picture can't upload and when I inspect it the link is broken and get this error:


  Warning: array_key_exists() expects parameter 2 to be array, null given in theme_image_formatter() (line 605 of /home/webpenir/public_html/modules/image/image.field.inc).


However, when I add a picture for another user, it works pretty good.

how can I solve this?

EDIT

Only user 1 can't upload but other users can do, which is really strange.
It is a known issue you can try this patch  and Suppose if that patch not workout for you check the other patches here  https://drupal.org/node/920840  and if any of that patches not solved your issue then the best option is you have to submit a bug report.