Support Forum

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

SS Sebastian Schimpf
Sebastian Schimpf
Member

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?

12 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

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?

SS Sebastian Schimpf
Sebastian Schimpf
Member

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

SS Sebastian Schimpf
Sebastian Schimpf
Member

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. 

YS Yellow Swordfish
Yellow Swordfish
Member

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?

SS Sebastian Schimpf
Sebastian Schimpf
Member

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

screenshot_760.jpg

A 404 related to manifest.json

And the settings I made are these ones:

screenshot_761.jpg

Before I had custom urls for login and registration. 

SS Sebastian Schimpf
Sebastian Schimpf
Member

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. 

YS Yellow Swordfish
Yellow Swordfish
Member

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. 

SS Sebastian Schimpf
Sebastian Schimpf
Member

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. 🙂

YS Yellow Swordfish
Yellow Swordfish
Member

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

SS Sebastian Schimpf
Sebastian Schimpf
Member

That sucks! … but other than that my experience with WPE is quite good. 
By the way:
Do you have a recommendation for a better WP managed hosting and great 24/7 support?

YS Yellow Swordfish
Yellow Swordfish
Member

We have been happily using a VPS at the same company for so long now I am truly out of touch. But @mr-papa might have some ideas.

On the whole I do hear good reviews of WPE but I also know that it comes up every now and then here often over some so-called ‘security’ add-on that the user didn’t know was being used!

MP Mr Papa
Mr Papa
Member

we struggled for many years finding a good host…  have been quite happy for last 3 or 4 with hivelocity…  though they do not have anything specific to WP that I know of…