Title: 502 Error When Verifying
Last modified: July 30, 2018

---

# 502 Error When Verifying

 *  [jasonvtp](https://wordpress.org/support/users/jasonvtp/)
 * (@jasonvtp)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/502-error-when-verifying/)
 * Hi,
 * When a user clicks on the verification link in the email they get sent to a 502
   error page.
 * We tried to find the reason for it and it appears to be with the “Allow Automatic
   Login After Successful Verification”. If we disable that then it works fine.
 * Seems like it has something to do with this line of code inside class-xlwuev-
   woocommerce-confirmation-email-public.php
    `wp_set_auth_cookie( $user_id );`
 * If we comment that out, there is no error. The $user_id seems to be valid. The
   link ([https://domain.com/my-account/?woo_confirmation_verify=<some](https://domain.com/my-account/?woo_confirmation_verify=<some)
   id>) appears to be fine as well. Any ideas to why that line might cause an issue?
 * Best,
 * Jason

The topic ‘502 Error When Verifying’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-confirmation-email_e9dce5.svg)
 * [User Email Verification for WooCommerce](https://wordpress.org/plugins/woo-confirmation-email/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-confirmation-email/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-confirmation-email/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-confirmation-email/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-confirmation-email/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jasonvtp](https://wordpress.org/support/users/jasonvtp/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/502-error-when-verifying/)
 * Status: not resolved