I found the issue causing the message “Sorry, Image not available” after cropping to be to do with a site hosted on a windows server. For some reason the wordpress sanitising code esc_url returns an empty string with windows IIS. Hence the form id=”iframe-crop-form” has no value for the hidden input element “attachment_file” and the image gets lost (although it has actually been uploaded to the general uploads directory).
My quick fix was to change line 280 of user-avatar.php (as of version 1.2.1)
from
<input type="hidden" name="attachment_file" id="attachment_file" value="<?php echo esc_url($file); ?>" />
to
<input type="hidden" name="attachment_file" id="attachment_file" value="<?php echo $file; ?>" />
i’m sure there’s a better solution for this but it’s lunch time now and so i have other priorities. cheers.