vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Can't rate a thread (https://vborg.vbsupport.ru/showthread.php?t=305726)

katie hunter 12-11-2013 02:44 AM

Can't rate a thread
 
This bug suddenly appeared today and i have no idea from where it come from, did did disable my hook and still the issue existed.

Whenever i try to rate a topic, i can't because of this error

Code:

A required field called <em>ipaddress</em> is missing or has an invalid value.
The only topic i found talking about it is this and not much solution of what was causing it.

http://www.vbulletin.com/forum/forum...-prompts-error

Any idea what would cause it and how to fix it?

ozzy47 12-11-2013 02:57 AM

Lets try this:

Edit your includes/class_core.php file and find:

Code:

                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));
        }

And change it to this:

Code:

                if ($proxy)
                {
                        define('ALT_IP', $this->ipaddress);
                        define('IPADDRESS', $_SERVER['HTTP_X_FORWARDED_FOR']);
                }
                else
                {
                        define('IPADDRESS', $this->ipaddress);
                        define('IPADDRESS', $_SERVER['HTTP_X_FORWARDED_FOR']);
                }

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

It may work, I can not say for sure as I am not getting that issue on my sites.

katie hunter 12-11-2013 03:18 AM

Hi Chris, what is this change related to, like what does it do?

It was related to my modem, i restarted it and it works but it is pretty weird that i never experienced this bug before

ozzy47 12-11-2013 03:26 AM

Ok then I would disregard the above. If restarting you modem worked, then for some odd reason the server could not read your IP address.

The above fix I suggested was just a test, as it was reported to work elsewhere for a similar issue.

katie hunter 12-11-2013 07:24 AM

ok thanks (: i will add it if this issue comes back.

katie hunter 04-14-2014 10:26 AM

Quote:

Originally Posted by ozzy47 (Post 2467553)
Lets try this:

Edit your includes/class_core.php file and find:

Code:

                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));
        }

And change it to this:

Code:

                if ($proxy)
                {
                        define('ALT_IP', $this->ipaddress);
                        define('IPADDRESS', $_SERVER['HTTP_X_FORWARDED_FOR']);
                }
                else
                {
                        define('IPADDRESS', $this->ipaddress);
                        define('IPADDRESS', $_SERVER['HTTP_X_FORWARDED_FOR']);
                }

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

It may work, I can not say for sure as I am not getting that issue on my sites.

Hi Chris, i've tried this but it didn't work, i still can't rate a thread, the only way to fix it is if i restart my dsl but that is not the proper way for a feature.


All times are GMT. The time now is 03:35 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.01701 seconds
  • Memory Usage 1,735KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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