PDA

View Full Version : IPV 6 IPs, Rate Threads Issue


boxingscene
01-10-2017, 12:20 AM
Having an issue on 3.8 where users are unable to rate threads. One thing in common, IPV6 IPs.

I'm unable to rate a thread on cell phone, either. Same error.

"a required field called <em> ipaddress </em> is required is missing or has an invalid value"

Any ideas on a workaround?

Paul M
01-10-2017, 01:00 PM
What version of vB exactly ?

What is the full error message ?

blind-eddie
01-10-2017, 02:50 PM
He is running 3.8.2. I advised him to upgrade to at least 3.8.8 and see if problem persist, he had sent me a pm asking this question before I seen his thread.

Google shows this (https://www.google.com/webhp?sourceid=chrome-instant&rlz=1C1NHXL_enUS714US714&ion=1&espv=2&ie=UTF-8#q=a%20required%20field%20called%20%3Cem%3E%20ipa ddress%20%3C%2Fem%3E%20is%20required%20is%20missin g%20or%20has%20an%20invalid%20value%20vbulletin).

Paul M
01-10-2017, 04:34 PM
I doubt upgrading will fix it, although of course you should try and run the latest version anyway.

Without the full error message we dont know what line its failing on.
(I could take a good guess, but I prefer proper information to guessing).

boxingscene
01-10-2017, 06:29 PM
I doubt upgrading will fix it, although of course you should try and run the latest version anyway.

Without the full error message we dont know what line its failing on.
(I could take a good guess, but I prefer proper information to guessing).

I posted the full error message.


"a required field called <em> ipaddress </em> is required is missing or has an invalid value"

It has to do with the IPV6 IP, because any time I use my cell phone that happens and most users getting that error are using cell phones as well.

Not getting that error on PC after testing with four different browsers.

Only happens with thread rating.

Paul M
01-10-2017, 07:57 PM
I posted the full error message.
"a required field called <em> ipaddress </em> is required is missing or has an invalid value"

Hmmm, A full php error or warning would have a filename and line number, I guess that must be something vB itself is generating. I'll look at the code when I'm at home.

boxingscene
01-10-2017, 10:17 PM
Hmmm, A full php error or warning would have a filename and line number, I guess that must be something vB itself is generating. I'll look at the code when I'm at home.

Not a mysql error or a php error. Just an error popup that VB shows when I try to rate a thread.

--------------- Added 1484096089 at 1484096089 ---------------

Will raising varchar field length from 15 to 40 in ipaddress field in post have any negative effect?

Paul M
01-11-2017, 12:49 PM
Will raising varchar field length from 15 to 40 in ipaddress field in post have any negative effect?
You need to use VARCHAR(45), not 40, and no it wont have any negative effect.
This is already done for some IP fields in 4.2.4 onwards, and I'll look at adding some more.

However, from inspecting the code, doing so wont fix the above issue, as its the IP validation function thats failing, it only works for IPv4.

Thats something I will look at fixing in the current vB3/vB4 Beta & RC versions.