Title: Error &#8211; &quot;There was a problem while requesting suggestions&quot;.
Last modified: August 30, 2016

---

# Error – "There was a problem while requesting suggestions".

 *  Resolved [shpitzyl](https://wordpress.org/support/users/shpitzyl/)
 * (@shpitzyl)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/error-there-was-a-problem-while-requesting-suggestions/)
 * After updating from 1.1.0 to 1.3.0 the plugin doesn’t show old suggestions, It
   show only avatars that were uploaded after the update.
 * [https://wordpress.org/plugins/bp-avatar-suggestions/](https://wordpress.org/plugins/bp-avatar-suggestions/)

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

 *  Thread Starter [shpitzyl](https://wordpress.org/support/users/shpitzyl/)
 * (@shpitzyl)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/error-there-was-a-problem-while-requesting-suggestions/#post-6506620)
 * 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](https://wordpress.org/support/users/shpitzyl/)
 * (@shpitzyl)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/error-there-was-a-problem-while-requesting-suggestions/#post-6506657)
 * 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?
 *  [Mathieu Viet](https://wordpress.org/support/users/imath/)
 * (@imath)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/error-there-was-a-problem-while-requesting-suggestions/#post-6506875)
 * Hi thanks for the feedback. Looking at it and will upgrade if needed asap.
 *  [Mathieu Viet](https://wordpress.org/support/users/imath/)
 * (@imath)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/error-there-was-a-problem-while-requesting-suggestions/#post-6506876)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/bp-avatar-suggestions_f1f1f1.svg)
 * [BP Avatar Suggestions](https://wordpress.org/plugins/bp-avatar-suggestions/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bp-avatar-suggestions/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bp-avatar-suggestions/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-avatar-suggestions/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-avatar-suggestions/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-avatar-suggestions/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Mathieu Viet](https://wordpress.org/support/users/imath/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/error-there-was-a-problem-while-requesting-suggestions/#post-6506876)
 * Status: resolved