Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lekandu

    (@lekandu)

    In a minor breakthrough.
    The bogus email address was on a domain which does exist (one of mine) – just the name was for an account which didn’t exists i.e. [email protected]
    I changed it to a totally fake address ([email protected]) and things cleared up.
    so it’s somehow related to the setup on my host?
    not sure how that would affect other emails, to other domains, on the same BCC though. doesn’t make sense to my tired brain.

    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.

Viewing 2 replies - 1 through 2 (of 2 total)