vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   A required field called ip is missing or has an invalid value? (https://vborg.vbsupport.ru/showthread.php?t=295733)

AK47- 03-04-2013 11:24 AM

A required field called ip is missing or has an invalid value?
 
Members are getting this error.

Code:

A required field called ip is missing or has an invalid value.

How would i fix the problem?

kh99 03-04-2013 01:27 PM

Try temporarily disabling plugins to see if it goes away. If it doesn't then it sounds like you have a database problem. What does the rest of the error message say?

AK47- 03-04-2013 02:02 PM

Quote:

Originally Posted by kh99 (Post 2407796)
Try temporarily disabling plugins to see if it goes away. If it doesn't then it sounds like you have a database problem. What does the rest of the error message say?

When i visit a thread i get this error

https://vborg.vbsupport.ru/external/2013/03/29.jpg

--------------- Added [DATE]1362410146[/DATE] at [TIME]1362410146[/TIME] ---------------

Update: I disable all plugins via config and the problem still occurs.

kh99 03-04-2013 02:22 PM

Oh, OK - I assumed it was a database error, but it's not. I'm not sure what causes that error. (hopefully someone else has an idea).

Edit: OK, I think it might be the "Who Read a Thread" feature, which is turned on under "Thread Display Options" in the admincp settings. But I don't understand why it wouldn't work. Did this just start happening, or did you make any changes to your site recently?

GamerPerfection 03-10-2013 06:13 PM

I'm getting the same error message on my site. However, it's extremely strange.

On my computer if i am logged in to the forum I get this error on every thread I view. However, if I logout of the forum and view it as a guest then I can see all threads.

The next odd thing is that I don't have the problem on my Samsung SIII, however I did experience the problem on my phone a few days ago.

--------------- Added [DATE]1362940375[/DATE] at [TIME]1362940375[/TIME] ---------------

I fixed it! All I did was re-upload class_core.php.

I noticed in the version I had up it contained this:

Code:

      if ($proxy)

      {


          define('ALT_IP', $this->ipaddress);


          define('IPADDRESS', $_SERVER['HTTP_X_FORWARDED_FOR']);


      }


      else


      {


          define('IPADDRESS', $_SERVER['HTTP_X_FORWARDED_FOR']);


          define('ALT_IP', $this->alt_ip);

But the version from the original vBulletin 4.2.0 PL3 download contained this:

Code:

if ($proxy)

{


define('ALT_IP', $this->ipaddress);


define('IPADDRESS', $this->alt_ip);


}


else


{


define('IPADDRESS', $this->ipaddress);


define('ALT_IP', $this->alt_ip);

All I can put it down to is this Mod: https://vborg.vbsupport.ru/showthread.php?t=231873
However, the instructions it gave didn't require me to change that specific text, so I am confused as to how the text changed from the original version.

But now i've re-uploaded class_core.php the error seems to be gone and I can log in to the admincp ok. So if anyone experiences this problem then give that a try.

paolo de rosa 10-10-2013 05:43 PM

good evening,
we have the same problem with version 4.2.1
you can help us to find a solution?
thanks in advance

tbworld 10-10-2013 07:32 PM

Quote:

Originally Posted by paolo de rosa (Post 2451888)
good evening,
we have the same problem with version 4.2.1
you can help us to find a solution?
thanks in advance

Have you installed or updated any MODs lately? If so can you list them here, several of us are trying to find the source of the error -- additional data will help.

Thank you

I will of course post our findings.

paolo de rosa 10-11-2013 08:50 AM

Quote:

Originally Posted by tbworld (Post 2451944)
Have you installed or updated any MODs lately? If so can you list them here, several of us are trying to find the source of the error -- additional data will help.

Thank you

I will of course post our findings.

we have only two plugins:
"Tapatalk" (which will remove when we use ForumRunner)
"Usergroup Color Bar" version 2.1.1 "

We have already disabled the plugin with
"define ('DISABLE_HOOKS', true);" in the file "config.php"
but does not work the same.
Thanks in advance

paolo de rosa 10-17-2013 07:29 AM

Quote:

Originally Posted by tbworld (Post 2451944)
Have you installed or updated any MODs lately? If so can you list them here, several of us are trying to find the source of the error -- additional data will help.

Thank you

I will of course post our findings.


Can you help us to find a solution, please?
Regards

paolo de rosa 10-30-2013 10:27 AM

Good morning,
I try to add the Proxy addresses are allowed in the config.php file:

/* #### Reverse Proxy IP ####
If your use a system where the main IP address passed to vBulletin is the address of a proxy server
and the actual 'real' ip address is passed in another http header then you enter the details here */

/* Enter your known [trusted] proxy servers here. You can list multiple trusted IPs separated by a comma.*/
//$config['Misc']['proxyiplist'] = '127.0.0.1, 192.168.1.6';
$config['Misc']['proxyiplist'] = 'XX.XX.X.XX, XXX.X.XXX.XXX';

/* If the real IP is passed in a http header variable other than HTTP_X_FORWARDED_FOR, then you can set the name here; */
$config['Misc']['proxyipheader'] = 'HTTP_X_FORWARDED_FOR';
//$config['Misc']['proxyipheader'] = 'HTTP_X_REAL_IP';

I try to replace the following string in the file class_core.php:

if ($proxy)
{
define('ALT_IP', $this->ipaddress);
define('IPADDRESS', $this->alt_ip);
}
else
{
define('IPADDRESS', $this->ipaddress);
define('ALT_IP', $this->alt_ip);
}

define('SESSION_HOST', substr(IPADDRESS, 0, 15));


with this:

if ($proxy)
{
define('ALT_IP', $this->ipaddress);
define('IPADDRESS', $this->alt_ip);
}
else
{
define('IPADDRESS', $this->ipaddress);
define('ALT_IP', $this->alt_ip);
}
if (strpos(IPADDRESS, ',') !== false) {
$array_ip = explode(",", IPADDRESS);
define('SESSION_HOST', trim($array_ip[1]) );
} else define('SESSION_HOST', substr(IPADDRESS, 0, 15));

This string identifies the public IP address from which the request is.
This change was made because, in the event that the proxy has the "X-Forwarded-For" active, passes two IP addresses and the previous string does not interpret correctly the IP.
For example:
"YY.YYY.YY.YYY, XX.X.X.XX" (this is sent by the proxy) becomes "YY.YYY.YY.YYY, ".
The comma is found in the string makes it unrecognizable IP address.

Despite all this, still does not work.

I have a question:
there is another configuration file that defines the parse IP address?
If yes, can you tell me, please, what is?
Regards


All times are GMT. The time now is 02:19 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.01107 seconds
  • Memory Usage 1,747KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete