Support Forum

Getting a 502 server error after changing the login from custom url to forum login form (setting)

1 2 >
Sebastian Schimpf
Member
Aug 29, 2017 - 2:47 am

Hi there, 

I just made changes to the login and registration settings and after doing that I am getting a 502 Bad Gateway error while landing on the /wp-login.php page. 
Even if I delete all custom URLs from the settings, this keeps happening. 
I contacted the WP Engine support and they could not see anything problematic on the server.

Any idea what is going wrong here?

Yellow Swordfish
Glinton, England
Member
Aug 29, 2017 - 2:53 am

A 502 most usually means a third-party server you are attempting to access is failing to respond. So are you loading items from a remote third-party server during the page load...

actually - doesn't the browser web console inform you of the url that is at fault?

Sebastian Schimpf
Member
Aug 29, 2017 - 3:01 am

thanks ... 
will check the console ... still learning to have that in mind instantly!

Sebastian Schimpf
Member
Aug 29, 2017 - 3:19 am

I don't get anything out of the console. 
It is also confusing that wp-logn.php is loaded because actually, the login form should not take me there, right? The login form is directly in the header of the forum. 

Yellow Swordfish
Glinton, England
Member
Aug 29, 2017 - 3:47 am

On the console make sure you have 'all' selected in the display section,. If you just have (for example) 'CSS' then you won't see the net/system errors.

The built-in SP login form is optional of course. And wp-login.php is loaded because that is the php file that performs the actual login processing.

So what options/settings have you changed and what to?

Sebastian Schimpf
Member
Aug 29, 2017 - 4:12 am

Now I saw another error when clicking on the login button:

screenshot_760.jpgImage Enlarger

A 404 related to manifest.json

And the settings I made are these ones:

screenshot_761.jpgImage Enlarger

Before I had custom urls for login and registration. 

Sebastian Schimpf
Member
Aug 29, 2017 - 4:13 am

by the way, is there any way to avoid my images (that I upload here) to always hang in between the text? It would look much better if there is always a clean line-break. 

Yellow Swordfish
Glinton, England
Member
Aug 29, 2017 - 4:40 am

So it is your wp-login.php file that is resulting in the 502. Perhaps worth checking the file integrity...

As to the images - that depends on the settings for the image display. We do not have ours set to create a line-break automatically. If you want to create one in our forum here then all you need to do is add an enter keystroke after the image and before any text. 

Sebastian Schimpf
Member
Aug 29, 2017 - 5:23 am

The error is fixed. It was a setting on the WPE Server, which was supposedly an extra security setting related to logins. They said that custom login forms can cause trouble in some cases. 

This simple thing just cost me 2 hours ... 
I am glad it is fixed. 🙂

Yellow Swordfish
Glinton, England
Member
Aug 29, 2017 - 8:34 am

My experience of WPE is that they do things like this...

1 2 >