Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Getting a 502 server error after changing the login from custom url to forum login form (setting)
Avatar
Sebastian Schimpf
Member
sp_UserOfflineSmall Offline
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?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
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?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Sebastian Schimpf
Member
sp_UserOfflineSmall Offline
Aug 29, 2017 - 3:01 am

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

Avatar
Sebastian Schimpf
Member
sp_UserOfflineSmall Offline
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. 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
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?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Sebastian Schimpf
Member
sp_UserOfflineSmall Offline
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. 

Avatar
Sebastian Schimpf
Member
sp_UserOfflineSmall Offline
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. 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
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. 

andy-signature.png
YELLOW
SWORDFISH
Avatar
Sebastian Schimpf
Member
sp_UserOfflineSmall Offline
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. 🙂

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 29, 2017 - 8:34 am

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

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 618
Members: 17348
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10120
Posts: 79607