I have problem with uploading and cropping user avatars. In php error logs there's a lot of this warning:

PHP Warning:  transliterator_transliterate(): Could not create transliterator with ID "Any-Latin; Latin-ASCII; [\u0080-\u7fff] remove" (transliterator_create: unable to open ICU transliterator with id "Any-Latin; Latin-ASCII; [\u0080-\u7fff] remove": U_INVALID_ID) in /wp-content/plugins/buddypress/bp-core/classes/class-bp-attachment.php on line 292

Code from line 292:

 * Helper to convert utf-8 characters in filenames to their ASCII equivalent.
 * @since 2.9.0
 * @param  string $retval Filename.
 * @return string
public function sanitize_utf8_filename( $retval ) {
    // PHP 5.4+ or with PECL intl 2.0+
    if ( function_exists( 'transliterator_transliterate' ) && seems_utf8( $retval ) ) {
        /*Line 292*/ $retval = transliterator_transliterate( 'Any-Latin; Latin-ASCII; [\u0080-\u7fff] remove', $retval );

    // Older.
    } else {
        // Use WP's built-in function to convert accents to their ASCII equivalent.
        $retval = remove_accents( $retval );

        // Still here? use iconv().
        if ( function_exists( 'iconv' ) && seems_utf8( $retval ) ) {
            $retval = iconv( 'UTF-8', 'ASCII//TRANSLIT//IGNORE', $retval );

    return $retval;

Sometimes when I try to set user avatar there's a bugs with cropping and I get message "There was a problem cropping profile photo.".

I also notice that files don't save properly on the server. On the right there's properly saved files, on the left I think is not correct saved: Image Really please help, I don't know how to fix this.

Wordpress 4.9.6

Buddypress 3.0.0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.