vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=328301

OpenResty Error on logout Need some help please
by Scalemotorcars
24 Oct 2020 22:26

1 Attachment(s)
For a few months now I keep getting an error on logout. It's the same issue with a totally stock install. When I click logout I get the following.

I have noticed that my IP logs for all new members are exactly the same. For some reason, VB is recording my host servers IP as all members IP.

Anyway here is the message I get.

yilmaz 25 Oct 2020 00:21

Ok lets do this, disable plugins via the includes/config.php file.

To do that open your includes/config.php file and below <?php add the following.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

So it looks like this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


If the same problem persists, it may be the php version.
If there is no problem, one of the products is faulty or likewise there is a php version mismatch.

z3r0 25 Oct 2020 07:14

Did you speak to your host?

When I looked at your site last week openresty was the server that browser console tools say your site is being served from and I know you said you used Apache, so from a little Googling it looks like your host has put an opentrsy/nginx reverse proxy server in front of your site which would explain the IP problem.

It would be worth checking admincp -> left column -> Maintenance -> View PHP info if $_SERVER['HTTP_X_FORWARDED_FOR'] or any other variable in the "PHP variables" section shows your real IP when viewing it, to see if the proxy is forwarding a real IP.

Scalemotorcars 25 Oct 2020 18:40

I see the offending IP under (_SERVER["REMOTE_ADDR"]) Ill call the host and see if it can be changed. Thanks for the help.

z3r0 26 Oct 2020 07:52

No, can you see your connecting IP in any of the variables in the "PHP variables" section? that way we know the real IP's are being forwarded through the proxy, if they are then something should be able to be done to sort the problem.

Scalemotorcars 29 Oct 2020 22:31

Yeah I see mine under
_SERVER["HTTP_X_FORWARDED_FOR"]

_SERVER["HTTP_X_REAL_IP"]

z3r0 30 Oct 2020 07:35

So it is a nginx reverse proxy in from of your site.

in your config.php try this near the end and see if correct IPs start showing in who's online.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



All times are GMT. The time now is 17:22.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.