PDA

View Full Version : A required field called ip is missing or has an invalid value?


AK47-
03-04-2013, 11:24 AM
Members are getting this error.

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
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 1362410146 at 1362410146 ---------------

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 1362940375 at 1362940375 ---------------

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

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

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:

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
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
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
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

paolo de rosa
02-07-2014, 08:22 AM
I update this topic because I could not find a solution.

paolo de rosa
03-28-2014, 10:29 AM
I update this topic because I could not find a solution.

we have not yet managed to solve the problem.
anyone can help us?

ozzy47
03-28-2014, 10:57 AM
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

So when you disable plugins you don't have the issue no more?

paolo de rosa
03-30-2014, 11:59 AM
So when you disable plugins you don't have the issue no more?

The problem remains, connections through the proxy are not available.

loaner
04-24-2015, 06:39 PM
Was anyone able to find a fix for this? I have two forum members that are having this issue and getting this message. ,

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

Triky
10-31-2015, 04:18 PM
Same problem here, but for vB 3.8.9.

HM666
11-04-2015, 09:40 PM
I would advise that you disable the plugins globally if that does not work then you want to login to your AdminCP and check for Suspect Files. If you know what files you have uploaded for various mods and add-ons then you keep those files if you still use those mods but this will tell you if files have been modified. If there were modified and you did not modify them I'd report it to the host as you may have been hacked in some way. To check the files login to your AdminCP and go to Maintenance > Diagnostics > Check Suspect File Versions. Run that and it will tell you if files have been changed or if they are not what should be there. If you find many files that have been changed then just download the vBulletin version you are currently running on your forum and upload the core files overwriting the files. This may fix your problem.

Paul M
11-05-2015, 02:24 PM
Are they using IPv6 ?
Just a guess, but if they are then possibly a check somewhere on the IP address is failing.