Title: 502 errors
Last modified: September 21, 2018

---

# 502 errors

 *  [info2grow](https://wordpress.org/support/users/info2grow/)
 * (@info2grow)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/502-errors-3/)
 * We are getting 502 timeouts when using the Send to Groups function with ITThinx
   Groups integration.
 * We had this issue before on the same site [https://wordpress.org/support/topic/502-errors/](https://wordpress.org/support/topic/502-errors/)
 * We now have 3,860 users split into 113 groups.
 * The problem seems to be related to a max execution time set by WPEngine.
 * It seems the Send to Groups page loads all groups and all users in those group
   in order to build the select list on creation of the page. Would it be possible
   instead to use something like Select2 [https://select2.org/data-sources/ajax](https://select2.org/data-sources/ajax)
   to have an ajax select field that only loads groups/users on search? ie. you 
   must type in a few letters before it queries anything. This would make the queries
   smaller.
 * if so I’m happy to work on it but could use a little help.
 * Here’s another post I came across [https://rudrastyh.com/wordpress/select2-for-metaboxes-with-ajax.html](https://rudrastyh.com/wordpress/select2-for-metaboxes-with-ajax.html)
 * Thanks,
    Lawrence
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2F502-errors-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘502 errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/email-users_a0e0cf.svg)
 * [Email Users](https://wordpress.org/plugins/email-users/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-users/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-users/)
 * [Active Topics](https://wordpress.org/support/plugin/email-users/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-users/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-users/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [info2grow](https://wordpress.org/support/users/info2grow/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/502-errors-3/)
 * Status: not resolved