vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   IPV 6 IPs, Rate Threads Issue (https://vborg.vbsupport.ru/showthread.php?t=324159)

boxingscene 01-10-2017 12:20 AM

IPV 6 IPs, Rate Threads Issue
 
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.

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

Quote:

Originally Posted by Paul M (Post 2580671)
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

Quote:

Originally Posted by boxingscene (Post 2580681)
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

Quote:

Originally Posted by Paul M (Post 2580690)
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 [DATE]1484096089[/DATE] at [TIME]1484096089[/TIME] ---------------

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

Quote:

Originally Posted by boxingscene (Post 2580693)
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.


All times are GMT. The time now is 11:23 PM.

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.00976 seconds
  • Memory Usage 1,730KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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