Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This is not working on a WP Engine site #201

Closed
pelicanpaul opened this issue Nov 17, 2017 · 9 comments
Closed

This is not working on a WP Engine site #201

pelicanpaul opened this issue Nov 17, 2017 · 9 comments
Milestone

Comments

@pelicanpaul
Copy link

When I try to authenticate with the code form email I get 502 Bad Gateway
nginx

Ideas?

@gilmourcraves
Copy link

Interesting. Coming back to this. Now it does not send the email. I have checked to see if emails are sent and they do send but with this plugin they are not sent. - Paul

@kasparsd
Copy link
Collaborator

@pelicanpaul Do you have access to the PHP or Nginx error logs? It is almost impossible to debug this without specific details on where it fails.

@pelicanpaul
Copy link
Author

Yep. I looked at the errors but there is nothing there related to this. But the mail settings are as follows.

SendMail path (UNIX): /usr/sbin/sendmail -t -i
SMTP server (Windows): localhost
SMTP port (Windows): 25
Add X header: 1

@pelicanpaul
Copy link
Author

On another WP engine site I see the

502 Bad Gateway
nginx

Error with /wp-login.php?action=validate_2fa
page

@pelicanpaul
Copy link
Author

It was discovered that the email is sent from an account that was created AFTER the plugin is installed. Not sure why???

@kasparsd
Copy link
Collaborator

kasparsd commented Dec 6, 2017

@pelicanpaul Could you please ask WP Engine support for the related errors logs? We really need to know which part of the code is triggering the error. Thanks!

@kasparsd
Copy link
Collaborator

Closing for now. Please re-open if more details can be provided.

@pelicanpaul
Copy link
Author

Hi, Finally got this working with support from WP Engine. The tech guys said "I had to disable one of our login protection settings conflicting with it." Not sure what it was but what a freakin pain in the ass not having access to the server settings and misc security stuff.

@ccoley
Copy link

ccoley commented Nov 2, 2018

@kasparsd I encountered this issue as well and it was because WP-Engine uses a filter to add a wpe-login=true parameter to the login form's action URL. It does this with a filter on the site_url hook that only applies when the scheme is login_post. I've submitted a pull request that applies this filter when running in WP-Engine environments.

#257

@jeffpaul jeffpaul added this to the 0.3.0 milestone Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants