vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   OpenResty Error on logout Need some help please (https://vborg.vbsupport.ru/showthread.php?t=328301)

Scalemotorcars 10-24-2020 08:26 PM

OpenResty Error on logout Need some help please
 
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 10-24-2020 10:21 PM

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:

define('DISABLE_HOOKS'true); 

So it looks like this:
PHP Code:

<?php
define
('DISABLE_HOOKS'true);


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 10-25-2020 06:14 AM

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 10-25-2020 05:40 PM

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 10-26-2020 06:52 AM

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 10-29-2020 09:31 PM

Yeah I see mine under
_SERVER["HTTP_X_FORWARDED_FOR"]

_SERVER["HTTP_X_REAL_IP"]

z3r0 10-30-2020 06:35 AM

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']; }


All times are GMT. The time now is 08:51 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01089 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete