The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
OpenResty Error on logout Need some help please
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. |
#2
|
||||
|
||||
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. PHP Code:
PHP 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. |
#3
|
||||
|
||||
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. |
#4
|
||||
|
||||
I see the offending IP under (_SERVER["REMOTE_ADDR"]) Ill call the host and see if it can be changed. Thanks for the help.
|
#5
|
||||
|
||||
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.
|
#6
|
||||
|
||||
Yeah I see mine under
_SERVER["HTTP_X_FORWARDED_FOR"] _SERVER["HTTP_X_REAL_IP"] |
#7
|
||||
|
||||
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. Code:
if (isset($_SERVER['HTTP_X_REAL_IP'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_REAL_IP']; } |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|