Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter shpitzyl

    (@shpitzyl)

    After some testing it seems that the issue is different. For some strange reason it doesn’t show 150x150px images. It only works when uploading larger images.

    What could be the problem?

    Thread Starter shpitzyl

    (@shpitzyl)

    I think I found were the problem is.

    In bp-avatar-suggestions-front.php, inside the function prepare_for_js() there is this condition:

    if ( ! empty( $suggestion_size['thumbnail'] ) && $suggestion_size['thumbnail'][3] ) {
    				$avatar['sizes']['thumbnail'] = array(
    					'height'      => $suggestion_size['thumbnail'][2],
    					'width'       => $suggestion_size['thumbnail'][1],
    					'url'         => str_replace( array( 'https:', 'http:' ), '', $suggestion_size['thumbnail'][0] ),
    					'orientation' => $suggestion_size['thumbnail'][2] > $suggestion_size['thumbnail'][1] ? 'portrait' : 'landscape',
    				);
    			} else {
    				return false;
    			}
    		}

    After removing this from the if statement:
    && $suggestion_size['thumbnail'][3]

    I can see the suggestions on the front end.

    I’m not a php developer and not sure what the issue is. This bug is the only thing that prevent me from upgrading to buddypress 2.3.0 and bp-avatar-suggestions 1.3.0

    Would it be safe to remove that condition from the if statement?

    Hi thanks for the feedback. Looking at it and will upgrade if needed asap.

    1.3.1 upgrade should fix the issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error – "There was a problem while requesting suggestions".’ is closed to new replies.